Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. org.cyclonedx/cyclonedx-core-java
  4. ›
  5. CVE-2024-38374

CVE-2024-38374: Improper Restriction of XML External Entity Reference in org.cyclonedx:cyclonedx-core-java

June 24, 2024

Before deserializing CycloneDX Bill of Materials in XML format, cyclonedx-core-java leverages XPath expressions to determine the schema version of the BOM. The DocumentBuilderFactory used to evaluate XPath expressions was not configured securely, making the library vulnerable to XML External Entity (XXE) injection.

XXE injection can be exploited to exfiltrate local file content, or perform Server Side Request Forgery (SSRF) to access infrastructure adjacent to the vulnerable application.

References

  • github.com/CycloneDX/cyclonedx-core-java
  • github.com/CycloneDX/cyclonedx-core-java/security/advisories/GHSA-683x-4444-jxh8
  • github.com/advisories/GHSA-683x-4444-jxh8
  • nvd.nist.gov/vuln/detail/CVE-2024-38374

Code Behaviors & Features

Detect and mitigate CVE-2024-38374 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 2.1.0 before 9.0.4

Fixed versions

  • 9.0.4

Solution

Upgrade to version 9.0.4 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-611: Improper Restriction of XML External Entity Reference

Source file

maven/org.cyclonedx/cyclonedx-core-java/CVE-2024-38374.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:14 +0000.