CVE-2026-56408
Received Received - Intake
Integer Overflow in libexpat XML Parser

Publication date: 2026-06-21

Last updated on: 2026-06-21

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-21
Generated
2026-06-21
AI Q&A
2026-06-21
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
libexpat 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.

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