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: < 1% Very Low
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 score is <1% (approximately 0.00474) 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 22, 2026 at 21:00 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, which corrects the parser reset issue and mitigates the memory offset handling flaw (CWE-459, CWE-909).
  • 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, ensuring proper memory management per CWE-459.
  • Configure application logic to limit the size of XML documents processed by libexpat, rejecting or truncating input that exceeds a safe threshold before parsing, thereby reducing the risk of triggering the denial of service related to memory allocation errors (CWE-909).

Generated by OpenCVE AI on October 22, 2026 at 21:00 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 21 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-459
References
Metrics threat_severity

None

threat_severity

Moderate


Tue, 20 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


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-20T16:06:48.218Z

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

Link: CVE-2026-113351

cve-icon Vulnrichment

Updated: 2026-10-20T15:10:36.543Z

cve-icon NVD

Status : Analyzed

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

Modified: 2026-11-03T21:26:47.250

Link: CVE-2026-113351

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-20T10:41:37Z

Links: CVE-2026-113351 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-22T21:15:12Z

Weaknesses
  • CWE-459

    Incomplete Cleanup

  • CWE-909

    Missing Initialization of Resource