{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-52007","id":"CVE-2024-52007","title":"XXE vulnerability in XSLT parsing in `org.hl7.fhir.core`","description":"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.fh","descriptionLong":"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.","published":"2024-11-08T22:28:20.169Z","updated":"2026-10-28T02:30:56.536240743Z","reserved":"2024-11-04T17:46:16.779Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","rating":"high","source":"GitHub_M"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","rating":"high","source":"GitHub"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","rating":"high","source":"GitHub_M"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","rating":"high","source":"github.com"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","rating":"high","source":"OSV"},{"version":"3.1","score":8.6,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","rating":"high","source":"GitHub"}],"rating":"high","products":["hapifhir org.hl7.fhir.core"],"affectedProducts":[{"vendor":"hapifhir","product":"org.hl7.fhir.core","defaultStatus":null,"versions":[{"version":"< 6.4.0","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Maven","name":"ca.uhn.hapi.fhir:org.hl7.fhir.dstu3","purl":"pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.dstu3","ranges":["<6.4.0"],"fixed":["6.4.0"],"advisory":"GHSA-gr3c-q7xf-47vh"},{"ecosystem":"Maven","name":"ca.uhn.hapi.fhir:org.hl7.fhir.r4","purl":"pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.r4","ranges":["<6.4.0"],"fixed":["6.4.0"],"advisory":"GHSA-gr3c-q7xf-47vh"},{"ecosystem":"Maven","name":"ca.uhn.hapi.fhir:org.hl7.fhir.r4b","purl":"pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.r4b","ranges":["<6.4.0"],"fixed":["6.4.0"],"advisory":"GHSA-gr3c-q7xf-47vh"},{"ecosystem":"Maven","name":"ca.uhn.hapi.fhir:org.hl7.fhir.r5","purl":"pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.r5","ranges":["<6.4.0"],"fixed":["6.4.0"],"advisory":"GHSA-gr3c-q7xf-47vh"},{"ecosystem":"Maven","name":"ca.uhn.hapi.fhir:org.hl7.fhir.utilities","purl":"pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.utilities","ranges":["<6.4.0"],"fixed":["6.4.0"],"advisory":"GHSA-gr3c-q7xf-47vh"},{"ecosystem":"Maven","name":"ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may","purl":"pkg:maven/ca.uhn.hapi.fhir/org.hl7.fhir.dstu2016may","ranges":["<6.4.0"],"fixed":["6.4.0"],"advisory":"GHSA-gr3c-q7xf-47vh"}],"cwes":["CWE-611"],"aliases":["GHSA-gr3c-q7xf-47vh"],"references":[{"url":"https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-gr3c-q7xf-47vh","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-6cr6-ph3p-f5rf","tags":["x_refsource_MISC","advisory","web"]},{"url":"https://github.com/hapifhir/org.hl7.fhir.core/issues/1571","tags":["x_refsource_MISC","report","web"]},{"url":"https://github.com/hapifhir/org.hl7.fhir.core/pull/1717","tags":["x_refsource_MISC","fix","web"]},{"url":"https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#jaxp-documentbuilderfactory-saxparserfactory-and-dom4j","tags":["x_refsource_MISC","web"]},{"url":"https://cwe.mitre.org/data/definitions/611.html","tags":["x_refsource_MISC","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/52xxx/CVE-2024-52007.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52007","tags":["advisory"]},{"url":"https://github.com/hapifhir/org.hl7.fhir.core","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial"},"epss":0.00899,"epssPercentile":0.60316,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-52007","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-52007","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-52007","ok":true,"note":"6 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-gr3c-q7xf-47vh","ok":true,"note":"GHSA-gr3c-q7xf-47vh"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-52007","ok":true,"note":"scored 2026-11-18"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}