{"id":"CVE-2022-23308","details":"valid.c in libxml2 before 2.9.13 has a use-after-free of ID and IDREF attributes.","modified":"2026-04-02T07:49:51.915837Z","published":"2022-02-26T05:15:08.280Z","related":["ALSA-2022:0899","MGASA-2022-0084","SUSE-SU-2022:0802-1","SUSE-SU-2022:0802-2","SUSE-SU-2022:1308-1","SUSE-SU-2022:14904-1","SUSE-SU-2022:1750-1","SUSE-SU-2022:2552-1","openSUSE-SU-2022:0802-1","openSUSE-SU-2024:11912-1","openSUSE-SU-2024:11950-1","openSUSE-SU-2024:13165-1","openSUSE-SU-2024:14174-1","openSUSE-SU-2025:14697-1","openSUSE-SU-2026:10356-1"],"references":[{"type":"WEB","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LA3MWWAYZADWJ5F6JOUBX65UZAMQB7RF/"},{"type":"ADVISORY","url":"http://seclists.org/fulldisclosure/2022/May/34"},{"type":"ADVISORY","url":"http://seclists.org/fulldisclosure/2022/May/36"},{"type":"ADVISORY","url":"http://seclists.org/fulldisclosure/2022/May/37"},{"type":"ADVISORY","url":"https://lists.debian.org/debian-lts-announce/2022/04/msg00004.html"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT213256"},{"type":"ADVISORY","url":"http://seclists.org/fulldisclosure/2022/May/33"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT213255"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT213257"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT213253"},{"type":"ADVISORY","url":"http://seclists.org/fulldisclosure/2022/May/35"},{"type":"ADVISORY","url":"http://seclists.org/fulldisclosure/2022/May/38"},{"type":"ADVISORY","url":"https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.9.13/NEWS"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202210-03"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20220331-0008/"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT213254"},{"type":"ADVISORY","url":"https://support.apple.com/kb/HT213258"},{"type":"FIX","url":"https://www.oracle.com/security-alerts/cpujul2022.html"},{"type":"FIX","url":"https://github.com/GNOME/libxml2/commit/652dd12a858989b14eed4e84e453059cd3ba340e"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/GNOME/libxml2","events":[{"introduced":"0"},{"fixed":"a075d256fd9ff15590b86d981b75a50ead124fca"}],"database_specific":{"versions":[{"introduced":"0"},{"fixed":"2.9.13"}]}},{"type":"GIT","repo":"https://github.com/gnome/libxml2","events":[{"introduced":"0"},{"fixed":"652dd12a858989b14eed4e84e453059cd3ba340e"}]}],"versions":["CVE-2013-2877","CVE-2014-0191","CVE-2014-3660","CVE-2015-1819","CVE-2015-5312","CVE-2015-7497","CVE-2015-7498","CVE-2015-7499-1","CVE-2015-7499-2","CVE-2015-7500","CVE-2015-7941_1","CVE-2015-7941_2","CVE-2015-7942","CVE-2015-7942-2","CVE-2015-8035","CVE-2015-8242","CVE-2015-8317","CVE-2016-1762","CVE-2016-1833","CVE-2016-1834","CVE-2016-1835","CVE-2016-1836","CVE-2016-1837","CVE-2016-1838","CVE-2016-1839","CVE-2016-1840","CVE-2016-3627","CVE-2016-3705","CVE-2016-4449","CVE-2016-4483","CVE-2021-3541","ChangeLog","EAZEL-NAUTILUS-MS-AUG07","FOR_GNOME_0_99_1","GNOME_0_30","GNOME_PRINT_0_24","GNUMERIC_FIRST_PUBLIC_RELEASE","LIBXML2.6.31","LIBXML2.6.32","LIBXML2.7.0","LIBXML2.7.1","LIBXML2.7.2","LIBXML2.7.3","LIBXML2_2_4_21","LIBXML2_2_5_0","LIBXML2_2_5_10","LIBXML2_2_5_11","LIBXML2_2_5_7","LIBXML2_2_5_8","LIBXML2_2_5_9","LIBXML2_2_5_x","LIBXML2_2_6_1","LIBXML2_2_6_11","LIBXML2_2_6_12","LIBXML2_2_6_13","LIBXML2_2_6_14","LIBXML2_2_6_15","LIBXML2_2_6_16","LIBXML2_2_6_18","LIBXML2_2_6_19","LIBXML2_2_6_2","LIBXML2_2_6_20","LIBXML2_2_6_21","LIBXML2_2_6_22","LIBXML2_2_6_23","LIBXML2_2_6_24","LIBXML2_2_6_26","LIBXML2_2_6_27","LIBXML2_2_6_28","LIBXML2_2_6_29","LIBXML2_2_6_3","LIBXML2_2_6_30","LIBXML2_2_6_4","LIBXML2_2_6_5","LIBXML2_2_6_6","LIBXML2_2_6_7","LIBXML2_2_6_8","LIBXML2_2_6_9","LIBXML2_6_0","LIBXML_0_99","LIBXML_1_5_0","LIBXML_1_8_10","LIBXML_1_8_10_REAL","LIBXML_1_8_12","LIBXML_1_8_14","LIBXML_1_8_16","LIBXML_1_8_17","LIBXML_1_8_5","LIBXML_1_8_6","LIBXML_1_8_8","LIBXML_1_8_9","LIBXML_2_0_0","LIBXML_2_1_0","LIBXML_2_1_1","LIBXML_2_2_1","LIBXML_2_2_3","LIBXML_2_2_4","LIBXML_2_2_6","LIBXML_2_2_7","LIBXML_2_2_8","LIBXML_2_3_0","LIBXML_2_3_10","LIBXML_2_3_11","LIBXML_2_3_12","LIBXML_2_3_13","LIBXML_2_3_14","LIBXML_2_3_2","LIBXML_2_3_3","LIBXML_2_3_4","LIBXML_2_3_5","LIBXML_2_3_6","LIBXML_2_3_7","LIBXML_2_3_8","LIBXML_2_3_9","LIBXML_2_4_0","LIBXML_2_4_11","LIBXML_2_4_12","LIBXML_2_4_13","LIBXML_2_4_14","LIBXML_2_4_16","LIBXML_2_4_18","LIBXML_2_4_2","LIBXML_2_4_20","LIBXML_2_4_22","LIBXML_2_4_23","LIBXML_2_4_24","LIBXML_2_4_25","LIBXML_2_4_26","LIBXML_2_4_27","LIBXML_2_4_29","LIBXML_2_4_3","LIBXML_2_4_30","LIBXML_2_4_4","LIBXML_2_4_6","LIBXML_2_4_7","LIBXML_2_5_1","LIBXML_2_5_2","LIBXML_2_5_3","LIBXML_2_5_4","LIBXML_2_5_5","LIBXML_2_5_6","LIBXML_2_6_10","LIBXML_TEST_2_0_0","LIB_XML_1_1","LIB_XML_1_3","LIB_XML_1_4","LIB_XML_1_6_1","LIB_XML_1_6_2","LIB_XML_1_7_0","LIB_XML_1_7_1","LIB_XML_1_7_3","LIB_XML_1_8_3","LIB_XML_1_X","PRE_MUCKUP","PRE_MUCKUP2","PRE_MUCKUP3","help","v2.7.4","v2.7.5","v2.7.6","v2.7.7","v2.7.8","v2.8.0","v2.8.0-rc1","v2.8.0-rc2","v2.9.0","v2.9.0-rc2","v2.9.1","v2.9.10","v2.9.10-rc1","v2.9.11","v2.9.12","v2.9.2","v2.9.2-rc1","v2.9.2-rc2","v2.9.3","v2.9.4","v2.9.4-rc1","v2.9.4-rc2","v2.9.5","v2.9.5-rc1","v2.9.5-rc2","v2.9.6","v2.9.6-rc1","v2.9.7","v2.9.7-rc1","v2.9.8","v2.9.8-rc1","v2.9.9","v2.9.9-rc1","v2.9.9-rc2"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-23308.json","unresolved_ranges":[{"events":[{"introduced":"0"},{"last_affected":"34"}]},{"events":[{"introduced":"0"},{"last_affected":"9.0"}]},{"events":[{"introduced":"0"},{"fixed":"15.5"}]},{"events":[{"introduced":"0"},{"fixed":"15.5"}]},{"events":[{"introduced":"10.15.0"},{"fixed":"10.15.7"}]},{"events":[{"introduced":"0"},{"last_affected":"10.15.7"}]},{"events":[{"introduced":"0"},{"last_affected":"10.15.7-security_update_2020\\-001"}]},{"events":[{"introduced":"0"},{"last_affected":"10.15.7-security_update_2021\\-001"}]},{"events":[{"introduced":"0"},{"last_affected":"10.15.7-security_update_2021\\-002"}]},{"events":[{"introduced":"0"},{"last_affected":"10.15.7-security_update_2021\\-003"}]},{"events":[{"introduced":"0"},{"last_affected":"10.15.7-security_update_2021\\-004"}]},{"events":[{"introduced":"0"},{"last_affected":"10.15.7-security_update_2021\\-005"}]},{"events":[{"introduced":"0"},{"last_affected":"10.15.7-security_update_2021\\-006"}]},{"events":[{"introduced":"0"},{"last_affected":"10.15.7-security_update_2021\\-007"}]},{"events":[{"introduced":"0"},{"last_affected":"10.15.7-security_update_2021\\-008"}]},{"events":[{"introduced":"0"},{"last_affected":"10.15.7-security_update_2022\\-001"}]},{"events":[{"introduced":"0"},{"last_affected":"10.15.7-security_update_2022\\-003"}]},{"events":[{"introduced":"11.6.0"},{"fixed":"11.6.6"}]},{"events":[{"introduced":"12.0"},{"fixed":"12.4"}]},{"events":[{"introduced":"0"},{"fixed":"15.5"}]},{"events":[{"introduced":"0"},{"fixed":"8.6"}]},{"events":[{"introduced":"0"},{"last_affected":"22.2.0"}]},{"events":[{"introduced":"0"},{"last_affected":"22.1.0"}]},{"events":[{"introduced":"0"},{"last_affected":"22.1.2"}]},{"events":[{"introduced":"0"},{"last_affected":"22.2.0"}]},{"events":[{"introduced":"0"},{"last_affected":"22.1.1"}]},{"events":[{"introduced":"0"},{"last_affected":"22.2.0"}]},{"events":[{"introduced":"0"},{"last_affected":"8.0.29"}]},{"events":[{"introduced":"0"},{"last_affected":"8.8"}]}],"vanir_signatures":[{"id":"CVE-2022-23308-0029140a","signature_version":"v1","digest":{"function_hash":"263118250159742398502764830048956299832","length":1314},"target":{"function":"xmlAddID","file":"valid.c"},"signature_type":"Function","deprecated":false,"source":"https://github.com/gnome/libxml2/commit/652dd12a858989b14eed4e84e453059cd3ba340e"},{"id":"CVE-2022-23308-48340e95","signature_version":"v1","digest":{"function_hash":"168666736372975522378851180165387370280","length":1181},"target":{"function":"xmlValidNormalizeAttributeValue","file":"valid.c"},"signature_type":"Function","deprecated":false,"source":"https://github.com/gnome/libxml2/commit/652dd12a858989b14eed4e84e453059cd3ba340e"},{"id":"CVE-2022-23308-72fec1c8","signature_version":"v1","digest":{"threshold":0.9,"line_hashes":["337539446299612776986025596955931509497","165712256803980059223135056483879829345","292841904031728616418486966445388866973","6300252467746399102225339089366138712","157844247236687763772194564239061704882","253578277186123065813361856953557119280","304026152785324741147285072758261868574","287401553331146535433400224017146271637","127071773345391170655999505182793315816","161878487443997427413381000308281455084","333727894587574024429500500002493256118","237766997829463954603370823868142544590","105605814243896654638570373692820040013","161588423930957214230265554709179818851","89748060402539852774070129937771041343","132252450660183676888628311215910345140","118303312629013533674232208452798891689","153405378355166670398901892015100509122","60070527367147827962351646124950147191","250599950088988347645781485804697245189","302361375603169399143631982907886937684","215668576346637080781608453637319291620","192496338417362741333428758355376500497","197083481052064309675666682116175562433","295187513158053398330433780469809054655","251338085540469831906297147480078865746","202910007016097103558235665874778685902","268819058741249819367815881268460327520","170138032823727781256376490990143474964","156732012974027609925172692041789457821","23114186743147825509418495190608577677","80535392785847788918527719038433338754","48815551560744087760181977036983644384","213768700232698096988940184312004012716","249586578457928502112208727639847533381","93316075113813565333467429739047401060","312908294470933617160327031130801059279","122749512770539211907811201456100968651","316014632723907048014541892337810037668","268374606396638194565775164842676757224","250549482678495892342476011386287444711","36557711938904940309789129250314558877","21243060130043324693995516329340714459","195478636878252336984581361347112758910","286725406572637736974109917652371507047","92356130759593643528448884457029121890","322932413560213341660044545227108354544","196048150691264090537478537329179936337","268819058741249819367815881268460327520","170138032823727781256376490990143474964","156732012974027609925172692041789457821","23114186743147825509418495190608577677","80535392785847788918527719038433338754","48815551560744087760181977036983644384","213768700232698096988940184312004012716","249586578457928502112208727639847533381","93316075113813565333467429739047401060","312908294470933617160327031130801059279","122749512770539211907811201456100968651","316014632723907048014541892337810037668","268374606396638194565775164842676757224","337168966210308887601036804850662765741","204664327545766234900963266135466051047","272393039094845089668991793831806601584"]},"target":{"file":"valid.c"},"signature_type":"Line","deprecated":false,"source":"https://github.com/gnome/libxml2/commit/652dd12a858989b14eed4e84e453059cd3ba340e"},{"id":"CVE-2022-23308-795e2c8b","signature_version":"v1","digest":{"function_hash":"169778564934064718562504146244507501816","length":1782},"target":{"function":"xmlValidCtxtNormalizeAttributeValue","file":"valid.c"},"signature_type":"Function","deprecated":false,"source":"https://github.com/gnome/libxml2/commit/652dd12a858989b14eed4e84e453059cd3ba340e"},{"id":"CVE-2022-23308-865b5563","signature_version":"v1","digest":{"function_hash":"169108132469541420728050858748661937682","length":1646},"target":{"function":"xmlAddRef","file":"valid.c"},"signature_type":"Function","deprecated":false,"source":"https://github.com/gnome/libxml2/commit/652dd12a858989b14eed4e84e453059cd3ba340e"},{"id":"CVE-2022-23308-8fa5d71b","signature_version":"v1","digest":{"function_hash":"80385978404819234967114723843068601860","length":533},"target":{"function":"xmlRemoveID","file":"valid.c"},"signature_type":"Function","deprecated":false,"source":"https://github.com/gnome/libxml2/commit/652dd12a858989b14eed4e84e453059cd3ba340e"}]}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}