XXE vulnerability in XSLT parsing in `org.hl7.fhir.core`
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Information disclosure
- Confidentiality · integrity · availability
- High · None · None
- Fix status
- Partial Red Hat: 1 fixed, 3 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat. Impact type from CWE-611 and the CVSS impact.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| hapifhir | org.hl7.fhir.core | before 6.4.0 | 6.4.0 | Patch available | CNA |
| — | ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 (Maven) | before 6.4.0 | 6.4.0 | Patch available | GHSA-gr3c-q7xf-47vh |
| — | ca.uhn.hapi.fhir:org.hl7.fhir.r4 (Maven) | before 6.4.0 | 6.4.0 | Patch available | GHSA-gr3c-q7xf-47vh |
| — | ca.uhn.hapi.fhir:org.hl7.fhir.r4b (Maven) | before 6.4.0 | 6.4.0 | Patch available | GHSA-gr3c-q7xf-47vh |
| — | ca.uhn.hapi.fhir:org.hl7.fhir.r5 (Maven) | before 6.4.0 | 6.4.0 | Patch available | GHSA-gr3c-q7xf-47vh |
| — | ca.uhn.hapi.fhir:org.hl7.fhir.utilities (Maven) | before 6.4.0 | 6.4.0 | Patch available | GHSA-gr3c-q7xf-47vh |
| — | ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may (Maven) | before 6.4.0 | 6.4.0 | Patch available | GHSA-gr3c-q7xf-47vh |
- org.hl7.fhir.core Vendorhapifhir Affected before 6.4.0 Fixed in 6.4.0 Patch available CNA
- ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 (Maven) Vendor— Affected before 6.4.0 Fixed in 6.4.0 Patch available GHSA-gr3c-q7xf-47vh
- ca.uhn.hapi.fhir:org.hl7.fhir.r4 (Maven) Vendor— Affected before 6.4.0 Fixed in 6.4.0 Patch available GHSA-gr3c-q7xf-47vh
- ca.uhn.hapi.fhir:org.hl7.fhir.r4b (Maven) Vendor— Affected before 6.4.0 Fixed in 6.4.0 Patch available GHSA-gr3c-q7xf-47vh
- ca.uhn.hapi.fhir:org.hl7.fhir.r5 (Maven) Vendor— Affected before 6.4.0 Fixed in 6.4.0 Patch available GHSA-gr3c-q7xf-47vh
- ca.uhn.hapi.fhir:org.hl7.fhir.utilities (Maven) Vendor— Affected before 6.4.0 Fixed in 6.4.0 Patch available GHSA-gr3c-q7xf-47vh
- ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may (Maven) Vendor— Affected before 6.4.0 Fixed in 6.4.0 Patch available GHSA-gr3c-q7xf-47vh
Remediation
- Fix · CNA org.hl7.fhir.core (hapifhir) Fixed in 6.4.0
- Fix · GHSA-gr3c-q7xf-47vh ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 (Maven) Fixed in 6.4.0 Advisory →
- Fix · GHSA-gr3c-q7xf-47vh ca.uhn.hapi.fhir:org.hl7.fhir.r4 (Maven) Fixed in 6.4.0 Advisory →
- Fix · GHSA-gr3c-q7xf-47vh ca.uhn.hapi.fhir:org.hl7.fhir.r4b (Maven) Fixed in 6.4.0 Advisory →
- Fix · GHSA-gr3c-q7xf-47vh ca.uhn.hapi.fhir:org.hl7.fhir.r5 (Maven) Fixed in 6.4.0 Advisory →
- Fix · GHSA-gr3c-q7xf-47vh ca.uhn.hapi.fhir:org.hl7.fhir.utilities (Maven) Fixed in 6.4.0 Advisory →
- Fix · GHSA-gr3c-q7xf-47vh ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may (Maven) Fixed in 6.4.0 Advisory →
Red Hat 1 advisory
- RHSA-2024:9806 Released 2024-11-15 · Red Hat rating CriticalRed Hat Build of Apache Camel 4.4.4 for Spring Boot security update.
- Red Hat build of Apache Camel 4.4.4 for Spring Boot
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Fuse 7 | Affected | No fix planned: Will not fix |
| Red Hat Integration Camel K 1 | Affected | No fix planned: Will not fix |
| Red Hat build of Apache Camel for Spring Boot 3 | Affected | No fix planned: Out of support scope |
| Red Hat build of Apache Camel 4.4.4 for Spring Boot | Fixed | RHSA-2024:9806 |
Timeline
- 2026-10-02 Threatist record created from CVE-2024-52007
- 2026-10-03 Alias added: GHSA-gr3c-q7xf-47vh
References
Other 7
- https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-gr3c-q7xf-47vh
- https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-6cr6-ph3p-f5rf
- 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
More hapifhir vulnerabilities
- TI-2026-26647 HAPI FHIR: Unauthenticated SSRF via /loadIG Chains with startsWith() Credential Leak for Authentication Token Theft CVSS 3.1CRITICAL 9.3
- TI-2026-40028 HAPI FHIR: XXE in XsltUtilities.saxonTransform via unhardened Saxon TransformerFactory CVSS 4.0HIGH 8.7
- TI-2026-26645 HAPI FHIR: Authentication Credential Leakage via Improper URL Prefix Matching on HTTP Redirect in HAPI FHIR Core CVSS 3.1CRITICAL 9.1
- TI-2026-56488 HAPI FHIR: SHCParser DEFLATE infinite loop causes denial of service CVSS 3.1HIGH 7.5
- TI-2026-56487 HAPI FHIR: SHCParser unbounded DEFLATE decompression causes denial of service CVSS 3.1HIGH 7.5
- TI-2026-44485 HAPI FHIR: XHTML narrative parser unbounded recursion causes StackOverflow denial of service CVSS 3.1HIGH 7.5
Sources
- CVE-2024-52007 · CVE Program
- CVE-2024-52007 · NVD
- FIRST EPSS
- GHSA-gr3c-q7xf-47vh · GitHub Advisory Database · CC BY 4.0
- CVE-2024-52007 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences