CVE-2024-52007 json
XXE vulnerability in XSLT parsing in `org.hl7.fhir.core`
published 2024-11-08 2 y ago modified 2026-06-17 4 mo ago also EUVD-2024-3256 , GHSA-gr3c-q7xf-47vh
- cvss
- 8.6
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 59%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- maven ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 6.4.0
- maven ca.uhn.hapi.fhir:org.hl7.fhir.r4 6.4.0
- maven ca.uhn.hapi.fhir:org.hl7.fhir.r4b 6.4.0
- maven ca.uhn.hapi.fhir:org.hl7.fhir.r5 6.4.0
- maven ca.uhn.hapi.fhir:org.hl7.fhir.utilities 6.4.0
- maven ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may 6.4.0
- hapifhir hl7_fhir_core 6.4.0
- github.com/hapifhir/org.hl7.fhir.core#1717 pull request
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-52007 updated cvss 8.6
org.hl7.fhir.dstu2016may: org.hl7.fhir.dstu3: org.hl7.fhir.r4: org.hl7.fhir.r5: org.hl7.fhir.utilities: org.hl7.fhir.core: XXE vulnerability in XSLT parsing in `org.hl7.fhir.core`
-
Red Hat build of Apache Camel for Spring Boot 3 org.hl7.fhir.r4, org.hl7.fhir.r5, org.hl7.fhir.dstu3, org.hl7.fhir.utilities, org.hl7.fhir.dstu2016mayaffected: workaround, no fix planned “Out of support scope”
-
Red Hat Fuse 7 org.hl7.fhir.r4, org.hl7.fhir.r5, org.hl7.fhir.dstu3, org.hl7.fhir.utilities, org.hl7.fhir.dstu2016may, ca.uhn.hapi.fhir-org.hl7.fhir.core ca.uhn.hapi.fhir-org.hl7.fhir.core Red Hat Integration Camel K 1 org.hl7.fhir.r4, org.hl7.fhir.r5, org.hl7.fhir.dstu3, org.hl7.fhir.utilitiesaffected: workaround, no fix planned “Will not fix”
-
Red Hat build of Apache Camel 4.4.4 for Spring Bootfixed: vendor fix RHSA-2024:9806
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 23 mo ago
Exploit prediction
0.90% chance of exploitation in the next 30 days, higher than 59% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
| GitHub | 3.1 | 8.6 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| maven | ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 | <6.4.0 |
6.4.0 |
| maven | ca.uhn.hapi.fhir:org.hl7.fhir.r4 | <6.4.0 |
6.4.0 |
| maven | ca.uhn.hapi.fhir:org.hl7.fhir.r4b | <6.4.0 |
6.4.0 |
| maven | ca.uhn.hapi.fhir:org.hl7.fhir.r5 | <6.4.0 |
6.4.0 |
| maven | ca.uhn.hapi.fhir:org.hl7.fhir.utilities | <6.4.0 |
6.4.0 |
| maven | ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may | <6.4.0 |
6.4.0 |
Affected products
- hapifhir org.hl7.fhir.core
- hapifhir hl7_fhir_core
Classification
- Weakness
-
- CWE-611 Improper Restriction of XML External Entity Reference
References
-
github.com
/hapifhir/org.hl7.fhir.core/pull/1717
web
-
github.com
/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-gr3c-q7xf-47vh
web
-
github.com
/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-6cr6-ph3p-f5rf
web
-
github.com
/hapifhir/org.hl7.fhir.core/issues/1571
web
-
cheatsheetseries.owasp.org
/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#jaxp-documentbuilderfactory-saxparserfactory-and-
web
-
cwe.mitre.org
/data/definitions/611.html
web
-
nvd.nist.gov
/vuln/detail/CVE-2024-52007
advisory
-
github.com
/hapifhir/org.hl7.fhir.core
package
Sources
- CVE List CVE-2024-52007
- GitHub Advisory GHSA-gr3c-q7xf-47vh
- NVD CVE-2024-52007
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.