{"id":"CVE-2022-40304","title":"An issue was discovered in libxml2 before 2.10.3","summary":"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.","severity":"high","cvss":7.8,"cvssVector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","cwe":["CWE-415","CWE-415"],"vendor":"xmlsoft","product":"libxml2","affected":["libxml2 < 2.10.3","active_iq_unified_manager","clustered_data_ontap","clustered_data_ontap_antivirus_connector","manageability_software_development_kit","smi-s_provider","snapmanager","h300s_firmware","h500s_firmware","h700s_firmware","h410s_firmware","h410c_firmware","ipados < 15.7.2","iphone_os < 15.7.2","macos >= 11.0, < 11.7.2","macos >= 12.0, < 12.6.2","tvos < 16.2","watchos < 9.2"],"patched":["libxml2 2.10.3","ipados 15.7.2","iphone_os 15.7.2","macos 12.6.2","tvos 16.2","watchos 9.2"],"published":"2022-11-23","updated":"2026-10-14","sourceUpdated":"2026-10-14T18:17:05.050","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2022-40304","references":[{"url":"http://seclists.org/fulldisclosure/2022/Dec/21","label":"cve@mitre.org"},{"url":"http://seclists.org/fulldisclosure/2022/Dec/24","label":"cve@mitre.org"},{"url":"http://seclists.org/fulldisclosure/2022/Dec/25","label":"cve@mitre.org"},{"url":"http://seclists.org/fulldisclosure/2022/Dec/26","label":"cve@mitre.org"},{"url":"http://seclists.org/fulldisclosure/2022/Dec/27","label":"cve@mitre.org"},{"url":"https://gitlab.gnome.org/GNOME/libxml2/-/commit/1b41ec4e9433b05bb0376be4725804c54ef1d80b","label":"cve@mitre.org"},{"url":"https://gitlab.gnome.org/GNOME/libxml2/-/tags","label":"cve@mitre.org"},{"url":"https://gitlab.gnome.org/GNOME/libxml2/-/tags/v2.10.3","label":"cve@mitre.org"},{"url":"https://security.netapp.com/advisory/ntap-20221209-0003/","label":"cve@mitre.org"},{"url":"https://support.apple.com/kb/HT213531","label":"cve@mitre.org"},{"url":"https://support.apple.com/kb/HT213533","label":"cve@mitre.org"},{"url":"https://support.apple.com/kb/HT213534","label":"cve@mitre.org"},{"url":"https://support.apple.com/kb/HT213535","label":"cve@mitre.org"},{"url":"https://support.apple.com/kb/HT213536","label":"cve@mitre.org"},{"url":"http://seclists.org/fulldisclosure/2022/Dec/21","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://seclists.org/fulldisclosure/2022/Dec/24","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://seclists.org/fulldisclosure/2022/Dec/25","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://seclists.org/fulldisclosure/2022/Dec/26","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"http://seclists.org/fulldisclosure/2022/Dec/27","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://gitlab.gnome.org/GNOME/libxml2/-/commit/1b41ec4e9433b05bb0376be4725804c54ef1d80b","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://gitlab.gnome.org/GNOME/libxml2/-/tags","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://gitlab.gnome.org/GNOME/libxml2/-/tags/v2.10.3","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.netapp.com/advisory/ntap-20221209-0003/","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://support.apple.com/kb/HT213531","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://support.apple.com/kb/HT213533","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://support.apple.com/kb/HT213534","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://support.apple.com/kb/HT213535","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://support.apple.com/kb/HT213536","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-337522.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-341067.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-556635.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-625862.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-769027.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"}],"tags":["nvd"],"epss":0.05812,"epssPercentile":0.93025,"ingestedAt":"2026-10-14T18:47:39.275Z","slug":"CVE-2022-40304","body":"## Overview\n\nAn 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.\n\n## Affected\n\n- `libxml2 < 2.10.3`\n- `active_iq_unified_manager`\n- `clustered_data_ontap`\n- `clustered_data_ontap_antivirus_connector`\n- `manageability_software_development_kit`\n- `smi-s_provider`\n- `snapmanager`\n- `h300s_firmware`\n- `h500s_firmware`\n- `h700s_firmware`\n- `h410s_firmware`\n- `h410c_firmware`\n- `ipados < 15.7.2`\n- `iphone_os < 15.7.2`\n- `macos >= 11.0, < 11.7.2`\n- `macos >= 12.0, < 12.6.2`\n- `tvos < 16.2`\n- `watchos < 9.2`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `libxml2 2.10.3`\n- `ipados 15.7.2`\n- `iphone_os 15.7.2`\n- `macos 12.6.2`\n- `tvos 16.2`\n- `watchos 9.2`","depth":"twilight","depthScore":44,"depthScoreParts":{"impact":42.9,"likelihood":1.2,"exploitation":0,"ransomware":0},"changes":[]}