GHSA-xr8x-pxm6-prjg: Org.hl7.fhir.publisher Org.hl7.fhir.publisher` Vulnerability

CRITICAL
CVSS 9.1
Published
Advisory Summary

GHSA-xr8x-pxm6-prjg is a CRITICAL (CVSS 9.1) org.hl7.fhir.publisher` vulnerability (General Security Weakness) affecting Org.hl7.fhir.publisher libraries in the Maven ecosystem. The issue involves org.hl7.fhir.publisher`. Remediation is available by upgrading affected packages to version 1.2.30.

GHSA-xr8x-pxm6-prjg at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-xr8x-pxm6-prjg
Severity CRITICAL
CVSS v3.1 Base Score 9.1
CWE Classification General Security Weakness
Affected Product Org.hl7.fhir.publisher
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 9.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required High (PR:H)
User Interaction None (UI:N)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix GHSA-xr8x-pxm6-prjg

To remediate this vulnerability, upgrade all affected Org.hl7.fhir.publisher dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

org.hl7.fhir.publisher:org.hl7.fhir.publisher fixed: 1.2.30
<dependency>
    <groupId>org.hl7.fhir.publisher</groupId>
    <artifactId>org.hl7.fhir.publisher</artifactId>
    <version>1.2.30</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=org.hl7.fhir.publisher

How to Check if You Are Affected

To determine whether your Java application is affected by GHSA-xr8x-pxm6-prjg, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=org.hl7.fhir.publisher

Analyze the terminal output to locate any version of Org.hl7.fhir.publisher in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.30), your application is affected.

Note: The mvn dependency:tree -Dincludes=org.hl7.fhir.publisher command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Org.hl7.fhir.publisher, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### 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.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/IGPack2NpmConvertor.java#L442-L463

GHSA-xr8x-pxm6-prjg Affected Org.hl7.fhir.publisher Versions

1 component(s)
Fixed Versions:
1.2.30
Product / Package Ecosystem Affected Versions Fixed Version
org.hl7.fhir.publisher:org.hl7.fhir.publisher
Maven
< 1.2.30
1.2.30

References

Frequently Asked Questions

What is GHSA-xr8x-pxm6-prjg?
GHSA-xr8x-pxm6-prjg is a security vulnerability in Org.hl7.fhir.publisher involving org.hl7.fhir.publisher` under General Security Weakness.
Which Org.hl7.fhir.publisher versions are affected?
Affected versions include releases prior to 1.2.30 across affected packages: org.hl7.fhir.publisher:org.hl7.fhir.publisher.
What version fixes GHSA-xr8x-pxm6-prjg?
Upgrading to 1.2.30 (or the latest patched release for your respective branch) resolves the vulnerability.
Is org.hl7.fhir.publisher affected?
Yes, org.hl7.fhir.publisher:org.hl7.fhir.publisher is affected in releases prior to 1.2.30. Upgrade your dependency to 1.2.30 or later.
What is the CVSS score of GHSA-xr8x-pxm6-prjg?
GHSA-xr8x-pxm6-prjg has a CVSS v3.1 base score of 9.1 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H.
What CWE is associated with GHSA-xr8x-pxm6-prjg?
GHSA-xr8x-pxm6-prjg is classified under General Security Weakness.
How can I check Maven dependencies for GHSA-xr8x-pxm6-prjg?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=org.hl7.fhir.publisher'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-xr8x-pxm6-prjg",
  "modified" : "2023-01-23T22:04:47Z",
  "published" : "2023-01-23T22:04:47Z",
  "aliases" : [ ],
  "summary" : " MITM based Zip Slip in `org.hl7.fhir.publisher:org.hl7.fhir.publisher`",
  "details" : "### Impact\nMITM can enable Zip-Slip.\n\n### Vulnerability\n\n#### Vulnerability 1: `Publisher.java`\n\nThere is no validation that the zip file being unpacked has entries that are not maliciously writing outside of the intended destination directory.\n\nhttps://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\n\n#### Vulnerability 2: `WebSourceProvider.java`\n\nThere is a check for malicious zip entries here, but it is not covered by test cases and could potentially be reverted in future changes.\n\nhttps://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\n\n#### Vulnerability 3: `ZipFetcher.java`\n\nThis 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.\n\nhttps://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\n\n#### Vulnerability 4: `IGPack2NpmConvertor.java`\n\nThe 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.\n\nhttps://github.com/HL7/fhir-ig-publisher/blob/87313e92de6dd6cea816449e0edd225e054a7891/org.hl7.fhir.publisher.core/src/main/java/org/hl7/fhir/igtools/publisher/IGPack2NpmConvertor.java#L442-L463\n\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.hl7.fhir.publisher:org.hl7.fhir.publisher"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.30"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/HL7/fhir-ig-publisher/security/advisories/GHSA-xr8x-pxm6-prjg"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/HL7/fhir-ig-publisher"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-01-23T22:04:47Z",
    "nvd_published_at" : null
  }
}