WaratekVRT Sign in

CVE-2024-52007

Severity8.6 High CVSS 3.1
Fixed in6.4.0
WeaknessXML external entity (XXE) (CWE-611)
Published8 Nov 2024
Updated17 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.

  • 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

Protected by Waratek

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.

Waratek RASP Runtime protection for Java applications

Affected software and releases

Maven packages

Affected and fixed versions, from OSV.dev
PackageIntroducedFixedLast 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
SourceVendorProductSchemeAffected 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

URLTags
https://github.com/hapifhir/org.hl7.fhir.core/pull/1717 pr
https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-6cr6-ph3p-f5rf WEB
https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-gr3c-q7xf-47vh WEB
https://github.com/hapifhir/org.hl7.fhir.core/issues/1571 WEB
https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#jaxp-documentbuilderfactory-saxparserfactory-and-dom4j WEB
https://cwe.mitre.org/data/definitions/611.html WEB
https://github.com/hapifhir/org.hl7.fhir.core PACKAGE

Timeline

Published2024-11-08By the CVE Program.
NVD record modified2026-06-17NVD's own last-modified date for this record.