{"id":"CVE-2024-38374","published":"2024-06-28T18:01:51Z","modified":"2024-08-02T04:04:25Z","title":"Improper Restriction of XML External Entity Reference in org.cyclonedx:cyclonedx-core-java","vendor":"CycloneDX","product":"cyclonedx-core-java","tier":"tail","description":{"text":"The CycloneDX core module provides a model representation of the SBOM along with utilities to assist in creating, validating, and parsing SBOMs. 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. This vulnerability has been fixed in cyclonedx-core-java version 9.0.4.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00589,"percentile":0.49077,"provenance":"source"},"cwes":[{"id":"CWE-611","name":"Improper Restriction of XML External Entity Reference"}],"references":[{"url":"https://github.com/CycloneDX/cyclonedx-core-java/security/advisories/GHSA-683x-4444-jxh8","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/CycloneDX/cyclonedx-core-java/pull/434","tags":["x_refsource_MISC"]},{"url":"https://github.com/CycloneDX/cyclonedx-core-java/pull/434/commits/ab0bc9c530d24f737970dbd0287d1190b129853d","tags":["x_refsource_MISC"]}],"priority":{"score":15.1,"factors":[{"name":"EPSS percentile","points":9.82},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"cyclonedx","affectedVersions":[{"vendor":"CycloneDX","product":"cyclonedx-core-java","versions":[">= 2.1.0, < 9.0.4"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2024-07-01T18:05:26.661731Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Maven","package":"org.cyclonedx:cyclonedx-core-java","vulnerableRanges":[">=2.1.0, <9.0.4"],"patched":["9.0.4"],"from":["GHSA-683x-4444-jxh8"],"provenance":"source"}],"summary":{"text":"The flaw lies in the CycloneDX core module of cyclonedx-core-java (CycloneDX), where the XPath-based step that determines a CycloneDX XML Bill of Materials' schema version uses a DocumentBuilderFactory that was not configured securely, enabling XML External Entity (XXE) injection. An attacker who can supply a crafted XML BOM for the library to process can exploit this without authentication or user interaction, but only where the affected code parses XML BOMs before deserialization.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:31:03Z"},"euvd":{"id":"EUVD-2024-1944","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-cyclonedx-core-java-cve-2024-38374","children":[{"from":"CVE-2024-38374","to":"CVE-2025-64518","relation":"incomplete-fix","confidence":"high","kind":"lineage","evidence":[{"kind":"text","provenance":"source","relation":"incomplete-fix","quote":"The fix for GHSA-683x-4444-jxh8 / CVE-2024-38374 was incomplete in that it only fixed parsing of XML BOMs, but not validation.","from":"CVE.org","in":"CVE-2025-64518"},{"kind":"same-code","provenance":"machine","files":["src/main/java/org/cyclonedx/parsers/XmlParser.java"],"commits":["https://github.com/CycloneDX/cyclonedx-core-java/commit/ab0bc9c530d24f737970dbd0287d1190b129853d","https://github.com/CycloneDX/cyclonedx-core-java/commit/162aa594f347b3f612fe0a45071693c3cd398ce9","https://github.com/CycloneDX/cyclonedx-core-java/commit/af0ec75c93c03f93733a070c5132554490af5314"],"basis":"rarely changed file"},{"kind":"similar","provenance":"machine","score":0.62,"basis":"same product + CWE + description similarity"}]}]}}