{"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-11-12T07:16:47.137426936Z","published":"2022-02-26T00:00:00Z","related":["ALSA-2022:0899","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"],"database_specific":{"cna_assigner":"mitre","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23308.json"},"references":[{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-398330.html"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-419740.html"},{"type":"WEB","url":"https://cert-portal.siemens.com/productcert/html/ssa-942865.html"},{"type":"WEB","url":"https://gitlab.gnome.org/GNOME/libxml2/-/blob/v2.9.13/NEWS"},{"type":"WEB","url":"https://support.apple.com/kb/HT213253"},{"type":"WEB","url":"https://support.apple.com/kb/HT213254"},{"type":"WEB","url":"https://support.apple.com/kb/HT213255"},{"type":"WEB","url":"https://support.apple.com/kb/HT213256"},{"type":"WEB","url":"https://support.apple.com/kb/HT213257"},{"type":"WEB","url":"https://support.apple.com/kb/HT213258"},{"type":"WEB","url":"https://www.oracle.com/security-alerts/cpujul2022.html"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/23xxx/CVE-2022-23308.json"},{"type":"ADVISORY","url":"https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LA3MWWAYZADWJ5F6JOUBX65UZAMQB7RF/"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23308"},{"type":"ADVISORY","url":"https://security.gentoo.org/glsa/202210-03"},{"type":"ADVISORY","url":"https://security.netapp.com/advisory/ntap-20220331-0008/"},{"type":"FIX","url":"https://github.com/GNOME/libxml2/commit/652dd12a858989b14eed4e84e453059cd3ba340e"},{"type":"ARTICLE","url":"http://seclists.org/fulldisclosure/2022/May/33"},{"type":"ARTICLE","url":"http://seclists.org/fulldisclosure/2022/May/34"},{"type":"ARTICLE","url":"http://seclists.org/fulldisclosure/2022/May/35"},{"type":"ARTICLE","url":"http://seclists.org/fulldisclosure/2022/May/36"},{"type":"ARTICLE","url":"http://seclists.org/fulldisclosure/2022/May/37"},{"type":"ARTICLE","url":"http://seclists.org/fulldisclosure/2022/May/38"},{"type":"ARTICLE","url":"https://lists.debian.org/debian-lts-announce/2022/04/msg00004.html"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gnome/libxml2","events":[{"introduced":"4b637079f26d8f5879ed45eb18cd249cad261951"},{"fixed":"a075d256fd9ff15590b86d981b75a50ead124fca"},{"fixed":"652dd12a858989b14eed4e84e453059cd3ba340e"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"2"},{"fixed":"2.9.13"}],"source":"DESCRIPTION"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"652dd12a858989b14eed4e84e453059cd3ba340e"}]}]}}],"versions":["v2.9.12","v2.9.11","CVE-2021-3541","v2.9.10","v2.9.10-rc1","v2.9.9","v2.9.9-rc2","v2.9.9-rc1","v2.9.8","v2.9.8-rc1","v2.9.7","v2.9.7-rc1","v2.9.6","v2.9.6-rc1","v2.9.5","v2.9.5-rc2","v2.9.5-rc1","v2.9.4","CVE-2016-3627","CVE-2016-1833","CVE-2016-1835","CVE-2016-1837","CVE-2016-1836","CVE-2016-1839","CVE-2016-1838","CVE-2016-1840","CVE-2016-4449","CVE-2016-4483","CVE-2016-1834","CVE-2016-3705","v2.9.4-rc2","v2.9.4-rc1","CVE-2016-1762","v2.9.3","CVE-2015-8242","CVE-2015-7500","CVE-2015-7499-2","CVE-2015-7499-1","CVE-2015-5312","CVE-2015-7497","CVE-2015-7498","CVE-2015-8035","CVE-2015-7942-2","CVE-2015-7942","CVE-2015-8317","CVE-2015-1819","CVE-2015-7941_2","CVE-2015-7941_1","v2.9.2","CVE-2014-3660","v2.9.2-rc2","v2.9.2-rc1","CVE-2014-0191","v2.9.1","CVE-2013-2877","v2.9.0","v2.9.0-rc2","v2.8.0","v2.8.0-rc2","v2.8.0-rc1","v2.7.8","v2.7.7","v2.7.6","v2.7.5","v2.7.4","LIBXML2.7.3","LIBXML2.7.2","LIBXML2.7.1","LIBXML2.7.0","LIBXML2.6.32","LIBXML2_2_6_28","LIBXML2_2_6_27","LIBXML2_2_6_26","LIBXML2_2_6_24","LIBXML2_2_6_23","LIBXML2_2_6_22","LIBXML2_2_6_21","LIBXML2_2_6_20","LIBXML2_2_6_19","LIBXML2_2_6_18","LIBXML2_2_6_16","LIBXML2_2_6_15","LIBXML2_2_6_14","LIBXML2_2_6_13","LIBXML2_2_6_12","LIBXML2_2_6_11","LIBXML_2_6_10","LIBXML2_2_6_9","LIBXML2_2_6_8","LIBXML2_2_6_7","LIBXML2_2_6_6","LIBXML2_2_6_5","LIBXML2_2_6_4","LIBXML2_2_6_3","LIBXML2_2_6_2","LIBXML2_2_6_1","LIBXML2_6_0","LIBXML2_2_5_x","LIBXML2_2_5_10","LIBXML2_2_5_9","LIBXML2_2_5_8","LIBXML2_2_5_7","LIBXML_2_5_6","LIBXML_2_5_5","LIBXML_2_5_4","LIBXML_2_5_3","LIBXML_2_5_2","LIBXML_2_5_1","LIBXML2_2_5_0","LIBXML_2_4_30","LIBXML_2_4_29","LIBXML_2_4_27","LIBXML_2_4_26","LIBXML_2_4_25","LIBXML_2_4_24","LIBXML_2_4_23","LIBXML_2_4_22","LIBXML2_2_4_21","LIBXML_2_4_20","LIBXML_2_4_18","LIBXML_2_4_13","LIBXML_2_4_16","LIBXML_2_4_14","LIBXML_2_4_12","LIBXML_2_4_11","LIBXML_2_4_7","LIBXML_2_4_6","LIBXML_2_4_4","LIBXML_2_4_3","LIBXML_2_4_2","LIBXML_2_4_0","LIBXML_2_3_14","LIBXML_2_3_13","LIBXML_2_3_12","LIBXML_2_3_11","LIBXML_2_3_10","LIBXML_2_3_9","LIBXML_2_3_8","help","LIBXML_2_3_7","LIBXML_2_3_6","LIBXML_2_3_5","LIBXML_2_3_4","LIBXML_2_3_3","LIBXML_2_3_2","PRE_MUCKUP3","PRE_MUCKUP2","PRE_MUCKUP"],"database_specific":{"source":"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-23308.json","vanir_signatures":[{"source":"https://github.com/gnome/libxml2/commit/652dd12a858989b14eed4e84e453059cd3ba340e","target":{"file":"valid.c","function":"xmlAddID"},"deprecated":false,"digest":{"length":1314,"function_hash":"263118250159742398502764830048956299832"},"id":"CVE-2022-23308-0029140a","signature_type":"Function","signature_version":"v1"},{"id":"CVE-2022-23308-48340e95","signature_type":"Function","signature_version":"v1","source":"https://github.com/gnome/libxml2/commit/652dd12a858989b14eed4e84e453059cd3ba340e","target":{"file":"valid.c","function":"xmlValidNormalizeAttributeValue"},"deprecated":false,"digest":{"function_hash":"168666736372975522378851180165387370280","length":1181}},{"source":"https://github.com/gnome/libxml2/commit/652dd12a858989b14eed4e84e453059cd3ba340e","target":{"file":"valid.c"},"deprecated":false,"digest":{"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"],"threshold":0.9},"id":"CVE-2022-23308-72fec1c8","signature_type":"Line","signature_version":"v1"},{"deprecated":false,"digest":{"function_hash":"169778564934064718562504146244507501816","length":1782},"id":"CVE-2022-23308-795e2c8b","signature_type":"Function","signature_version":"v1","source":"https://github.com/gnome/libxml2/commit/652dd12a858989b14eed4e84e453059cd3ba340e","target":{"function":"xmlValidCtxtNormalizeAttributeValue","file":"valid.c"}},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/gnome/libxml2/commit/652dd12a858989b14eed4e84e453059cd3ba340e","target":{"file":"valid.c","function":"xmlAddRef"},"deprecated":false,"digest":{"function_hash":"169108132469541420728050858748661937682","length":1646},"id":"CVE-2022-23308-865b5563"},{"signature_version":"v1","source":"https://github.com/gnome/libxml2/commit/652dd12a858989b14eed4e84e453059cd3ba340e","target":{"function":"xmlRemoveID","file":"valid.c"},"deprecated":false,"digest":{"function_hash":"80385978404819234967114723843068601860","length":533},"id":"CVE-2022-23308-8fa5d71b","signature_type":"Function"}],"vanir_signatures_modified":"2026-11-12T07:16:47Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"}]}