
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2022-43680 affects libexpat through version 2.4.9, where a use-after-free vulnerability exists due to overeager destruction of a shared DTD in XML_ExternalEntityParserCreate function during out-of-memory situations. The vulnerability was discovered in October 2022 and affects systems using the Expat XML parsing library (NVD, Debian Security).
The vulnerability occurs when the allocation in parserInit fails during XML_ExternalEntityParserCreate execution. Specifically, when parser->m_protocolEncodingName allocation fails, XML_ParserFree is called on the parser whose m_dtd pointer is shared with the document's root parser. Since the m_isParamEntity flag is set too late in XML_ExternalEntityParserCreate, this results in incorrect destruction of the shared DTD (Github Issue). The vulnerability has been assigned a CVSS v3.1 base score of 7.5 (HIGH) with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (NVD).
Successful exploitation of this vulnerability could lead to denial of service (DoS) conditions. The use-after-free condition could potentially result in program crashes or, in some cases, arbitrary code execution (NetApp Advisory, Gentoo Security).
The vulnerability requires specific conditions to be exploited, particularly an out-of-memory situation during XML parsing. The size of the allocation that needs to fail is very small, making it challenging to specifically target this vulnerability. While public discussion of this vulnerability exists, successful exploitation would require significant control over the execution environment (Github Pull Request).
The vulnerability has been fixed in libexpat version 2.5.0. Users and administrators are advised to upgrade to this or later versions. Various distributions have released patched versions: Debian has fixed it in version 2.2.10-2+deb11u5 for Bullseye, Fedora has updated to version 2.5.0, and other vendors have provided their respective security updates (Debian Security, Fedora Update).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."