Vulnerabilities in pkg:maven/org.hl7.fhir.publisher/org.hl7.fhir.publisher.core

PACKAGE
Advisory Identifier: GHSA-8c3x-hq82-gjcm
Advisory Summary

CVE-2024-52807 is a HIGH (CVSS 8.6) xxe vulnerability vulnerability (CWE-611: Improper Restriction of XML External Entity Reference) affecting Org.hl7.fhir.publisher.cli libraries in the Maven ecosystem. The issue involves xxe vulnerability in xslt parsing in `org.hl7.fhir.publisher`. Remediation is available by upgrading affected packages to version 1.7.4.

2 Known Advisory Record(s)
Package Vulnerability Intelligence

pkg:maven/org.hl7.fhir.publisher/org.hl7.fhir.publisher.core

2 Known Advisory Record(s)

Vulnerability advisories affecting package pkg:maven/org.hl7.fhir.publisher/org.hl7.fhir.publisher.core. Select an advisory below to view technical details or fixes.

Advisory ID CVE / NVD Severity Summary
GHSA-8c3x-hq82-gjcm CVE-2024-52807 HIGH XXE vulnerability in XSLT parsing in `org.hl7.fhir.publisher`
GHSA-6729-95v3-pjc2 CVE-2025-24363 MODERATE HL7 FHIR IG Publisher potentially exposes GitHub repo user and credential information

CVE-2024-52807 at a Glance

CVE Identifier CVE-2024-52807
GHSA Identifier GHSA-8c3x-hq82-gjcm
Severity HIGH
CVSS v3.1 Base Score 8.6
CWE Classification CWE-611: Improper Restriction of XML External Entity Reference
Affected Product Org.hl7.fhir.publisher.cli
Package Ecosystem Maven
Published Date
Last Updated

Security Impact

CVSS: 8.6

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

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

How to Fix CVE-2024-52807

To remediate this vulnerability, upgrade all affected Org.hl7.fhir.publisher.cli 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.cli fixed: 1.7.4
<dependency>
    <groupId>org.hl7.fhir.publisher</groupId>
    <artifactId>org.hl7.fhir.publisher.cli</artifactId>
    <version>1.7.4</version>
</dependency>
org.hl7.fhir.publisher:org.hl7.fhir.publisher.core fixed: 1.7.4
<dependency>
    <groupId>org.hl7.fhir.publisher</groupId>
    <artifactId>org.hl7.fhir.publisher.core</artifactId>
    <version>1.7.4</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 CVE-2024-52807, 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.cli in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.7.4), 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 CWE-611: Improper Restriction of XML External Entity Reference, where the product processes an xml document that can contain xml entities with uris that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output. In Org.hl7.fhir.publisher.cli, 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 XSLT transforms performed by various components are vulnerable to XML external entity injections. A processed XML file with a malicious DTD tag ( ]> could produce XML containing data from the host system. This impacts use cases where org.hl7.fhir.publisher is being used to within a host where external clients can submit XML. A previous release provided an incomplete solution revealed by new testing. ### Patches This issue has been patched as of version 1.7.4 ### Workarounds None ### References [Previous Advisory for Incomplete solution](https://github.com/HL7/fhir-ig-publisher/security/advisories/GHSA-59rq-22fm-x8q5) [MITRE CWE](https://cwe.mitre.org/data/definitions/611.html) [OWASP XML External Entity Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#transformerfactory)

CVE-2024-52807 Affected Org.hl7.fhir.publisher.cli Versions

2 component(s)
Fixed Versions:
1.7.4
Product / Package Ecosystem Affected Versions Fixed Version
org.hl7.fhir.publisher:org.hl7.fhir.publisher.cli
Maven
< 1.7.4
1.7.4
org.hl7.fhir.publisher:org.hl7.fhir.publisher.core
Maven
< 1.7.4
1.7.4

References

Frequently Asked Questions

What is CVE-2024-52807?
CVE-2024-52807 is a security vulnerability in Org.hl7.fhir.publisher.cli involving XXE vulnerability in XSLT parsing in `org.hl7.fhir.publisher` under CWE-611: Improper Restriction of XML External Entity Reference.
Which Org.hl7.fhir.publisher.cli versions are affected?
Affected versions include releases prior to 1.7.4 across affected packages: org.hl7.fhir.publisher:org.hl7.fhir.publisher.cli, org.hl7.fhir.publisher:org.hl7.fhir.publisher.core.
What version fixes CVE-2024-52807?
Upgrading to 1.7.4 (or the latest patched release for your respective branch) resolves the vulnerability.
Is org.hl7.fhir.publisher.cli affected?
Yes, org.hl7.fhir.publisher:org.hl7.fhir.publisher.cli is affected in releases prior to 1.7.4. Upgrade your dependency to 1.7.4 or later.
Is org.hl7.fhir.publisher.core affected?
Yes, org.hl7.fhir.publisher:org.hl7.fhir.publisher.core is affected in releases prior to 1.7.4. Upgrade your dependency to 1.7.4 or later.
What is the CVSS score of CVE-2024-52807?
CVE-2024-52807 has a CVSS v3.1 base score of 8.6 (HIGH) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N.
What CWE is associated with CVE-2024-52807?
CVE-2024-52807 is classified under CWE-611: Improper Restriction of XML External Entity Reference (The product processes an XML document that can contain XML entities with URIs that resolve to documents outside of the intended sphere of control, causing the product to embed incorrect documents into its output.).
How can I check Maven dependencies for CVE-2024-52807?
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-8c3x-hq82-gjcm",
  "modified" : "2026-01-28T23:21:27Z",
  "published" : "2025-01-24T18:33:29Z",
  "aliases" : [ "CVE-2024-52807" ],
  "summary" : "XXE vulnerability in XSLT parsing in `org.hl7.fhir.publisher`",
  "details" : "### Impact\nXSLT transforms performed by various components are vulnerable to XML external entity injections. A processed XML file with a malicious DTD tag ( ]> could produce XML containing data from the host system. This impacts use cases where org.hl7.fhir.publisher is being used to within a host where external clients can submit XML.\n\nA previous release provided an incomplete solution revealed by new testing. \n\n### Patches\nThis issue has been patched as of version 1.7.4\n\n### Workarounds\nNone\n\n### References\n[Previous Advisory for Incomplete solution](https://github.com/HL7/fhir-ig-publisher/security/advisories/GHSA-59rq-22fm-x8q5)\n[MITRE CWE](https://cwe.mitre.org/data/definitions/611.html)\n[OWASP XML External Entity Prevention Cheat Sheet](https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#transformerfactory)",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.hl7.fhir.publisher:org.hl7.fhir.publisher.cli"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.7.4"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "org.hl7.fhir.publisher:org.hl7.fhir.publisher.core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.7.4"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/HL7/fhir-ig-publisher/security/advisories/GHSA-59rq-22fm-x8q5"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/HL7/fhir-ig-publisher/security/advisories/GHSA-8c3x-hq82-gjcm"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-52807"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/HL7/fhir-ig-publisher/commit/3560de2f486d688a3ddcf4aa54d8bdacea380c3d"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/HL7/fhir-ig-publisher"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/HL7/fhir-ig-publisher/compare/1.7.3...1.7.4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-611" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-01-24T18:33:29Z",
    "nvd_published_at" : "2025-01-24T19:15:12Z"
  }
}