All reports
Medium

expat: Integer overflow in copyString()

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2022-25314

Probability of exploitation in the next 30 days: 4.82%

FIRST EPSS · 2026-11-21

Description

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

An integer overflow flaw was found in expat. This issue affects the encoding name parameter at the parser creation time, which is often hard-coded (rather than user input), takes a value in the gigabytes to trigger, and on a 64-bit machine. This flaw can cause a denial of service.