CVE-2023-24057 — MITM based Zip Slip in org.hl7.fhir.r4b — CVE Details
MITM based Zip Slip in `ca.uhn.hapi.fhir:org.hl7.fhir.core`
What Should I Do?
Address in Next Maintenance Window
Low exploitation probability (1.12%). Schedule for your next planned update.
Does your project use an affected ca.uhn.hapi.fhir:org.hl7.fhir.r4b version?
Paste your pom.xml to check it for CVE-2023-24057 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.
Summary
Impact
MITM can enable Zip-Slip.
Vulnerability
Vulnerability 1: Scanner.java
There is no validation that the zip file being unpacked has entries that are not maliciously writing outside of the intended destination directory. https://github.com/hapifhir/org.hl7.fhir.core/blob/8c43e21094af971303131efd081503e5a112db4b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/Scanner.java#L335-L357
This zip archive is downloaded over HTTP instead of HTTPS, leaving it vulnerable to compromise in-flight. https://github.com/hapifhir/org.hl7.fhir.core/blob/8c43e21094af971303131efd081503e5a112db4b/org.hl7.fhir.validation/src/main/java/org/hl7/fhir/validation/Scanner.java#L136
Vulnerability 2: TerminologyCacheManager.java
Note: While these links point to only one implementation, both implementations of TerminologyCacheManager.java are vulnerable to this as their code seems to be duplicated.
- https://github.com/hapifhir/org.hl7.fhir.core/blob/f58b7acfb5e393cac52cc5bbb170bdb669c2880e/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/TerminologyCacheManager.java
- https://github.com/hapifhir/org.hl7.fhir.core/blob/f58b7acfb5e393cac52cc5bbb170bdb669c2880e/org.hl7.fhir.r4b/src/main/java/org/hl7/fhir/r4b/terminologies/TerminologyCacheManager.java
While there is validation in this bit of logic that attempts to validate that the zip file doesn't contain malicious entries that escape the destination directory, the guard is insufficient.
This is because the Utilities.path(String... path) method does not normalize the path, although it seems to be attempting to do so.
https://github.com/hapifhir/org.hl7.fhir.core/blob/f58b7acfb5e393cac52cc5bbb170bdb669c2880e/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Utilities.java#L617-L675
The normalization only occurs if the path element starts with a path traversal payload. As an example, calling Utilities.path("/base", "/child/../test") will return the string "/base/child/../test".
This guard logic can, thus, be easily bypassed: https://github.com/hapifhir/org.hl7.fhir.core/blob/f58b7acfb5e393cac52cc5bbb170bdb669c2880e/org.hl7.fhir.r5/src/main/java/org/hl7/fhir/r5/terminologies/TerminologyCacheManager.java#L100-L104
Assuming an attacker can control the return value of ze.getName(), they can supply a value like /anything/../../../../zipsip-protection-bypass.txt.
Similarly, an attacker can control the contents of the Zip file via a MITM attack as this logic is used with resources not downloaded over HTTPS.
Patches
Unknown
Workarounds
Unknown
References
Advisory Timeline
- First published January 23, 2023 (1403 days ago).
- Last revised July 8, 2026 — 1261 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
<!-- Update pom.xml dependency version to 5.6.92 for ca.uhn.hapi.fhir:org.hl7.fhir.r4b -->
<!-- Update pom.xml dependency version to 5.6.92 for ca.uhn.hapi.fhir:org.hl7.fhir.convertors -->
<!-- Update pom.xml dependency version to 5.6.92 for ca.uhn.hapi.fhir:org.hl7.fhir.utilities -->
<!-- Update pom.xml dependency version to 5.6.92 for ca.uhn.hapi.fhir:org.hl7.fhir.validation -->
<!-- Update pom.xml dependency version to 5.6.92 for ca.uhn.hapi.fhir:org.hl7.fhir.r5 -->
<!-- Update pom.xml dependency version to 5.6.92 for ca.uhn.hapi.fhir:org.hl7.fhir.core -->
After upgrading, scan your dependencies again to confirm the vulnerability is resolved.
Affected Packages (6)
Affects 1 ecosystem: Maven (6).
| Package | Fixed In |
|---|---|
| ca.uhn.hapi.fhir:org.hl7.fhir.r4b Maven · Affected: 5.6.22, 5.6.23, 5.6.24, 5.6.25 (+65 more) | 5.6.92 |
| ca.uhn.hapi.fhir:org.hl7.fhir.convertors Maven · Affected: 0.0.1, 0.0.14, 0.0.2, 0.1.18 (+192 more) | 5.6.92 |
| ca.uhn.hapi.fhir:org.hl7.fhir.utilities Maven · Affected: 0.0.1, 0.0.14, 0.0.2, 0.1.18 (+192 more) | 5.6.92 |
| ca.uhn.hapi.fhir:org.hl7.fhir.validation Maven · Affected: 0.0.1, 0.0.14, 0.0.2, 0.1.18 (+192 more) | 5.6.92 |
| ca.uhn.hapi.fhir:org.hl7.fhir.r5 Maven · Affected: 0.0.1, 0.0.14, 0.0.2, 0.1.18 (+192 more) | 5.6.92 |
| ca.uhn.hapi.fhir:org.hl7.fhir.core Maven · Affected: 0.0.1, 0.0.14, 0.0.2, 0.1.14 (+192 more) | 5.6.92 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-22Path TraversalMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.1 score means for each attack dimension.
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
References
- https://github.com/HL7/fhir-ig-publisher/security/advisories/GHSA-xr8x-pxm6-prjgWEB
- https://github.com/hapifhir/org.hl7.fhir.core/security/advisories/GHSA-jqh6-9574-5x22WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-24057ADVISORY
- https://github.com/hapifhir/org.hl7.fhir.core/commit/b50aec59124416b7315a49220cfc3999223414ccWEB
- https://github.com/hapifhir/org.hl7.fhir.corePACKAGE
Frequently Asked Questions
- What is CVE-2023-24057?
- MITM based Zip Slip in `ca.uhn.hapi.fhir:org.hl7.fhir.core`. This vulnerability has been assigned a severity rating of CRITICAL (CVSS score: 9.1/10).
- How do I check if my project is affected by CVE-2023-24057?
- CVE-2023-24057 affects ca.uhn.hapi.fhir:org.hl7.fhir.r4b, ca.uhn.hapi.fhir:org.hl7.fhir.convertors and ca.uhn.hapi.fhir:org.hl7.fhir.utilities (and 3 more). It has a 1.1% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2023-24057 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Maximum impact if exploited, often with little effort or access required.
This is an above-median EPSS score — 65.8% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.
Also Known As
Related CVEs
- CVE-2026-55471CRITICAL
HAPI FHIR: XXE in XsltUtilities.saxonTransform via unhardened Saxon TransformerFactory
- CVE-2026-33180CRITICAL
HAPI FHIR HTTP authentication leak in redirects
- CVE-2026-34361CRITICAL
FHIR Validator HTTP service has SSRF via /loadIG Chains with startsWith() Credential Leak for Authentication Token Theft
- CVE-2026-45367HIGH
HAPI FHIR: ReDoS via FHIRPath matches()/replaceMatches() in FHIR Validator HTTP Endpoint
- CVE-2024-51132HIGH
HAPI FHIR XML External Entity (XXE) vulnerability
- CVE-2024-45294HIGH
XXE vulnerability in XSLT transforms in `org.hl7.fhir.core`
- CVE-2026-49485HIGH
org.hl7.fhir.core: ReDoS via FHIRPath matches()/replaceMatches() in FHIR Validator HTTP Endpoint
- CVE-2024-52007HIGH
XXE vulnerability in XSLT parsing in `org.hl7.fhir.core`