← Vulnerability feed

Vulnerability record · CVE-2022-40304 · published 23 November 2022

CVE-2022-40304: Xmlsoft libxml2 double free vulnerability

Xmlsoft · Libxml2

An issue was discovered in libxml2 before 2.10.3. Certain invalid XML entity definitions can corrupt a hash table key, potentially leading to subsequent logic errors. In one case, a double-free can be provoked.

7.8 CVSS 3.1 High EPSS 5.8% · top 7.1% CWE-415 · Double free
7.8CVSS 3.1 base score
5.8%EPSS exploitation probability, 30 days
NoNot in CISA KEV
17Affected product versions listed by NVD
28References
17 Jun 2026Last modified by NVD

Description

An issue was discovered in libxml2 before 2.10.3. Certain invalid XML entity definitions can corrupt a hash table key, potentially leading to subsequent logic errors. In one case, a double-free can be provoked.

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

17 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://seclists.org/fulldisclosure/2022/Dec/21 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2022/Dec/24 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2022/Dec/25 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2022/Dec/26 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2022/Dec/27
https://gitlab.gnome.org/GNOME/libxml2/-/commit/1b41ec4e9433b05bb0376be4725804c54ef1d80b PatchThird Party Advisory
https://gitlab.gnome.org/GNOME/libxml2/-/tags Release NotesThird Party Advisory
https://gitlab.gnome.org/GNOME/libxml2/-/tags/v2.10.3 PatchRelease NotesThird Party Advisory
https://security.netapp.com/advisory/ntap-20221209-0003/ Third Party Advisory
https://support.apple.com/kb/HT213531 Third Party Advisory
https://support.apple.com/kb/HT213533 Third Party Advisory
https://support.apple.com/kb/HT213534 Third Party Advisory
https://support.apple.com/kb/HT213535 Third Party Advisory
https://support.apple.com/kb/HT213536 Third Party Advisory
http://seclists.org/fulldisclosure/2022/Dec/21 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2022/Dec/24 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2022/Dec/25 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2022/Dec/26 Mailing ListThird Party Advisory
http://seclists.org/fulldisclosure/2022/Dec/27
https://gitlab.gnome.org/GNOME/libxml2/-/commit/1b41ec4e9433b05bb0376be4725804c54ef1d80b PatchThird Party Advisory
https://gitlab.gnome.org/GNOME/libxml2/-/tags Release NotesThird Party Advisory
https://gitlab.gnome.org/GNOME/libxml2/-/tags/v2.10.3 PatchRelease NotesThird Party Advisory
https://security.netapp.com/advisory/ntap-20221209-0003/ Third Party Advisory
https://support.apple.com/kb/HT213531 Third Party Advisory
https://support.apple.com/kb/HT213533 Third Party Advisory
https://support.apple.com/kb/HT213534 Third Party Advisory
https://support.apple.com/kb/HT213535 Third Party Advisory
https://support.apple.com/kb/HT213536 Third Party Advisory

Track CVE-2022-40304 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-43300Apple iOS, iPadOS and macOS out-of-bounds write via malicious imageAn out-of-bounds write in Apple iOS, iPadOS and macOS is triggered when processing a malicious image file, causing memory corruption. Apple states th…KEVEPSS 22%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2025-24085Apple iOS, iPadOS, macOS, tvOS, visionOS, watchOS Use-After-Free Privilege EscalationA use-after-free flaw in Apple's operating systems was fixed through improved memory management in iOS 18.3, iPadOS 18.3 and 17.7.6, macOS Sequoia 15…KEVEPSS 18%analysed9.8CVE-2026-65400Apple macOS Screen Sharing authentication bypassAn improper authentication flaw in Apple macOS Screen Sharing allows a network attacker to authenticate without valid credentials. Apple fixed it via…KEVEPSS 1.2%analysed9.8CVE-2025-31200Apple OS media parsing memory corruption allows code executionA memory corruption flaw in Apple's audio stream processing was fixed with improved bounds checking across iOS, iPadOS, macOS, tvOS, visionOS and wat…KEVEPSS 19%analysed9.8CVE-2025-31201Apple OS Pointer Authentication bypass via arbitrary read/writeApple removed vulnerable code that allowed an attacker holding arbitrary read and write capability to bypass Pointer Authentication across iOS, iPadO…KEVEPSS 14%analysed9.8CVE-2022-22587Apple iOS, iPadOS and macOS kernel memory corruption via out-of-bounds writeAn out-of-bounds write (CWE-787) in Apple iOS, iPadOS and macOS is caused by insufficient input validation and can corrupt memory. Apple states it is…KEVEPSS 12%analysed9.8CVE-2021-1870Apple WebKit logic flaw allows remote code executionA logic issue in Apple's WebKit was addressed with improved restrictions, affecting macOS Big Sur, Catalina, Mojave, iOS and iPadOS, plus WebKitGTK a…KEVEPSS 7.7%analysed

Source: NIST National Vulnerability Database (record CVE-2022-40304), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.