All reports
High

expat: Integer overflow in storeRawNames()

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-25315

Probability of exploitation in the next 30 days: 4.82%

FIRST EPSS · 2026-11-20

Description

In Expat (aka libexpat) before 2.4.5, there is an integer overflow in storeRawNames.

An integer overflow was found in expat. The issue occurs in storeRawNames() by abusing the m_buffer expansion logic to allow allocations very close to INT_MAX and out-of-bounds heap writes. This flaw can cause a denial of service or potentially arbitrary code execution.