CVE-2026-56408
Analyzed Analyzed - Analysis Complete

Integer Overflow in libexpat XML Parser

Vulnerability report for CVE-2026-56408, 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

libexpat before 2.8.2 has an integer overflow in copyString.

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 copyString function of libexpat versions before 2.8.2. Specifically, the function calculates the amount of memory needed to copy a string, but without proper checks, this calculation can overflow the integer limit. This overflow can cause incorrect memory allocation sizes, potentially leading to unsafe memory operations.

Impact Analysis

The integer overflow in the copyString function can lead to memory allocation errors, which may cause unexpected behavior such as crashes or memory corruption. This can be exploited to compromise the integrity and availability of applications using vulnerable versions of libexpat, potentially allowing attackers to execute arbitrary code or cause denial of service.

Mitigation Strategies

To mitigate the integer overflow vulnerability in libexpat before version 2.8.2, you should update libexpat to version 2.8.2 or later where the issue in the copyString function has been fixed.

The fix involves a check that prevents integer overflow during memory allocation in the copyString function, avoiding unsafe memory operations.

Detection Guidance

This vulnerability is an integer overflow in the copyString function of libexpat before version 2.8.2. Detection typically involves verifying the version of libexpat installed on your system.

To detect if your system is vulnerable, you can check the installed libexpat version using commands like:

  • On Linux systems, run: `xmlwf --version` or `expat-config --version` to get the libexpat version.
  • Alternatively, check the package manager for the installed version, for example: `dpkg -l | grep libexpat` on Debian-based systems or `rpm -q libexpat` on Red Hat-based systems.

If the version is earlier than 2.8.2, your system may be vulnerable to this integer overflow issue.

Compliance Impact

The provided information does not specify how the integer overflow vulnerability in libexpat before version 2.8.2 affects compliance with common standards and regulations such as GDPR or HIPAA.

Chat Assistant

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

EPSS Chart