CVE-2022-40304

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.

Published: 2022-11-23 Last update: 2026-06-17 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2022-40304 is rated High Risk (68.8/100): CVSS High severity, with high exploitation likelihood (EPSS 6.84%, 93th percentile). Core evidence: EPSS ranks this CVE among the most likely to be exploited in the near term. EPSS rose +6.68% over the last day, indicating growing attacker interest. Mandatory action: High exploitation likelihood—assess exposure and prioritize remediation.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2022-40304

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.16% 6.84% +6.68%
2 2026-04-01 0.11% 0.16% +0.06%
3 2025-11-21 0.11%

Full EPSS history (9 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2022-40304

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
7.8 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.8 5.9 [email protected]
7.8 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H Click to expand
Attack vector (AV:L)
They already need access on the box, or another person has to do something wrong; it’s not a remote drive-by.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:H)
They could widely tamper with or forge data—trust in the data is badly hurt.
Availability (A:H)
Could take the service down hard or make it unusable for people who depend on it.
1.8 5.9 134c704f-9b21-4f2e-91b3-4a467353bcc0

Weakness enumeration for CVE-2022-40304

OS Trackers for CVE-2022-40304

vendor priority summary link
alpine CVE-2022-40304: 2 source package rows (libxml2, libxml2.13); 68 state rows across 7 repos (3.17-main, 3.18-main, 3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 8, open 60. https://security.alpinelinux.org/vuln/CVE-2022-40304
debian not yet assigned CVE-2022-40304 not yet assigned priority: Debian including 1 source packages (libxml2), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2022-40304
gentoo high CVE-2022-40304: 1 GLSA(s) (202210-39), 1 atom(s) (dev-libs/libxml2); latest impact high. https://bugs.gentoo.org/buglist.cgi?quicksearch=CVE-2022-40304
redhat medium https://access.redhat.com/security/cve/CVE-2022-40304
suse high CVE-2022-40304 severity important: SUSE including 395 source package names (0.23.0.3.2.368:libxml2-2-2.9.7-150000.3.51.1, 1.1.0-build4.19.12:libxml2-2-2.9.7-150000.3.51.1, …), 859 product×package rows across 262 product lines (Container bci/bci-init, Container bci/dotnet-aspnet, … (262 product lines)): Fixed 725, Known Affected 110, Known Not Affected 24. https://www.suse.com/security/cve/CVE-2022-40304/
ubuntu medium CVE-2022-40304 medium priority: Ubuntu including 1 source packages (libxml2), 8 status rows across 8 suites (bionic, focal, jammy, kinetic, lunar, trusty, upstream, xenial): released 7, not-affected 1. https://ubuntu.com/security/CVE-2022-40304

Affected software / configurations for CVE-2022-40304

Vendor Product Version Raw CPE
xmlsoft libxml2 < 2.10.3 cpe:2.3:a:xmlsoft:libxml2:*:*:*:*:*:*:*:*
netapp active_iq_unified_manager cpe:2.3:a:netapp:active_iq_unified_manager:-:*:*:*:*:vmware_vsphere:*:*
netapp clustered_data_ontap cpe:2.3:a:netapp:clustered_data_ontap:-:*:*:*:*:*:*:*
netapp clustered_data_ontap_antivirus_connector cpe:2.3:a:netapp:clustered_data_ontap_antivirus_connector:-:*:*:*:*:*:*:*
netapp manageability_software_development_kit cpe:2.3:a:netapp:manageability_software_development_kit:-:*:*:*:*:*:*:*
netapp smi-s_provider cpe:2.3:a:netapp:smi-s_provider:-:*:*:*:*:*:*:*
netapp snapmanager cpe:2.3:a:netapp:snapmanager:-:*:*:*:*:hyper-v:*:*
netapp h300s_firmware cpe:2.3:o:netapp:h300s_firmware:-:*:*:*:*:*:*:*
netapp h500s_firmware cpe:2.3:o:netapp:h500s_firmware:-:*:*:*:*:*:*:*
netapp h700s_firmware cpe:2.3:o:netapp:h700s_firmware:-:*:*:*:*:*:*:*
netapp h410s_firmware cpe:2.3:o:netapp:h410s_firmware:-:*:*:*:*:*:*:*
netapp h410c_firmware cpe:2.3:o:netapp:h410c_firmware:-:*:*:*:*:*:*:*
apple ipados < 15.7.2 cpe:2.3:o:apple:ipados:*:*:*:*:*:*:*:*
apple iphone_os < 15.7.2 cpe:2.3:o:apple:iphone_os:*:*:*:*:*:*:*:*
apple macos >= 11.0, < 11.7.2 cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:*
apple macos >= 12.0, < 12.6.2 cpe:2.3:o:apple:macos:*:*:*:*:*:*:*:*
apple tvos < 16.2 cpe:2.3:o:apple:tvos:*:*:*:*:*:*:*:*
apple watchos < 9.2 cpe:2.3:o:apple:watchos:*:*:*:*:*:*:*:*

References for CVE-2022-40304

URL Tags
http://seclists.org/fulldisclosure/2022/Dec/21 Mailing List Third Party Advisory
http://seclists.org/fulldisclosure/2022/Dec/24 Mailing List Third Party Advisory
http://seclists.org/fulldisclosure/2022/Dec/25 Mailing List Third Party Advisory
http://seclists.org/fulldisclosure/2022/Dec/26 Mailing List Third Party Advisory
http://seclists.org/fulldisclosure/2022/Dec/27
https://gitlab.gnome.org/GNOME/libxml2/-/commit/1b41ec4e9433b05bb0376be4725804c54ef1d80b Patch Third Party Advisory
https://gitlab.gnome.org/GNOME/libxml2/-/tags Release Notes Third Party Advisory
https://gitlab.gnome.org/GNOME/libxml2/-/tags/v2.10.3 Patch Release Notes Third 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
cvelogic Threat Intelligence