{"id":"CVE-2022-40674","details":"libexpat before 2.4.9 has a use-after-free in the doContent function in xmlparse.c.","modified":"2026-04-16T00:00:07.233920916Z","published":"2022-09-14T11:15:54.020Z","related":["ALSA-2022:6838","ALSA-2022:6878","ALSA-2022:7020","ALSA-2022:7023","ALSA-2022:7024","ALSA-2022:7026","ALSA-2023:3068","CGA-p87v-3759-5v2g","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":{"unresolved_ranges":[{"source":"CPE_FIELD","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","extracted_events":[{"last_affected":"10.0"}]},{"source":"CPE_FIELD","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","extracted_events":[{"last_affected":"11.0"}]},{"source":"CPE_FIELD","cpe":"cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*","extracted_events":[{"last_affected":"35"}]},{"source":"CPE_FIELD","cpe":"cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*","extracted_events":[{"last_affected":"36"}]},{"source":"CPE_FIELD","cpe":"cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*","extracted_events":[{"last_affected":"37"}]}]},"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/GSVZN3IJ6OCPSJL7AEX3ZHSHAHFOGESK/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/J2IGJNHFV53PYST7VQV3T4NHVYAMXA36/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LQB6FJAM5YQ35SF5B2MN25Y2FX56EOEZ/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/WE2ZKEPGFCZ7R6DRVH3K6RBJPT42ZBEG/"},{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/XCGBVQQ47URGJAZWHCISHDWF6QBTV2LE/"},{"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":"REPORT","url":"https://lists.debian.org/debian-lts-announce/2022/09/msg00029.html"},{"type":"FIX","url":"https://github.com/libexpat/libexpat/pull/629"},{"type":"FIX","url":"https://github.com/libexpat/libexpat/pull/640"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/libexpat/libexpat","events":[{"introduced":"0"},{"fixed":"d77291a4824d78e697c5dc2b8024fd65ab31e209"}],"database_specific":{"source":"CPE_FIELD","cpe":"cpe:2.3:a:libexpat_project:libexpat:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"0"},{"fixed":"2.4.9"}]}}],"versions":["REC1_0","R_1_95_0","R_1_95_2","R_1_95_3","R_1_95_4","R_1_95_5","R_1_95_6","R_1_95_7","R_1_95_8","R_2_0_0","R_2_0_1","R_2_1_0","R_2_1_1","R_2_2_0","R_2_2_1","R_2_2_10","R_2_2_2","R_2_2_3","R_2_2_4","R_2_2_5","R_2_2_6","R_2_2_7","R_2_2_8","R_2_2_9","R_2_3_0","R_2_4_0","R_2_4_1","R_2_4_2","R_2_4_3","R_2_4_4","R_2_4_5","R_2_4_6","R_2_4_7","R_2_4_8","V1990307","V19981122","V19981231","V19990109","V19990425","V19990626","V19990709","V19990728","V19991013","V1_0","V1_1","V20000512","beta2","beta3","beta4","jclark-orig","libexpat-alpha-1","sourceforge_init","start"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-40674.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}