Description
libexpat 2.7.2 through 2.9.0 contains a denial of service vulnerability because XML_ParserReset zeroes the direct byte count but never offsets tracked heap allocations. Attackers can submit a large XML document so later documents on the same reset parser fail with XML_ERROR_NO_MEMORY until it is recreated.
Published: 2026-10-20
Score: 8.2 High
EPSS: n/a
KEV: No
Impact: Denial of Service
Action: Patch Immediately
AI Analysis

Impact

libexpat versions from 2.7.2 through 2.9.0 contain a flaw where the XML_ParserReset function zeroes the direct byte counter but fails to adjust offsets that track heap allocations. When an attacker feeds a very large XML document, subsequent parse operations on the same reset parser later fail with XML_ERROR_NO_MEMORY, effectively preventing further processing and causing a service interruption.

Affected Systems

The vulnerability affects the libexpat library, specifically the open‑source libexpat project. All installations of the library between release 2.7.2 and 2.9.0 are impacted, regardless of the host operating system or application using the library.

Risk and Exploitability

With a CVSS score of 8.2 the flaw is considered high severity. The EPSS for this issue is not available and it is not listed in CISA’s KEV catalog. An attacker who can deliver a large XML document to an application that uses a persistent libexpat parser can trigger the denial of service by exhausting memory during a subsequent parse. The likely attack vector is remote or local depending on how the vulnerable application accepts XML input. Once triggered, the parser will consistently return XML_ERROR_NO_MEMORY until the parser is completely recreated.

Generated by OpenCVE AI on October 20, 2026 at 14:49 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade libexpat to a fixed release such as 2.9.1 or later to eliminate the flaw.
  • If an immediate upgrade is not feasible, re‑initialize the parser after processing a large XML document or after each request so that the internal offsets are correctly reset before the next parse operation.
  • Configure application logic to limit the size of XML documents processed by libexpat, rejecting or truncating input that exceeds a safe threshold before parsing.

Generated by OpenCVE AI on October 20, 2026 at 14:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 20 Oct 2026 12:45:00 +0000

Type Values Removed Values Added
Description libexpat 2.7.2 through 2.9.0 contains a denial of service vulnerability because XML_ParserReset zeroes the direct byte count but never offsets tracked heap allocations. Attackers can submit a large XML document so later documents on the same reset parser fail with XML_ERROR_NO_MEMORY until it is recreated.
Title libexpat 2.7.2 through 2.9.0 Denial of Service via XML_ParserReset
First Time appeared Libexpat Project
Libexpat Project libexpat
Weaknesses CWE-909
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:L/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-20T11:24:06.634Z

Reserved: 2026-10-20T01:07:45.687Z

Link: CVE-2026-113351

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-20T11:17:19.363

Modified: 2026-10-20T11:17:19.363

Link: CVE-2026-113351

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-20T15:00:19Z

Weaknesses
  • CWE-909

    Missing Initialization of Resource