Skip to content
Heist/ feed
Back to feed
High

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

Type: advisorySources: OSV

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-38374
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 18:35 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 28 Jun 2024, 18:01 UTC

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.

osv:CVE-2024-38374
Complete source record
{
  "id": "3e6cd8baf476af71e1713f125123d64b25e62e095ff25b7595b6ecff065aa41d",
  "url": "https://osv.dev/vulnerability/CVE-2024-38374",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Improper Restriction of XML External Entity Reference in org.cyclonedx:cyclonedx-core-java",
    "summary": "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.",
    "evidence": "osv:CVE-2024-38374",
    "products": [],
    "severity": "high",
    "structured": {
      "id": "CVE-2024-38374",
      "aliases": [
        "CVE-2024-38374",
        "GHSA-683x-4444-jxh8"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/cyclonedx/cyclonedx-core-java",
              "type": "GIT",
              "events": [
                {
                  "introduced": "b4da34451bbda7c0b08e48b8e4f8d709b5f9dd39"
                },
                {
                  "fixed": "d94df352b18c3dac83415ac9e964a4addb7595ac"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "2.1.0"
                      },
                      {
                        "fixed": "9.0.4"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StringRangeExpression"
                  }
                ]
              }
            }
          ],
          "versions": [
            "cyclonedx-core-java-9.0.3",
            "cyclonedx-core-java-9.0.2",
            "cyclonedx-core-java-9.0.1",
            "cyclonedx-core-java-9.0.0",
            "cyclonedx-core-java-8.0.3",
            "cyclonedx-core-java-8.0.2",
            "cyclonedx-core-java-8.0.1",
            "cyclonedx-core-java-8.0.0",
            "cyclonedx-core-java-7.3.2",
            "cyclonedx-core-java-7.3.1",
            "cyclonedx-core-java-7.3.0",
            "cyclonedx-core-java-7.2.1",
            "cyclonedx-core-java-7.2.0",
            "cyclonedx-core-java-7.1.6",
            "cyclonedx-core-java-7.1.5",
            "cyclonedx-core-java-7.1.4",
            "cyclonedx-core-java-7.1.3",
            "cyclonedx-core-java-7.1.2",
            "cyclonedx-core-java-7.1.1",
            "cyclonedx-core-java-7.1.0",
            "cyclonedx-core-java-7.0.0",
            "cyclonedx-core-java-6.0.0",
            "cyclonedx-core-java-5.0.5",
            "cyclonedx-core-java-5.0.4",
            "cyclonedx-core-java-5.0.3",
            "cyclonedx-core-java-5.0.2",
            "cyclonedx-core-java-5.0.1",
            "cyclonedx-core-java-5.0.0",
            "cyclonedx-core-java-4.1.2",
            "cyclonedx-core-java-4.1.1",
            "cyclonedx-core-java-4.1.0",
            "cyclonedx-core-java-4.0.3",
            "cyclonedx-core-java-4.0.2",
            "cyclonedx-core-java-4.0.1",
            "cyclonedx-core-java-4.0.0",
            "cyclonedx-core-java-3.0.8",
            "cyclonedx-core-java-3.0.7",
            "cyclonedx-core-java-3.0.6",
            "cyclonedx-core-java-3.0.5",
            "cyclonedx-core-java-3.0.4",
            "cyclonedx-core-java-3.0.3",
            "cyclonedx-core-java-3.0.2",
            "cyclonedx-core-java-3.0.1",
            "cyclonedx-core-java-3.0.0",
            "cyclonedx-core-java-2.7.0",
            "cyclonedx-core-java-2.6.5",
            "cyclonedx-core-java-2.6.4",
            "cyclonedx-core-java-2.6.3",
            "cyclonedx-core-java-2.6.2",
            "cyclonedx-core-java-2.6.1",
            "cyclonedx-core-java-2.6.0",
            "cyclonedx-core-java-2.5.1",
            "cyclonedx-core-java-2.5.0",
            "cyclonedx-core-java-2.1.1",
            "cyclonedx-core-java-2.1.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-38374.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:22.413315410Z",
      "provider": "osv",
      "references": [
        "https://github.com/CycloneDX/cyclonedx-core-java/pull/434/commits/ab0bc9c530d24f737970dbd0287d1190b129853d",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38374.json",
        "https://github.com/CycloneDX/cyclonedx-core-java/security/advisories/GHSA-683x-4444-jxh8",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-38374",
        "https://github.com/CycloneDX/cyclonedx-core-java/pull/434"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-611"
        ],
        "cna_assigner": "GitHub_M",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/38xxx/CVE-2024-38374.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-38374",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 488612,
  "published_at": "2024-06-28T18:01:51.789+00:00"
}