Expat XML Parsing Library Integer Overflow Vulnerabilities
The Expat XML parsing library is affected by integer overflow vulnerabilities (CVE-2022-25235, CVE-2022-25236) that can be exploited by a local attacker to achieve arbitrary code execution or denial of service.
CVE search metadata
CVE search record: CVE-2022-25235. Severity: critical. CVSS: 9.8. EPSS: 4.96%. KEV: no. Product: expat (< 2.4.5). Brief: Expat XML Parsing Library Integer Overflow Vulnerabilities. Brief link: https://feed.craftedsignal.io/briefs/2026-09-expat-vulnerability/
CVE search record: CVE-2022-25236. Severity: critical. CVSS: 9.8. EPSS: 35.87%. KEV: no. Product: expat (< 2.4.5). Brief: Expat XML Parsing Library Integer Overflow Vulnerabilities. Brief link: https://feed.craftedsignal.io/briefs/2026-09-expat-vulnerability/
The Expat XML parser (libexpat) is susceptible to multiple integer overflow vulnerabilities, identified as CVE-2022-25235 and CVE-2022-25236. These flaws stem from improper handling of integer operations during XML parsing, which can be leveraged by a local attacker. Successfully triggering these overflows can result in memory corruption, potentially leading to arbitrary code execution, unauthorized information disclosure, or application-level denial-of-service conditions. Given the ubiquity of Expat as a dependency in many cross-platform applications, organizations should identify internal software suites that bundle or link against this library and ensure they are updated to a patched version that resolves these integer overflow conditions.
Impact
Successful exploitation of these vulnerabilities allows a local attacker to compromise the integrity and availability of applications using the vulnerable Expat library. The impact ranges from application crashes (DoS) to more severe outcomes, including the disclosure of sensitive process memory or the execution of arbitrary code within the context of the user or process running the affected application.
Recommendation
Prioritized, concrete actions for infrastructure and security teams:
- Inventory internal software applications that utilize the Expat XML library to determine exposure.
- Apply patches provided by the software vendor or the operating system maintainer for libexpat to address CVE-2022-25235 and CVE-2022-25236.
- Monitor application crash logs for frequent or irregular termination of services that process XML data, as these may indicate exploitation attempts or memory corruption issues.
Immediate actions
Audit software supply chain for Expat dependency usage.
Mitigations
Upgrade expat to 2.4.5 or later
CVE-2022-25235, CVE-2022-25236