{"id":"CVE-2022-40674","title":"libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.","summary":"libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.","severity":"high","cvss":8.1,"cvssVector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-416","CWE-416"],"vendor":"libexpat_project","product":"libexpat","affected":["libexpat < 2.4.9","debian_linux = 10.0","debian_linux = 11.0","fedora = 35","fedora = 36","fedora = 37"],"patched":["libexpat 2.4.9"],"published":"2022-09-14","updated":"2026-10-14","sourceUpdated":"2026-10-14T18:17:05.450","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2022-40674","references":[{"url":"https://github.com/libexpat/libexpat/pull/629","label":"cve@mitre.org"},{"url":"https://github.com/libexpat/libexpat/pull/640","label":"cve@mitre.org"},{"url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00029.html","label":"cve@mitre.org"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GSVZN3IJ6OCPSJL7AEX3ZHSHAHFOGESK/","label":"cve@mitre.org"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J2IGJNHFV53PYST7VQV3T4NHVYAMXA36/","label":"cve@mitre.org"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LQB6FJAM5YQ35SF5B2MN25Y2FX56EOEZ/","label":"cve@mitre.org"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WE2ZKEPGFCZ7R6DRVH3K6RBJPT42ZBEG/","label":"cve@mitre.org"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XCGBVQQ47URGJAZWHCISHDWF6QBTV2LE/","label":"cve@mitre.org"},{"url":"https://security.gentoo.org/glsa/202209-24","label":"cve@mitre.org"},{"url":"https://security.gentoo.org/glsa/202211-06","label":"cve@mitre.org"},{"url":"https://security.netapp.com/advisory/ntap-20221028-0008/","label":"cve@mitre.org"},{"url":"https://www.debian.org/security/2022/dsa-5236","label":"cve@mitre.org"},{"url":"https://github.com/libexpat/libexpat/pull/629","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/libexpat/libexpat/pull/640","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00029.html","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GSVZN3IJ6OCPSJL7AEX3ZHSHAHFOGESK/","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J2IGJNHFV53PYST7VQV3T4NHVYAMXA36/","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LQB6FJAM5YQ35SF5B2MN25Y2FX56EOEZ/","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WE2ZKEPGFCZ7R6DRVH3K6RBJPT42ZBEG/","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XCGBVQQ47URGJAZWHCISHDWF6QBTV2LE/","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/202209-24","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.gentoo.org/glsa/202211-06","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://security.netapp.com/advisory/ntap-20221028-0008/","label":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://www.debian.org/security/2022/dsa-5236","label":"af854a3a-2127-422b-91ae-364da2661108"},{"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-558014.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-892048.html","label":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"}],"tags":["nvd"],"epss":0.02223,"epssPercentile":0.82346,"ingestedAt":"2026-10-14T18:47:39.272Z","slug":"CVE-2022-40674","body":"## Overview\n\nlibexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.\n\n## Affected\n\n- `libexpat < 2.4.9`\n- `debian_linux = 10.0`\n- `debian_linux = 11.0`\n- `fedora = 35`\n- `fedora = 36`\n- `fedora = 37`\n\n## Remediation\n\nUpgrade past the affected range:\n\n- `libexpat 2.4.9`","depth":"twilight","depthScore":45,"depthScoreParts":{"impact":44.6,"likelihood":0.4,"exploitation":0,"ransomware":0},"changes":[]}