CVE-2026-45186

libexpat: denial of service via crafted XML input

Published May 10, 2026 CVSS 3.1 · 2.9 Low EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

In libexpat versions prior to 2.8.1, the routine that checks for attribute name collisions grows in computational complexity with the number of attributes. When a malicious actor supplies a moderately sized XML document containing many attributes with colliding names, parsing can consume excessive CPU and memory resources, causing the application or service to become unresponsive. The vulnerability is a classic denial‑of‑service flaw, classified as CWE‑407: check on correctness. The CVSS score of 2.9 reflects a low‑to‑moderate risk to confidentiality, integrity, and availability for systems that parse XML with libexpat.

Affected Systems

The flaw affects the libexpat library from the libexpat project. All installations using libexpat versions earlier than 2.8.1 are susceptible. No additional vendor or product variations are listed in the CNA data.

Risk and Exploitability

The attack requires constructing a crafted XML input with a high number of colliding attribute names. The CVSS assessment indicates low severity, and the exploitation probability (EPSS) is not reported, suggesting limited evidence of widespread exploitation. The vulnerability is not included in CISA's known exploited vulnerabilities catalog. Attackers would most likely send the malicious XML over a network interface that the application accepts, making the vector external. An effective exploit would need to bypass any application‑level input filtering and reach the XML parsing routine of libexpat.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libexpat to version 2.8.1 or later.
  • Reduce the maximum size of XML documents that the application processes.
  • Implement resource limits—such as maximum XML depth, attribute count, and overall document size—to mitigate potential denial‑of‑service conditions.

Generated by OpenCVE AI on May 10, 2026 at 07:20 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-4807-1 expat security update
Debian DSA Debian DSA DSA-6404-1 expat security update
Ubuntu USN Ubuntu USN USN-8790-1 Expat vulnerabilities
History
Type Values Removed Values Added
Title Denial of Service via Attribute Name Collision in libexpat libexpat: denial of service via crafted XML input
References
Metrics threat_severity

None

threat_severity

Important

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Denial of Service via Attribute Name Collision in libexpat
Type Values Removed Values Added
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.
First Time appeared Libexpat Project
Libexpat Project libexpat
Weaknesses CWE-407
CPEs cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*
Vendors & Products Libexpat Project
Libexpat Project libexpat
References
Metrics cvssV3_1

{'score': 2.9, 'vector': 'CVSS:3.1/AV:L/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L'}

Weaknesses
  • CWE-407

    Inefficient Algorithmic Complexity

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Nov 10, 2026, 12:46 PM
Reserved
May 10, 2026, 6:36 AM
Status
Modified
Published
May 10, 2026, 7:16 AM
Modified
Nov 10, 2026, 1:19 PM
Severity
Important
Public date
May 10, 2026, 6:36 AM