{"id":"CVE-2026-4224","published":"2026-03-16T17:52:26Z","modified":"2026-08-13T00:27:37Z","title":"Stack overflow parsing XML with deeply nested DTD content models","vendor":"Python Software Foundation","product":"CPython","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6,"severity":"MEDIUM","version":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00767,"percentile":0.56422,"provenance":"source"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"references":[{"url":"https://github.com/python/cpython/commit/eb0e8be3a7e11b87d198a2c3af1ed0eccf532768","tags":["patch"]},{"url":"https://mail.python.org/archives/list/security-announce@python.org/thread/5M7CGUW3XBRY7II4DK43KF7NQQ3TPZ6R/","tags":["vendor-advisory"]},{"url":"https://github.com/python/cpython/issues/145986","tags":["issue-tracking"]},{"url":"https://github.com/python/cpython/pull/145987","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/196edfb06a7458377d4d0f4b3cd41724c1f3bd4a","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/e0a8a6da90597a924b300debe045cdb4628ee1f3","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/642865ddf4b232da1f3b1f7abcfa3254c4bfe785","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/af856a7177326ac25d9f66cc6dd28b554d914fee","tags":["patch"]},{"url":"https://github.com/python/cpython/commit/24ce88b285f56ee11626cf5e472af3cd8cc7c621","tags":["patch"]},{"url":"http://www.openwall.com/lists/oss-security/2026/03/16/4","tags":[]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":11.28},{"name":"CVSS severity","points":4.2}]},"vendorSlug":"python-software-foundation","affectedVersions":[{"vendor":"Python Software Foundation","product":"CPython","versions":["< 3.10.21",">= 3.11.0, < 3.11.16",">= 3.12.0, < 3.12.14",">= 3.13.0, < 3.13.13",">= 3.14.0, < 3.14.4",">= 3.15.0a1, < 3.15.0a8"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-16T18:20:48.548008Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-12486","exploited":false,"provenance":"source"}}