Vulnerability · Published Jun 28, 2024 · Assigned by GitHub_M
CVE-2024-38374Improper Restriction of XML External Entity Reference in org.cyclonedx:cyclonedx-core-java
High 7.5
In plain English
A high-severity XML external entity in cyclonedx-core-java from CycloneDX. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 48% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Maven | org.cyclonedx:cyclonedx-core-java | 9.0.4 | GHSA-683x-4444-jxh8 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| CycloneDX | cyclonedx-core-java | >= 2.1.0, < 9.0.4 |
Weakness: CWE-611 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://github.com/CycloneDX/cyclonedx-core-java/security/advisories/GHSA-683x-4444-jxh8 x_refsource_CONFIRM
- https://github.com/CycloneDX/cyclonedx-core-java/pull/434 x_refsource_MISC
- https://github.com/CycloneDX/cyclonedx-core-java/pull/434/commits/ab0bc9c530d24f737970dbd0287d1190b129853d x_refsource_MISC