What’s Vulnerable › Vulnerabilities

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

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 products

How to fix

Upgrade to a fixed version: Cyclonedx Core Java 9.0.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2024-38374 or the next vulnerability affects your stack