CVE-2022-43680: libexpat · Use After Free
Source CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 26 Oct 2026, 15:59 UTC
- EPSS
- 3.1% chance of exploitation in 30 days – higher than 87% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 24 Oct 2022
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
GitHublibexpat/libexpatpkg:github/libexpat/libexpatOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
To mitigate CVE-2022-43680, European organizations should: 1) Identify all software and systems that incorporate libexpat, especially versions up to 2.4.9. 2) Monitor vendor advisories for patches or updates that address this vulnerability and apply them promptly. 3) Where direct patching of libexpat is not feasible (e.g., embedded devices), consider applying compensating controls such as limiting exposure of affected services to untrusted networks via network segmentation and firewall rules. 4) Implement robust resource monitoring and memory management safeguards to detect and respond to out-of-memory conditions that could trigger the vulnerability. 5) Conduct thorough testing of XML processing components under stress conditions to identify potential instability. 6) Employ runtime protections such as AddressSanitizer or similar memory error detection tools during development and testing phases to catch use-after-free issues early. 7) Maintain up-to-date incident response plans to quickly address potential denial-of-service incidents stemming from this vulnerability.
Description
In libexpat through 2.4.9, there is a use-after free caused by overeager destruction of a shared DTD in XML_ExternalEntityParserCreate in out-of-memory situations.
References
- github.com/libexpat/libexpat/pull/650 (opens in a new tab)
- github.com/libexpat/libexpat/issues/649 (opens in a new tab)
- github.com/libexpat/libexpat/pull/616 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2022/10/msg00033.html (opens in a new tab)
- debian.org/security/2022/dsa-5266 (opens in a new tab)
- security.gentoo.org/glsa/202210-38 (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/BY4OPSIB33ETNUXZY2UPZ4NGQ3OKDY4D/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/AJ5VY2VYXE4WTRGQ6LMGLF6FV3SY37YE/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IUJ2BULJTZ2BMSKQHB6US674P55UCWWS/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XG5XOOB7CD55CEE6OJYKSACSIMQ4RWQ6/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/DPQVIF6TOJNY2T3ZZETFKR4G34FFREBQ/ (opens in a new tab)
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/FFCOMBSOJKLIKCGCJWHLJXO4EVYBG7AR/ (opens in a new tab)
- security.netapp.com/advisory/ntap-20221118-0007/ (opens in a new tab)
- openwall.com/lists/oss-security/2023/12/28/5 (opens in a new tab)
- openwall.com/lists/oss-security/2024/01/03/5 (opens in a new tab)