HAPI FHIR HTTP authentication leak in redirects
hapifhir org.hl7.fhir.core
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| ca.uhn.hapi.fhir:org.hl7.fhir.utilities Maven |
|
|
| ca.uhn.hapi.fhir:org.hl7.fhir.convertors Maven |
|
|
| ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 |
hapifhir org.hl7.fhir.core
| Product | Affected | Fixed in |
|---|---|---|
| ca.uhn.hapi.fhir:org.hl7.fhir.utilities Maven |
|
|
| ca.uhn.hapi.fhir:org.hl7.fhir.convertors Maven |
|
|
| ca.uhn.hapi.fhir:org.hl7.fhir.dstu2 |
|
|
| ca.uhn.hapi.fhir:org.hl7.fhir.dstu3 Maven |
|
|
| ca.uhn.hapi.fhir:org.hl7.fhir.dstu3.support Maven |
|
|
| ca.uhn.hapi.fhir:org.hl7.fhir.dstu2016may Maven |
|
|
| ca.uhn.hapi.fhir:org.hl7.fhir.model Maven |
|
|
| ca.uhn.hapi.fhir:org.hl7.fhir.r4 Maven |
|
|
| ca.uhn.hapi.fhir:org.hl7.fhir.r4b Maven |
|
|
| ca.uhn.hapi.fhir:org.hl7.fhir.r5 Maven |
|
|
| ca.uhn.hapi.fhir:org.hl7.fhir.validation Maven |
|
|
| ca.uhn.hapi.fhir:org.hl7.fhir.validation.cli Maven |
|
|
HAPI FHIR is a complete implementation of the HL7 FHIR standard for healthcare interoperability in Java. Prior to version 6.9.0, when setting headers in HTTP requests, the internal HTTP client sends headers first to the host in the initial URL but also, if asked to follow redirects and a 30X HTTP response code is returned, to the host mentioned in URL in the Location: response header value. Sending the same set of headers to subsequent hosts is a problem as this header often contains privacy sensitive information or data that could allow others to impersonate the client's request. This issue has been patched in release 6.9.0. No known workarounds are available.
From the CVE record · GitHub_M
Before 6.9.0, HAPI FHIR's internal HTTP client can forward request headers to a different host when it follows a 30X redirect. If the redirect points to a host controlled by an attacker, that host can receive privacy-sensitive headers or data that could allow impersonation of the client's request.
Teams using the listed ca.uhn.hapi.fhir:org.hl7.fhir.* Maven packages at versions below 6.9.0 should check their dependencies.