REDHAT-BUG-2498310: SSRF
HAPI FHIR is a complete implementation of the HL7 FHIR standard for healthcare interoperability in Java. Prior to 6.9.10, org.hl7.fhir.utilities.XsltUtilities saxonTransform(...) overloads instantiated a bare net.sf.saxon.TransformerFactoryImpl() without ACCESSEXTERNALDTD or ACCESSEXTERNALSTYLESHEET restrictions, allowing an attacker who controls or can tamper with transformed XML to trigger XML External Entity injection for local file disclosure and blind XXE or SSRF to arbitrary URLs reachable from the host. This issue is fixed in version 6.9.10.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
org.hl7.fhir.utilities.XsltUtilitiesto a version that resolves this vulnerability.Fixed in 6.9.10
Event History
Frequently Asked Questions
Who is exposed to this issue?
Deployments using HAPI FAPI FHIR versions before 6.9.10 are exposed when an attacker can control or tamper with XML that is passed to the affected saxonTransform(...) overloads.
What could an attacker do?
An attacker may use XML External Entity injection to disclose local files or perform blind XXE or server-side request forgery against arbitrary URLs reachable from the host.
Does exploitation require access to the affected host?
No direct host access is described. The attacker needs control of, or the ability to tamper with, XML processed by the vulnerable transformation path.
What version fixes the issue?
The issue is fixed in HAPI FHIR version 6.9.10.