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.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.6%top 51.7% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

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

EcosystemPackageFixed inAdvisory
Mavenorg.cyclonedx:cyclonedx-core-java9.0.4GHSA-683x-4444-jxh8

Affected products (as reported)

VendorProductVersions
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