CVE-2024-52007
November 08, 2024
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.
Affected Packages
ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may (JAVA):
Affected version(s) >=0.0.1 <6.4.0Fix Suggestion:
Update to version 6.4.0ca.uhn.hapi.fhir:org.hl7.fhir.r5 (JAVA):
Affected version(s) >=0.0.1 <6.4.0Fix Suggestion:
Update to version 6.4.0ca.uhn.hapi.fhir:org.hl7.fhir.utilities (JAVA):
Affected version(s) >=0.0.1 <6.4.0Fix Suggestion:
Update to version 6.4.0ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 (JAVA):
Affected version(s) >=0.0.1 <6.4.0Fix Suggestion:
Update to version 6.4.0ca.uhn.hapi.fhir:org.hl7.fhir.r4 (JAVA):
Affected version(s) >=0.0.1 <6.4.0Fix Suggestion:
Update to version 6.4.0ca.uhn.hapi.fhir:org.hl7.fhir.r4b (JAVA):
Affected version(s) >=5.6.22 <6.4.0Fix Suggestion:
Update to version 6.4.0Related ResourcesĀ (8)
Do you need more information?
Contact UsCVSS v4
Base Score:
9.2
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
NONE
Vulnerable System Availability
NONE
Subsequent System Confidentiality
HIGH
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.6
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
CHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Weakness Type (CWE)
Improper Restriction of XML External Entity Reference
EPSS
Base Score:
0.24