CVE-2026-56409
Analyzed Analyzed - Analysis Complete

Integer Overflow in Expat XML Parser

Vulnerability report for CVE-2026-56409, 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 for the output filename when -d outputDir is used.

CVSS Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-06-21
Last Modified
2026-06-23
Generated
2026-07-11
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

The CVE-2026-56409 vulnerability is an integer overflow issue in the xmlwf tool of the libexpat library. It occurs when the -d outputDir option is used to specify an output directory. The code calculates the buffer size needed for the output filename by adding the lengths of the output directory and filename, but it does not properly check for integer overflow during this calculation. On systems with long directory or filenames, this can cause the size calculation to wrap around, resulting in an undersized buffer.

Because the buffer is too small, copying the directory and filename strings into it can overflow the heap buffer, potentially leading to memory corruption or other unexpected behavior. The issue was fixed by adding overflow protection checks to ensure safe memory allocation.

Compliance Impact

The provided information does not specify any direct impact of the CVE-2026-56409 vulnerability on compliance with common standards and regulations such as GDPR or HIPAA.

Impact Analysis

This vulnerability can lead to heap-based buffer overflows when processing output filenames with long directory or file names. Such buffer overflows may cause memory corruption, crashes, or potentially allow an attacker to execute arbitrary code or cause denial of service.

Detection Guidance

This vulnerability is related to an integer overflow in the xmlwf tool of the libexpat library when using the -d outputDir option, which can lead to heap-based buffer overflows. Detection would involve checking if your system is running a vulnerable version of libexpat (before 2.8.2) and if the xmlwf tool is used with the -d option.

Since the issue is in the construction of output file paths, direct network detection commands are not applicable. Instead, you can check the installed libexpat version with commands like:

  • dpkg -l | grep libexpat (on Debian/Ubuntu systems)
  • rpm -q libexpat (on RedHat/CentOS systems)

To detect if the vulnerable xmlwf tool is used with the -d option, you may review usage logs or scripts invoking xmlwf with output directory parameters.

Mitigation Strategies

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

If upgrading is not immediately possible, avoid using the xmlwf tool with the -d outputDir option, especially with long directory or file names, to prevent triggering the integer overflow.

Additionally, review and restrict usage of xmlwf in scripts or automated processes to minimize exposure.

Chat Assistant

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

EPSS Chart