Use-After-Free in libexpat
Summary
Vulnerability in libexpat (CVE-2022-40674). Successful exploitation can lead to full system takeover.
AI summary
Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.
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
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Alpine Linux ALPINE-CVE-2022-40674 expat Fix available
- Debian DEBIAN-CVE-2022-40674 expat Fix available
- Ubuntu UBUNTU-CVE-2022-40674 firefox, expat Fix available
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
References
- advisory nvd.nist.gov
- advisory debian.org
- advisory security.gentoo.org
- advisory security.gentoo.org
- advisory lists.fedoraproject.org
- advisory lists.fedoraproject.org
- advisory lists.fedoraproject.org
- advisory lists.fedoraproject.org
- advisory lists.fedoraproject.org
- advisory security.netapp.com
- advisory github.com
- patch github.com
- patch github.com
- web lists.debian.org
- 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