Use-After-Free in libexpat (CVE-2022-40674)
Summary
Vulnerability in libexpat (CVE-2022-40674). Successful exploitation can lead to full system takeover.
Original description
The description as published by the source.
libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A weakness called CVE-2022-40674 was discovered in libexpat.
In plain terms, it is a use-after-free flaw that often leads to attacker takeover.
Severity is High (CVSS 8.1/10). If exploited, attackers can leak data or disrupt key functionality.
What you should do: update the affected software to the latest version. If unsure, ask your IT team or search the vendor's site for "libexpat CVE-2022-40674".
CVE-2022-40674 (libexpat). Severity: High / CVSSv3 8.1. Category: CWE-416.
Response plan:
- Check the vendor advisory for affected versions and the patched release.
- If a vulnerable version is running in production, schedule maintenance (urgency from KEV/CVSS).
- If no patch yet, mitigate via WAF rule, disabling the affected feature, etc.
- Monitor logs / SIEM for known IOC and PoC signatures of this CVE.
PoCs and fix commits: see the 'References' section, MITRE, and NVD.
A weakness (CVE-2022-40674) in libexpat. In plain words, it is a use-after-free flaw that often leads to attacker takeover.
Target versions of libexpat (see vendor advisory). If running in production, identify exposure immediately.
Severity: High (CVSS 8.1/10). If exploited, attackers can leak data or disrupt key functionality.
Update to the patched release as listed in the vendor advisory. (Typical mitigation pattern for CWE-416)
If a patch is not yet available, consider disabling the affected feature, applying WAF rules, blocking via network ACLs, or isolating the vulnerable version.
Check version information, scan dependencies via SBOM, and monitor SIEM for IOC and PoC signatures related to this CVE.
Fix status by distribution
Fixed packages published by each distribution for this CVE
- Alpine Linux ALPINE-CVE-2022-40674 expat Fixed in: 2.2.10-r7
- Debian DEBIAN-CVE-2022-40674 expat Fixed in: 2.2.10-2+deb11u4
- Ubuntu UBUNTU-CVE-2022-40674 expat Fixed in: 2.1.0-4ubuntu1.4+esm7
References
- advisory debian.org
- advisory lists.debian.org
- advisory security.gentoo.org
- advisory security.gentoo.org
- advisory security.netapp.com
- patch github.com
- patch github.com
- web nvd.nist.gov
- web security.netapp.com
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web cert-portal.siemens.com
- web github.com
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org
- web lists.fedoraproject.org