CVE-2024-52007 — XXE vulnerability in org.hl7.fhir.r4 — CVE Details
XXE vulnerability in XSLT parsing in `org.hl7.fhir.core`
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.59%). Schedule for your next planned update.
Does your project use an affected ca.uhn.hapi.fhir:org.hl7.fhir.r4 version?
Paste your pom.xml to check it for CVE-2024-52007 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Summary
XSLT parsing performed by various components are vulnerable to XML external entity injections. A processed XML file with a malicious DTD tag ( ]> 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
Advisory Timeline
- First published November 8, 2024 (748 days ago).
- Last revised February 4, 2026 — 452 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 6.4.0 for ca.uhn.hapi.fhir:org.hl7.fhir.r4 -->
<!-- Update pom.xml dependency version to 6.4.0 for ca.uhn.hapi.fhir:org.hl7.fhir.utilities -->
<!-- Update pom.xml dependency version to 6.4.0 for ca.uhn.hapi.fhir:org.hl7.fhir.r4b -->
<!-- Update pom.xml dependency version to 6.4.0 for ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 -->
<!-- Update pom.xml dependency version to 6.4.0 for ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may -->
<!-- Update pom.xml dependency version to 6.4.0 for ca.uhn.hapi.fhir:org.hl7.fhir.r5 -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (6)
Affects 1 ecosystem: Maven (6).
| Package | Fixed In |
|---|---|
| ca.uhn.hapi.fhir:org.hl7.fhir.r4 Maven · Affected: 0.0.1, 0.0.14, 0.0.2, 0.1.18 (+317 more) | 6.4.0 |
| ca.uhn.hapi.fhir:org.hl7.fhir.utilities Maven · Affected: 0.0.1, 0.0.14, 0.0.2, 0.1.18 (+317 more) | 6.4.0 |
| ca.uhn.hapi.fhir:org.hl7.fhir.r4b Maven · Affected: 5.6.100, 5.6.101, 5.6.102, 5.6.103 (+190 more) | 6.4.0 |
| ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 Maven · Affected: 0.0.1, 0.0.14, 0.0.2, 0.1.18 (+317 more) | 6.4.0 |
| ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may Maven · Affected: 0.0.1, 0.0.14, 0.0.2, 0.1.18 (+317 more) | 6.4.0 |
| ca.uhn.hapi.fhir:org.hl7.fhir.r5 Maven · Affected: 0.0.1, 0.0.14, 0.0.2, 0.1.18 (+317 more) | 6.4.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-611XML External Entity (XXE)MITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.6 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
References
- https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-6cr6-ph3p-f5rfWEB
- https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-gr3c-q7xf-47vhWEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-52007ADVISORY
- https://github.com/hapifhir/org.hl7.fhir.core/issues/1571WEB
- https://github.com/hapifhir/org.hl7.fhir.core/pull/1717WEB
- https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#jaxp-documentbuilderfactory-saxparserfactory-and-dom4jWEB
- https://cwe.mitre.org/data/definitions/611.htmlWEB
- https://github.com/hapifhir/org.hl7.fhir.corePACKAGE
Frequently Asked Questions
- What is CVE-2024-52007?
- XXE vulnerability in XSLT parsing in `org.hl7.fhir.core`. This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.6/10).
- How do I check if my project is affected by CVE-2024-52007?
- CVE-2024-52007 affects ca.uhn.hapi.fhir:org.hl7.fhir.r4, ca.uhn.hapi.fhir:org.hl7.fhir.utilities and ca.uhn.hapi.fhir:org.hl7.fhir.r4b (and 3 more). It has a 1.6% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-52007 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Significant impact if exploited, or exploitable with modest effort.
This places it in the top quartile of EPSS-scored vulnerabilities — 76% of tracked vulnerabilities score at or below it, so it is more likely to be exploited than most of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-55471CRITICAL
HAPI FHIR: XXE in XsltUtilities.saxonTransform via unhardened Saxon TransformerFactory
- CVE-2023-24057CRITICAL
MITM based Zip Slip in `ca.uhn.hapi.fhir:org.hl7.fhir.core`
- CVE-2026-33180CRITICAL
HAPI FHIR HTTP authentication leak in redirects
- CVE-2026-34361CRITICAL
FHIR Validator HTTP service has SSRF via /loadIG Chains with startsWith() Credential Leak for Authentication Token Theft
- CVE-2026-45367HIGH
HAPI FHIR: ReDoS via FHIRPath matches()/replaceMatches() in FHIR Validator HTTP Endpoint
- CVE-2024-51132HIGH
HAPI FHIR XML External Entity (XXE) vulnerability
- CVE-2024-45294HIGH
XXE vulnerability in XSLT transforms in `org.hl7.fhir.core`
- CVE-2026-49485HIGH
org.hl7.fhir.core: ReDoS via FHIRPath matches()/replaceMatches() in FHIR Validator HTTP Endpoint