CVE-2026-4224
JSON

6.0medium

Stack overflow parsing XML with deeply nested DTD content models

Severity
6.0medium CVSS:4.0 by PSF
Exploit likelihood
0.77% (higher than 56% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
PSF
Also known as
PSF-2026-12BIT-LIBPYTHON-2026-4224BIT-PYTHON-2026-4224BIT-PYTHON-MIN-2026-4224

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.

Affected

Product or packageVersionsReported by
Python Software Foundation CPythonbefore 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.13, from 3.14.0 before 3.14.4, from 3.15.0a1 before 3.15.0a8CVE List
https://github.com/python/cpythonbefore eb0e8be3a7e11b87d198a2c3af1ed0eccf532768, before 196edfb06a7458377d4d0f4b3cd41724c1f3bd4a, before e0a8a6da90597a924b300debe045cdb4628ee1f3, before 642865ddf4b232da1f3b1f7abcfa3254c4bfe785, before af856a7177326ac25d9f66cc6dd28b554d914fee, before 24ce88b285f56ee11626cf5e472af3cd8cc7c621Python Software Foundation
python pythonbefore 3.10.0, from 3.13.0 before 3.13.13, from 3.14.0 before 3.14.4, 3.15.0NVD
libpython (Bitnami)before 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.13, from 3.14.0 before 3.14.4Bitnami Vulnerability Database
python (Bitnami)before 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.13, from 3.14.0 before 3.14.4Bitnami Vulnerability Database
python-min (Bitnami)before 3.10.21, from 3.11.0 before 3.11.16, from 3.12.0 before 3.12.14, from 3.13.0 before 3.13.13, from 3.14.0 before 3.14.4Bitnami Vulnerability Database

All scores

PSF6.0medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-674

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

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.

References

https://github.com/python/cpython/commit/eb0e8be3a7e11b87d198a2c3af1ed0eccf532768fix, patch
https://mail.python.org/archives/list/security-announce@python.org/thread/5M7CGUW3XBRY7II4DK43KF7NQQ3TPZ6R/advisory, third-party-advisory, vendor-advisory
https://github.com/python/cpython/issues/145986issue-tracking, report
https://github.com/python/cpython/pull/145987fix, patch, web
https://github.com/python/cpython/commit/196edfb06a7458377d4d0f4b3cd41724c1f3bd4afix, patch
https://github.com/python/cpython/commit/e0a8a6da90597a924b300debe045cdb4628ee1f3fix, patch
https://github.com/python/cpython/commit/642865ddf4b232da1f3b1f7abcfa3254c4bfe785fix, patch
https://github.com/python/cpython/commit/af856a7177326ac25d9f66cc6dd28b554d914feefix, patch
https://github.com/python/cpython/commit/24ce88b285f56ee11626cf5e472af3cd8cc7c621fix, patch, web
http://www.openwall.com/lists/oss-security/2026/03/16/4advisory, mailing-list, third-party-advisory
https://nvd.nist.gov/vuln/detail/CVE-2026-4224web

Sources

SourceRecordLicence
CVE ListCVE-2026-4224 changed 2026-08-13CVE Terms of Use
Python Software FoundationPSF-2026-12 changed 2026-08-05CC-BY-4.0
NVDCVE-2026-4224 changed 2026-08-13Public domain
Bitnami Vulnerability DatabaseBIT-LIBPYTHON-2026-4224 changed 2026-09-16Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-2026-4224 changed 2026-09-16Apache-2.0
Bitnami Vulnerability DatabaseBIT-PYTHON-MIN-2026-4224 changed 2026-09-16Apache-2.0