CVE-2026-4224
Stack overflow parsing XML with deeply nested DTD content models
At a glance Severity MEDIUM 6.0 EPSS EPSS 0.70 % · percentile 53 (2026-10-27) State PUBLISHED Published 2026-03-16 Updated 2026-08-13 Assigner PSF NVD status Modified
Description When an Expat parser with a registered ElementDeclHandler parses an inline
document type definition containing a deeply nested content model a C stack
overflow occurs.
Scores Version Score Vector Scored by CVSS 4.0 MEDIUM 6.0 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 PSF CVSS 4.0 MEDIUM 6.0 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X NVD · cna@python.org (Secondary) CVSS 3.1 HIGH 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H NVD · nvd@nist.gov (Primary)
Weaknesses (CWE)
European references
CERT-FR advisories
Affected configurations (NVD CPE) cpe:2.3:a:python:python:*:*:*:*:*:*:*:* < 3.10.0cpe:2.3:a:python:python:*:*:*:*:*:*:*:* ≥ 3.13.0 < 3.13.13cpe:2.3:a:python:python:*:*:*:*:*:*:*:* ≥ 3.14.0 < 3.14.4cpe:2.3:a:python:python:3.15.0:alpha1:*:*:*:*:*:*cpe:2.3:a:python:python:3.15.0:alpha2:*:*:*:*:*:*cpe:2.3:a:python:python:3.15.0:alpha3:*:*:*:*:*:*cpe:2.3:a:python:python:3.15.0:alpha4:*:*:*:*:*:*cpe:2.3:a:python:python:3.15.0:alpha5:*:*:*:*:*:*cpe:2.3:a:python:python:3.15.0:alpha6:*:*:*:*:*:*cpe:2.3:a:python:python:3.15.0:alpha7:*:*:*:*:*:*
Affected products Product Versions Python Software Foundation · CPython affected 0 < 3.10.21 ; affected 3.11.0 < 3.11.16 ; affected 3.12.0 < 3.12.14 ; affected 3.13.0 < 3.13.13 ; affected 3.14.0 < 3.14.4 ; affected 3.15.0a1 < 3.15.0a8
References
Sources