CVE-2024-52007XXE vulnerability in XSLT parsing in `org.hl7.fhir.core`
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.
What to do
Fixed builds are available from Maven: see the table below for the fixed version per release.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Maven library | ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may | Fixed | 6.4.0 | GHSA-6cr6-ph3p-f5rf |
| Maven library | ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 | Fixed | 6.3.23 | GHSA-gr3c-q7xf-47vh |
| Maven library | ca.uhn.hapi.fhir:org.hl7.fhir.r4 | Fixed | 6.3.23 | GHSA-gr3c-q7xf-47vh |
| Maven library | ca.uhn.hapi.fhir:org.hl7.fhir.r4b | Fixed | 6.4.0 | GHSA-6cr6-ph3p-f5rf |
| Maven library | ca.uhn.hapi.fhir:org.hl7.fhir.r5 | Fixed | 6.4.0 | GHSA-6cr6-ph3p-f5rf |
| Maven library | ca.uhn.hapi.fhir:org.hl7.fhir.utilities | Fixed | 6.3.23 | GHSA-gr3c-q7xf-47vh |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- hapifhir org.hl7.fhir.core: affected: < 6.4.0
References
- 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
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.