Description
libexpat through 2.9.0 contains a signed integer overflow vulnerability in storeAtts() in lib/xmlparse.c that allows attackers to trigger out-of-bounds writes via oversized attribute counts. Attackers can supply a multi-gigabyte document with a start tag carrying over 2^30 attributes to overflow attIndex and nPrefixes, crashing applications or corrupting heap memory.
Published: 2026-10-28
Score: 8.2 High
EPSS: n/a
KEV: No
Impact: Out-of-bounds Write
Action: Apply Patch
AI Analysis

Impact

A signed integer overflow in the XML parsing routine of libexpat can be triggered by a malformed start tag containing an astronomical number of attributes. The overflow corrupts the internal attribute index and the prefix counter, which can lead to out-of-bounds memory writes, heap corruption, crashes, and in certain contexts, arbitrary code execution.

Affected Systems

The vulnerability affects all instances of the libexpat library up to and including version 2.9.0. Any application or service that incorporates libexpat—such as web servers, XML‐handling utilities, or other software that parses XML documents—runs the risk if it links against a vulnerable release. The affected library is identified in the CPE as libexpat_project:libexpat and is widely used on numerous operating systems and platforms.

Risk and Exploitability

The CVSS score of 8.2 indicates a high severity exploit potential. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalogue, implying that there is no public evidence of widespread exploitation yet. The attack requires an attacker to supply an XML document with a start tag containing more than a billion attributes, which may be feasible over a network or local interface if the parsing endpoint accepts arbitrary input. When delivered, the vulnerability can cause a denial of service by crashing the host process, corrupt heap memory, and potentially allow control flow hijack if the attacker can influence or predict the corrupted data.

Generated by OpenCVE AI on October 28, 2026 at 03:26 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libexpat to version 2.9.1 or later to remove the integer overflow bug.
  • If a newer release is not yet available, apply the upstream patch commits that resolve the overflow in storeAtts, ensuring that the library source code is rebuilt and reinstalled.
  • Implement input validation to strictly limit the number of attributes in any XML element and to reject documents exceeding a realistic size threshold, thereby preventing the overflow from being triggered.

Generated by OpenCVE AI on October 28, 2026 at 03:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 28 Oct 2026 02:30:00 +0000

Type Values Removed Values Added
Description libexpat through 2.9.0 contains a signed integer overflow vulnerability in storeAtts() in lib/xmlparse.c that allows attackers to trigger out-of-bounds writes via oversized attribute counts. Attackers can supply a multi-gigabyte document with a start tag carrying over 2^30 attributes to overflow attIndex and nPrefixes, crashing applications or corrupting heap memory.
Title libexpat through 2.9.0 Integer Overflow in storeAtts via attIndex and nPrefixes
First Time appeared Libexpat Project
Libexpat Project libexpat
Weaknesses CWE-190
CPEs cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*
Vendors & Products Libexpat Project
Libexpat Project libexpat
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N'}


Subscriptions

Libexpat Project Libexpat
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-28T02:03:19.447Z

Reserved: 2026-10-28T01:19:19.454Z

Link: CVE-2026-118370

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-28T03:17:13.293

Modified: 2026-10-28T03:17:13.293

Link: CVE-2026-118370

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-28T03:30:15Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound