CVE-2023-28465 HL7 FHIR Partial Path Zip Slip due to bypass of CVE-2023-24057

High 7.5 Published Updated

Attackers can copy arbitrary files to directories via path traversal in HL7 FHIR Core Libraries package decompression.

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-28465?

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

Official description

The package-decompression feature in HL7 (Health Level 7) FHIR Core Libraries before 5.6.106 allows attackers to copy arbitrary files to certain directories via directory traversal, if an allowed directory name is a substring of the directory name chosen by the attacker. NOTE: this issue exists because of an incomplete fix for CVE-2023-24057.

Weakness: CWE-22

Which versions are affected by CVE-2023-28465?

12 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 1 product.

PackageAffectedFixed in
ca.uhn.hapi.fhir:org.hl7.fhir.convertors MavenAll versions5.6.106
ca.uhn.hapi.fhir:org.hl7.fhir.convertors MavenAll versions5.6.106
ca.uhn.hapi.fhir:org.hl7.fhir.core MavenAll versions5.6.106
ca.uhn.hapi.fhir:org.hl7.fhir.core MavenAll versions5.6.106
ca.uhn.hapi.fhir:org.hl7.fhir.r4b MavenAll versions5.6.106
ca.uhn.hapi.fhir:org.hl7.fhir.r4b MavenAll versions5.6.106
6 more packages
ca.uhn.hapi.fhir:org.hl7.fhir.r5 MavenAll versions5.6.106
ca.uhn.hapi.fhir:org.hl7.fhir.r5 MavenAll versions5.6.106
ca.uhn.hapi.fhir:org.hl7.fhir.utilities MavenAll versions5.6.106
ca.uhn.hapi.fhir:org.hl7.fhir.utilities MavenAll versions5.6.106
ca.uhn.hapi.fhir:org.hl7.fhir.validation MavenAll versions5.6.106
ca.uhn.hapi.fhir:org.hl7.fhir.validation MavenAll versions5.6.106

Products include Hapifhir Hl7 Fhir Core.

How do I fix CVE-2023-28465?

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

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

Is CVE-2023-28465 being exploited?

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

Public exploit code: 1 proofs of concept on GitHub.

Sources

Also known as GHSA-9654-pr4f-gh6m.

Is CVE-2023-28465 in your software?

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

Check your SBOMs for free