CVE-2024-52007
XXE vulnerability in XSLT parsing in `org.hl7.fhir.core`
- Published
- Updated
- Reserved
- Assigned by
- GitHub_M
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.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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| NVDNVD · Deferred | 3.1 | High8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 0.90% · top 40% of all CVEs (6 Nov 2026)
- CISA SSVC
- Exploitation: none · Automatable: yes · Technical impact: partial
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 8.6.
Weakness
Affected products
- affected < 6.4.0
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Mavenca.uhn.hapi.fhir:org.hl7.fhir.dstu2016mayGHSA-gr3c-q7xf-47vh (opens in a new tab)
- Mavenca.uhn.hapi.fhir:org.hl7.fhir.dstu3GHSA-gr3c-q7xf-47vh (opens in a new tab)
- Mavenca.uhn.hapi.fhir:org.hl7.fhir.r4GHSA-gr3c-q7xf-47vh (opens in a new tab)
- Mavenca.uhn.hapi.fhir:org.hl7.fhir.r4bGHSA-gr3c-q7xf-47vh (opens in a new tab)
- Mavenca.uhn.hapi.fhir:org.hl7.fhir.r5GHSA-gr3c-q7xf-47vh (opens in a new tab)
- Mavenca.uhn.hapi.fhir:org.hl7.fhir.utilitiesGHSA-gr3c-q7xf-47vh (opens in a new tab)
References (6)
- https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-gr3c-q7xf-47vh (opens in a new tab)x_refsource_CONFIRM
- https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-6cr6-ph3p-f5rf (opens in a new tab)x_refsource_MISC
- https://github.com/hapifhir/org.hl7.fhir.core/issues/1571 (opens in a new tab)x_refsource_MISC
- https://github.com/hapifhir/org.hl7.fhir.core/pull/1717 (opens in a new tab)x_refsource_MISC
- https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#jaxp-documentbuilderfactory-saxparserfactory-and-dom4j (opens in a new tab)x_refsource_MISC
- https://cwe.mitre.org/data/definitions/611.html (opens in a new tab)x_refsource_MISC
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-gr3c-q7xf-47vh (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2024-52007)Record last updated .