{"id":"CVE-2024-52007","published":"2024-11-08T22:28:20Z","modified":"2024-11-12T18:47:14Z","title":"XXE vulnerability in XSLT parsing in `org.hl7.fhir.core`","vendor":"hapifhir","product":"org.hl7.fhir.core","tier":"tail","description":{"text":"HAPI FHIR is a complete implementation of the HL7 FHIR standard for healthcare interoperability in Java. XSLT parsing performed by various components are vulnerable to XML external entity injections. A processed XML file with a malicious DTD tag ( <!DOCTYPE foo [<!ENTITY example SYSTEM \"/etc/passwd\"> ]> could produce XML containing data from the host system. This impacts use cases where org.hl7.fhir.core is being used to within a host where external clients can submit XML. This is related to GHSA-6cr6-ph3p-f5rf, in which its fix (#1571 & #1717) was incomplete. This issue has been addressed in release version 6.4.0 and all users are advised to upgrade. There are no known workarounds for this vulnerability.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00899,"percentile":0.60489,"provenance":"source"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"references":[{"url":"https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-gr3c-q7xf-47vh","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-6cr6-ph3p-f5rf","tags":["x_refsource_MISC"]},{"url":"https://github.com/hapifhir/org.hl7.fhir.core/issues/1571","tags":["x_refsource_MISC"]},{"url":"https://github.com/hapifhir/org.hl7.fhir.core/pull/1717","tags":["x_refsource_MISC"]},{"url":"https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#jaxp-documentbuilderfactory-saxparserfactory-and-dom4j","tags":["x_refsource_MISC"]},{"url":"https://cwe.mitre.org/data/definitions/611.html","tags":["x_refsource_MISC"]}],"priority":{"score":18.1,"factors":[{"name":"EPSS percentile","points":12.1},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"hapifhir","affectedVersions":[{"vendor":"hapifhir","product":"org.hl7.fhir.core","versions":["< 6.4.0"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2024-11-12T16:07:55.968328Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"ca.uhn.hapi.fhir:org.hl7.fhir.dstu3","vulnerableRanges":["<6.4.0"],"patched":["6.4.0"],"from":["GHSA-gr3c-q7xf-47vh"],"provenance":"source"},{"ecosystem":"Maven","package":"ca.uhn.hapi.fhir:org.hl7.fhir.r4","vulnerableRanges":["<6.4.0"],"patched":["6.4.0"],"from":["GHSA-gr3c-q7xf-47vh"],"provenance":"source"},{"ecosystem":"Maven","package":"ca.uhn.hapi.fhir:org.hl7.fhir.r4b","vulnerableRanges":["<6.4.0"],"patched":["6.4.0"],"from":["GHSA-gr3c-q7xf-47vh"],"provenance":"source"},{"ecosystem":"Maven","package":"ca.uhn.hapi.fhir:org.hl7.fhir.r5","vulnerableRanges":["<6.4.0"],"patched":["6.4.0"],"from":["GHSA-gr3c-q7xf-47vh"],"provenance":"source"},{"ecosystem":"Maven","package":"ca.uhn.hapi.fhir:org.hl7.fhir.utilities","vulnerableRanges":["<6.4.0"],"patched":["6.4.0"],"from":["GHSA-gr3c-q7xf-47vh"],"provenance":"source"},{"ecosystem":"Maven","package":"ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may","vulnerableRanges":["<6.4.0"],"patched":["6.4.0"],"from":["GHSA-gr3c-q7xf-47vh"],"provenance":"source"}],"summary":{"text":"XXE vulnerability in XSLT parsing within the org.hl7.fhir.core component of HAPI FHIR, a Java implementation of the HL7 FHIR standard. An attacker who can submit XML to a host running org.hl7.fhir.core over the network, without authentication or user interaction, can supply a malicious DTD that causes the parser to read and return data from the host's file system, such as /etc/passwd.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:47Z"},"euvd":{"id":"EUVD-2024-3256","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-hapifhir-org-hl7-fhir-core-cve-2024-45294","parents":[{"from":"CVE-2024-45294","to":"CVE-2024-52007","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-6cr6-ph3p-f5rf","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-gr3c-q7xf-47vh","via":"reference","url":"https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-6cr6-ph3p-f5rf"},{"kind":"version-step","provenance":"source","package":"Maven:ca.uhn.hapi.fhir:org.hl7.fhir.utilities","fromFixed":"6.3.23","toFixed":"6.4.0","daysApart":63},{"kind":"version-step","provenance":"source","package":"Maven:ca.uhn.hapi.fhir:org.hl7.fhir.dstu3","fromFixed":"6.3.23","toFixed":"6.4.0","daysApart":63},{"kind":"similar","provenance":"machine","score":0.59,"basis":"same product + CWE + description similarity"}]}],"packageHistory":[{"cve":"CVE-2023-28465","published":"2023-12-12","fixed":"5.6.106","kev":false},{"cve":"CVE-2024-45294","published":"2024-09-06","fixed":"6.3.23","kev":false},{"cve":"CVE-2024-51132","published":"2024-11-05","fixed":"6.4.0","kev":false},{"cve":"CVE-2024-52007","published":"2024-11-08","fixed":"6.4.0","kev":false},{"cve":"CVE-2026-33180","published":"2026-03-20","fixed":"6.9.0","kev":false,"link":{"from":"CVE-2024-52007","to":"CVE-2026-33180","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Maven:ca.uhn.hapi.fhir:org.hl7.fhir.utilities","fromFixed":"6.4.0","toFixed":"6.9.0","daysApart":497},{"kind":"version-step","provenance":"source","package":"Maven:ca.uhn.hapi.fhir:org.hl7.fhir.dstu3","fromFixed":"6.4.0","toFixed":"6.9.0","daysApart":497}]}},{"cve":"CVE-2026-34359","published":"2026-03-31","fixed":"6.9.4","kev":false},{"cve":"CVE-2026-55471","published":"2026-07-08","fixed":"6.9.10","kev":false}],"package":"Maven:ca.uhn.hapi.fhir:org.hl7.fhir.utilities"}}