Categories
CVE-2023-24057

Path Traversal in ca.uhn.hapi.fhir:org.hl7.fhir.core (CVE-2023-24057)

Summary

Path traversal in ca.uhn.hapi.fhir:org.hl7.fhir.core (CVE-2023-24057). Successful exploitation can lead to full system takeover. Exploitable via Publisher.java. Mitigation: upgrade to 5.6.92 or later.

Original description

The description as published by the source.

Impact

MITM can enable Zip-Slip.

Vulnerability

Vulnerability 1: Publisher.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/HL7/fhir-ig-publisher/blob/87313e92de6dd6cea816449e0edd225e054a7891/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/Publisher.java#L3598-L3610

Vulnerability 2: WebSourceProvider.java

There is a check for malicious zip entries here, but it is not covered by test cases and could potentially be reverted in future changes.

https://github.com/HL7/fhir-ig-publisher/blob/87313e92de6dd6cea816449e0edd225e054a7891/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/web/WebSourceProvider.java#L104-L112

Vulnerability 3: ZipFetcher.java

This retains the path for Zip files in FetchedFile entries, which could later be used to output malicious entries to another compressed file or file system.

https://github.com/HL7/fhir-ig-publisher/blob/87313e92de6dd6cea816449e0edd225e054a7891/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/ZipFetcher.java#L57-L106

Vulnerability 4: IGPack2NpmConvertor.java

The loadZip method retains the path for entries in the zip file, which could later be used to output malicious entries to another compressed file or file system.

https://github.com/HL7/fhir-ig-publisher/blob/87313e92de6dd6cea816449e0edd225e054a7891/org.hl…

Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV

Auto-generated summary

Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.

A vulnerability tracked as CVE-2023-24057 has been found in ca.uhn.hapi.fhir:org.hl7.fhir.core.
Attackers can target a specific entry point like Publisher.java over the network to misuse the product.
Successful exploitation can lead to full system takeover.
What to do: upgrade ca.uhn.hapi.fhir:org.hl7.fhir.core to 5.6.92 or later.
If unsure, ask your IT team or search "ca.uhn.hapi.fhir:org.hl7.fhir.core CVE-2023-24057" on the vendor's site.

CVE-2023-24057 (ca.uhn.hapi.fhir:org.hl7.fhir.core) — CWE-22
Attack vector: remote (network-reachable) / no user interaction
Attack surface: Publisher.java / WebSourceProvider.java / ZipFetcher.java / IGPack2NpmConvertor.java
Patched: 5.6.92 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

❓ What is the problem

Path traversal (CWE-22) exists in ca.uhn.hapi.fhir:org.hl7.fhir.core. Attackers reach the vulnerable code path via Publisher.java.

📍 Affected scope

Check the vendor advisory for the affected versions of ca.uhn.hapi.fhir:org.hl7.fhir.core. Attack surface: Publisher.java / WebSourceProvider.java / ZipFetcher.java / IGPack2NpmConvertor.java.

🔥 Severity

Severity: ?. Successful exploitation can lead to full system takeover.

🔧 How to fix

Update to 5.6.92.

🛡️ Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

🔍 Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Audit SBOM/dependencies to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposure identify
    Audit SBOM/dependencies for affected components.

    資産台帳・SBOM・依存マニフェストで ca.uhn.hapi.fhir:org.hl7.fhir.core を使っているサービスとバージョンを洗い出す。

  2. 2
    Apply patch patch
    Upgrade ca.uhn.hapi.fhir:org.hl7.fhir.core to 5.6.92

    ステージング環境で 5.6.92 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verification verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

Maven ca.uhn.hapi.fhir:org.hl7.fhir.core
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.92"}]}]
Maven ca.uhn.hapi.fhir:org.hl7.fhir.convertors
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.92"}]}]
Maven ca.uhn.hapi.fhir:org.hl7.fhir.r4b
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.92"}]}]
Maven ca.uhn.hapi.fhir:org.hl7.fhir.r5
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.92"}]}]
Maven ca.uhn.hapi.fhir:org.hl7.fhir.utilities
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.92"}]}]
Maven ca.uhn.hapi.fhir:org.hl7.fhir.validation
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.6.92"}]}]
Maven org.hl7.fhir.publisher:org.hl7.fhir.publisher
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.2.30"}]}]

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details