{"id":"CVE-2026-4224","aliases":["CVE-2026-4224","PSF-2026-12","BIT-LIBPYTHON-2026-4224","BIT-PYTHON-2026-4224","BIT-PYTHON-MIN-2026-4224"],"related":[],"kind":"vulnerability","state":"published","title":"Stack overflow parsing XML with deeply nested DTD content models","summary":"When an Expat parser with a registered ElementDeclHandler parses an inline\ndocument type definition containing a deeply nested content model a C stack\noverflow occurs.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"When an Expat parser with a registered ElementDeclHandler parses an inline\ndocument type definition containing a deeply nested content model a C stack\noverflow occurs.","source":"cvelist"},{"lang":"es","text":"Cuando un analizador Expat con un ElementDeclHandler registrado analiza una definición de tipo de documento en línea que contiene un modelo de contenido profundamente anidado, se produce un desbordamiento de pila C.","source":"nvd"}],"published":"2026-03-16T17:52:26.639Z","modified":"2026-09-16T16:45:06.065Z","severity":{"scorer":"PSF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":6,"rating":"MEDIUM"},"severities":[{"scorer":"PSF","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N","score":6,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"HIGH"}],"cwes":["CWE-674"],"affected":[{"ranges":[{"type":"python","introduced":"0","fixed":"3.10.21","status":"affected"},{"type":"python","introduced":"3.11.0","fixed":"3.11.16","status":"affected"},{"type":"python","introduced":"3.12.0","fixed":"3.12.14","status":"affected"},{"type":"python","introduced":"3.13.0","fixed":"3.13.13","status":"affected"},{"type":"python","introduced":"3.14.0","fixed":"3.14.4","status":"affected"},{"type":"python","introduced":"3.15.0a1","fixed":"3.15.0a8","status":"affected"}],"vendor":"Python Software Foundation","product":"CPython","repo":"https://github.com/python/cpython","source":"cvelist"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"eb0e8be3a7e11b87d198a2c3af1ed0eccf532768"},{"type":"git","status":"affected","fixed":"196edfb06a7458377d4d0f4b3cd41724c1f3bd4a"},{"type":"git","status":"affected","fixed":"e0a8a6da90597a924b300debe045cdb4628ee1f3"},{"type":"git","status":"affected","fixed":"642865ddf4b232da1f3b1f7abcfa3254c4bfe785"},{"type":"git","status":"affected","fixed":"af856a7177326ac25d9f66cc6dd28b554d914fee"},{"type":"git","status":"affected","fixed":"24ce88b285f56ee11626cf5e472af3cd8cc7c621"}],"repo":"https://github.com/python/cpython","source":"psf"},{"ranges":[{"status":"affected","fixed":"3.10.0"},{"status":"affected","introduced":"3.13.0","fixed":"3.13.13"},{"status":"affected","introduced":"3.14.0","fixed":"3.14.4"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"},{"status":"affected","version":"3.15.0"}],"vendor":"python","product":"python","cpe":"cpe:2.3:a:python:python:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.10.21"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.16"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.14"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.13"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.4"}],"ecosystem":"Bitnami","package":"libpython","purl":"pkg:bitnami/libpython","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.10.21"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.16"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.14"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.13"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.4"}],"ecosystem":"Bitnami","package":"python","purl":"pkg:bitnami/python","source":"bitnami"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.10.21"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.16"},{"type":"semver","introduced":"3.12.0","status":"affected","fixed":"3.12.14"},{"type":"semver","introduced":"3.13.0","status":"affected","fixed":"3.13.13"},{"type":"semver","introduced":"3.14.0","status":"affected","fixed":"3.14.4"}],"ecosystem":"Bitnami","package":"python-min","purl":"pkg:bitnami/python-min","source":"bitnami"}],"references":[{"url":"https://github.com/python/cpython/commit/eb0e8be3a7e11b87d198a2c3af1ed0eccf532768","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/5M7CGUW3XBRY7II4DK43KF7NQQ3TPZ6R/","tags":["advisory","third-party-advisory","vendor-advisory"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/issues/145986","tags":["issue-tracking","report"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/pull/145987","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/196edfb06a7458377d4d0f4b3cd41724c1f3bd4a","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/e0a8a6da90597a924b300debe045cdb4628ee1f3","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/642865ddf4b232da1f3b1f7abcfa3254c4bfe785","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/af856a7177326ac25d9f66cc6dd28b554d914fee","tags":["fix","patch"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"https://github.com/python/cpython/commit/24ce88b285f56ee11626cf5e472af3cd8cc7c621","tags":["fix","patch","web"],"sources":["cvelist","psf","nvd","bitnami"]},{"url":"http://www.openwall.com/lists/oss-security/2026/03/16/4","tags":["advisory","mailing-list","third-party-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-4224","tags":["web"],"sources":["bitnami"]}],"credits":["Gil Portnoy","Stan Ulbrych","Bénédikt Tran"],"assigner":"PSF","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-03-16T18:20:48.548Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-4224","url":"https://www.cve.org/CVERecord?id=CVE-2026-4224","licence":"CVE Terms of Use","modified":"2026-08-13T00:27:37.326Z"},{"source":"psf","name":"Python Software Foundation","id":"PSF-2026-12","url":"https://osv.dev/vulnerability/PSF-2026-12","licence":"CC-BY-4.0","modified":"2026-08-05T14:17:01.279Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-4224","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-4224","licence":"Public domain","modified":"2026-08-13T01:16:53.273Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-LIBPYTHON-2026-4224","url":"https://osv.dev/vulnerability/BIT-LIBPYTHON-2026-4224","licence":"Apache-2.0","modified":"2026-09-16T16:45:06.065Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-2026-4224","url":"https://osv.dev/vulnerability/BIT-PYTHON-2026-4224","licence":"Apache-2.0","modified":"2026-09-16T16:45:06.015Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-PYTHON-MIN-2026-4224","url":"https://osv.dev/vulnerability/BIT-PYTHON-MIN-2026-4224","licence":"Apache-2.0","modified":"2026-09-16T16:45:04.391Z"}],"updatedAt":"2026-11-25T22:59:16.023Z","epss":{"score":0.00767,"percentile":0.56731,"date":"2026-12-01T12:00:22.000Z"}}