XXE vulnerability in XSLT parsing in `org.hl7.fhir.core`
Summary
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.
Details
This is related to https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-6cr6-ph3p-f5rf, in which its fix ( https://github.com/hapifhir/org.hl7.fhir.core/issues/1571, https://github.com/hapifhir/org.hl7.fhir.core/pull/1717) was incomplete.
References
https://cwe.mitre.org/data/definitions/611.html https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#jaxp-documentbuilderfactory-saxparserfactory-and-dom4j
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Java / Kotlin (Maven) | ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may | < 6.4.0 | 6.4.0 |
| Java / Kotlin (Maven) | ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 | < 6.4.0 | 6.4.0 |
| Java / Kotlin (Maven) | ca.uhn.hapi.fhir:org.hl7.fhir.r4 | < 6.4.0 | 6.4.0 |
| Java / Kotlin (Maven) | ca.uhn.hapi.fhir:org.hl7.fhir.r4b | < 6.4.0 | 6.4.0 |
| Java / Kotlin (Maven) | ca.uhn.hapi.fhir:org.hl7.fhir.r5 | < 6.4.0 | 6.4.0 |
| Java / Kotlin (Maven) | ca.uhn.hapi.fhir:org.hl7.fhir.utilities | < 6.4.0 | 6.4.0 |
References
- https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-6cr6-ph3p-f5rf
- https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-gr3c-q7xf-47vh
- https://nvd.nist.gov/vuln/detail/CVE-2024-52007
- https://github.com/hapifhir/org.hl7.fhir.core/issues/1571
- https://github.com/hapifhir/org.hl7.fhir.core/pull/1717
- https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#jaxp-documentbuilderfactory-saxparserfactory-and-dom4j
- https://cwe.mitre.org/data/definitions/611.html
- https://github.com/hapifhir/org.hl7.fhir.core
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N- Weakness (CWE)
CWE-611- Platform
- Java / Kotlin (Maven)
- Package
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may, ca.uhn.hapi.fhir:org.hl7.fhir.dstu3, ca.uhn.hapi.fhir:org.hl7.fhir.r4- Disclosed
- 08.11.2024
- Updated
- 11.10.2026 12:22
Sources and licenses
OSV / GitHub Advisory Database - GHSA-gr3c-q7xf-47vh - CC BY 4.0
Vulnerability history: ca.uhn.hapi.fhir:org.hl7.fhir.r4b
All published vulnerabilities of this package (Java / Kotlin (Maven)), newest first. Shows whether this is a one-off slip or a package that needs watching.
- Total entries
- 8
- First → latest
- 01.2023 07.2026
- Without a fix
- 0
- Exploited in attacks
- 0
Severity breakdown
- Critical 2
- High 6
Disclosures per year
- 2023: 2
- 2024: 3
- 2025: 0
- 2026: 3
-
XXE vulnerability in XSLT parsing in `org.hl7.fhir.core` this entry
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.