CVE-2023-24057 MITM based Zip Slip in `ca.uhn.hapi.fhir:org.hl7.fhir.core`

High 8.1 Published Updated

Attackers can extract files to arbitrary directories via crafted archives, potentially leading to code execution or data modification in applications using HL7 FHIR Core Libraries.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-24057?

CVE-2023-24057 is a high-severity path traversal vulnerability in n/a, published on 24 Jan 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

HL7 (Health Level 7) FHIR Core Libraries before 5.6.92 allow attackers to extract files into arbitrary directories via directory traversal from a crafted ZIP or TGZ archive (for a prepackaged terminology cache, NPM package, or comparison archive).

Weakness: CWE-22

Which versions are affected by CVE-2023-24057?

14 open source packages ship an affected version, including ca.uhn.hapi.fhir:org.hl7.fhir.convertors, ca.uhn.hapi.fhir:org.hl7.fhir.core and ca.uhn.hapi.fhir:org.hl7.fhir.r4b. It affects 2 products.

PackageAffectedFixed in
ca.uhn.hapi.fhir:org.hl7.fhir.convertors MavenAll versions5.6.92
ca.uhn.hapi.fhir:org.hl7.fhir.convertors MavenAll versions5.6.92
ca.uhn.hapi.fhir:org.hl7.fhir.core MavenAll versions5.6.92
ca.uhn.hapi.fhir:org.hl7.fhir.core MavenAll versions5.6.92
ca.uhn.hapi.fhir:org.hl7.fhir.r4b MavenAll versions5.6.92
ca.uhn.hapi.fhir:org.hl7.fhir.r4b MavenAll versions5.6.92
8 more packages
ca.uhn.hapi.fhir:org.hl7.fhir.r5 MavenAll versions5.6.92
ca.uhn.hapi.fhir:org.hl7.fhir.r5 MavenAll versions5.6.92
ca.uhn.hapi.fhir:org.hl7.fhir.utilities MavenAll versions5.6.92
ca.uhn.hapi.fhir:org.hl7.fhir.utilities MavenAll versions5.6.92
ca.uhn.hapi.fhir:org.hl7.fhir.validation MavenAll versions5.6.92
ca.uhn.hapi.fhir:org.hl7.fhir.validation MavenAll versions5.6.92
org.hl7.fhir.publisher:org.hl7.fhir.publisher MavenAll versions1.2.30
org.hl7.fhir.publisher:org.hl7.fhir.publisher MavenAll versions1.2.30

Products include Hapifhir Hl7 Fhir Core, Hl7 Fhir Ig Publisher.

How do I fix CVE-2023-24057?

Upgrade ca.uhn.hapi.fhir:org.hl7.fhir.convertors to 5.6.92 or later.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2023-24057 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2023-24057 exists.

Sources

Also known as GHSA-jqh6-9574-5x22, GHSA-xr8x-pxm6-prjg.

Is CVE-2023-24057 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free