CVE-2022-43680
IBM Db2 vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related IBM Db2 vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-10534HIGH8.4
  • IBM Db2 logoIBM Db2
  • cpe:2.3:a:ibm:db2
NoNoAug 12, 2026
CVE-2026-10543HIGH8.2
  • IBM Db2 logoIBM Db2
  • cpe:2.3:a:ibm:db2
NoNoAug 12, 2026
CVE-2026-18097MEDIUM5.5
  • IBM Db2 logoIBM Db2
  • cpe:2.3:a:ibm:db2
NoNoAug 12, 2026
CVE-2026-16480MEDIUM4.3
  • IBM Db2 logoIBM Db2
  • cpe:2.3:a:ibm:db2
NoNoAug 12, 2026
CVE-2026-18096LOW3.3
  • IBM Db2 logoIBM Db2
  • cpe:2.3:a:ibm:db2
NoNoAug 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management