CVE-2026-56411
Analyzed Analyzed - Analysis Complete

Integer Overflow in Expat XML Parser

Vulnerability report for CVE-2026-56411, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-06-21

Last updated on: 2026-06-23

Assigner: MITRE

Description

xmlwf in libexpat before 2.8.2 has an integer overflow in endDoctypeDecl via NOTATION declarations.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-21
Last Modified
2026-06-23
Generated
2026-07-12
AI Q&A
2026-06-21
EPSS Evaluated
2026-07-10
NVD
EUVD

Affected Vendors & Products

Showing 1 associated CPE
Vendor Product Version / Range
libexpat_project libexpat to 2.8.2 (exc)

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-190 The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability is an integer overflow in the xmlwf tool within the libexpat library, specifically in the endDoctypeDecl() function. The function counts NOTATION declarations using a plain integer and then allocates memory based on this count without checking for overflow. On 32-bit systems, this can cause the multiplication to wrap around, leading to allocating less memory than needed. When the program writes data into this undersized buffer, it can cause memory corruption or crashes.

The issue is fixed by changing the count variable to a size_t type and adding an overflow check to ensure the allocation size does not exceed the maximum allowed size, preventing the integer overflow and ensuring safe memory allocation.

Impact Analysis

This vulnerability can lead to memory corruption or crashes when processing NOTATION declarations in XML documents using the xmlwf tool from libexpat. Such memory corruption could potentially be exploited to cause denial of service or, in some cases, arbitrary code execution depending on the context in which the library is used.

Detection Guidance

This vulnerability is related to an integer overflow in the xmlwf tool within the libexpat library, specifically in the endDoctypeDecl function when processing NOTATION declarations in DTDs.

Detection would involve identifying usage of vulnerable versions of libexpat (before 2.8.2) on your system or network.

You can check the installed version of libexpat with commands like:

  • dpkg -l | grep libexpat # On Debian/Ubuntu systems
  • rpm -qa | grep expat # On RedHat/CentOS systems

Additionally, you can check if the xmlwf tool is present and its version by running:

  • xmlwf --version

To detect attempts to exploit this vulnerability, monitor logs or network traffic for malformed XML documents containing NOTATION declarations in DTDs that might trigger the integer overflow.

Mitigation Strategies

The primary mitigation is to update libexpat to version 2.8.2 or later, where the integer overflow issue in xmlwf has been fixed.

If immediate update is not possible, consider restricting or disabling processing of XML documents with NOTATION declarations in DTDs, especially from untrusted sources.

Additionally, monitor your systems for crashes or memory corruption symptoms related to xmlwf usage.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-56411. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart