CVE-2024-52007
| Severity | 8.6 High CVSS 3.1 |
|---|---|
| Fixed in | 6.4.0 |
| Weakness | XML external entity (XXE) (CWE-611) |
| Published | 8 Nov 2024 |
| Updated | 17 Jun 2026 |
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.
Exploitation status
No public exploit
No exploit has been reported in the sources we check. Published 2 years ago.
Exploitation status
- CISA KEV not listed
- VulnCheck KEV not listed
- CISA Vulnrichment exploitation: none
- Indexed PoC none indexed
- EPSS 0.90% chance in 30 days
Waratek protection
Waratek has a rule that blocks attacks on this vulnerability.
- Protection full XXE
- Action available security rule
- Review automated Inferred
- Record active
| Decided by | A vulnerability class already blocked by an ARMR security rule |
|---|---|
| Finding | Protected by Waratek's ARMR xxe security rule, which blocks this class of attack at the JVM level without a rule written for this CVE specifically. The CVE's weakness is CWE-611: XML External Entity Reference. |
| Candidate fix | https://github.com/hapifhir/org.hl7.fhir.core/pull/1717 : a pull request: the change under review |
How to mitigate CVE-2024-52007
Upgrade the affected software to 6.4.0 or later. Until you can, Waratek RASP blocks exploitation with its XXE rule. It runs inside the Java application, with no code changes.
Affected software and releases
Maven packages
Affected and fixed versions, from OSV.dev| Package | Introduced | Fixed | Last affected |
|---|---|---|---|
ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 |
0 | 6.4.0 |
unbounded |
ca.uhn.hapi.fhir:org.hl7.fhir.r4 |
0 | 6.4.0 |
unbounded |
ca.uhn.hapi.fhir:org.hl7.fhir.r4b |
0 | 6.4.0 |
unbounded |
ca.uhn.hapi.fhir:org.hl7.fhir.r5 |
0 | 6.4.0 |
unbounded |
ca.uhn.hapi.fhir:org.hl7.fhir.utilities |
0 | 6.4.0 |
unbounded |
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may |
0 | 6.4.0 |
unbounded |
Products and versions
6 products, 6 version entries| Source | Vendor | Product | Scheme | Affected versions |
|---|---|---|---|---|
| osv | ca.uhn.hapi.fhir | org.hl7.fhir.dstu2016may | generic | < 6.4.0 |
| osv | ca.uhn.hapi.fhir | org.hl7.fhir.dstu3 | generic | < 6.4.0 |
| osv | ca.uhn.hapi.fhir | org.hl7.fhir.r4 | generic | < 6.4.0 |
| osv | ca.uhn.hapi.fhir | org.hl7.fhir.r4b | generic | < 6.4.0 |
| osv | ca.uhn.hapi.fhir | org.hl7.fhir.r5 | generic | < 6.4.0 |
| osv | ca.uhn.hapi.fhir | org.hl7.fhir.utilities | generic | < 6.4.0 |
References
Timeline
Timeline
| Published | 2024-11-08 | By the CVE Program. |
|---|---|---|
| NVD record modified | 2026-06-17 | NVD's own last-modified date for this record. |