{"id":"CVE-2022-40674","details":"libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.","modified":"2026-08-12T03:30:13.386929702Z","published":"2022-09-14T00:00:00Z","related":["ALSA-2022:6838","ALSA-2022:6878","ALSA-2022:7020","ALSA-2022:7023","ALSA-2022:7024","ALSA-2022:7026","ALSA-2023:3068","SUSE-SU-2022:3466-1","SUSE-SU-2022:3489-1","SUSE-SU-2022:3597-1","openSUSE-SU-2024:12359-1","openSUSE-SU-2024:12518-1","openSUSE-SU-2024:14572-1"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40674.json","cna_assigner":"mitre"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/40xxx/CVE-2022-40674.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GSVZN3IJ6OCPSJL7AEX3ZHSHAHFOGESK/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J2IGJNHFV53PYST7VQV3T4NHVYAMXA36/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LQB6FJAM5YQ35SF5B2MN25Y2FX56EOEZ/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WE2ZKEPGFCZ7R6DRVH3K6RBJPT42ZBEG/"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XCGBVQQ47URGJAZWHCISHDWF6QBTV2LE/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-40674"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202209-24"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202211-06"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20221028-0008/"},{"type":"ADVISORY","url":"https://www.debian.org/security/2022/dsa-5236"},{"type":"FIX","url":"https://github.com/libexpat/libexpat/pull/629"},{"type":"FIX","url":"https://github.com/libexpat/libexpat/pull/640"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00029.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libexpat/libexpat","events":[{"introduced":"0"},{"fixed":"d77291a4824d78e697c5dc2b8024fd65ab31e209"}],"database_specific":{"source":["DESCRIPTION","CPE_RANGE"],"cpe":"cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.4.9"}]}}],"versions":["R_2_4_8","R_2_4_7","R_2_4_6","R_2_4_5","R_2_4_4","R_2_4_3","R_2_4_2","R_2_4_1","R_2_4_0","R_2_3_0","R_2_2_10","R_2_2_9","R_2_2_8","R_2_2_7","R_2_2_6","R_2_2_5","R_2_2_4","R_2_2_3","R_2_2_2","R_2_2_1","R_2_2_0","R_2_1_1","R_2_1_0","R_2_0_1","R_2_0_0","R_1_95_8","R_1_95_7","R_1_95_6","R_1_95_5","R_1_95_4","R_1_95_3","R_1_95_2","R_1_95_0","libexpat-alpha-1","start","sourceforge_init","jclark-orig","V20000512","V19991013","V19990728","V19990709","V19990626","V1_1","V19990425","V1990307","V19990109","V19981231","V19981122","V1_0","beta4","beta3","beta2","REC1_0"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-40674.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}