# CVE-2026-4224: Stack overflow parsing XML with deeply nested DTD content models

- Severity: Medium 6.0 (CVSS:4.0, scored by PSF) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Published: 2026-03-16T17:52:26.639Z
- Modified: 2026-09-16T16:45:06.065Z
- Also known as: PSF-2026-12, BIT-LIBPYTHON-2026-4224, BIT-PYTHON-2026-4224, BIT-PYTHON-MIN-2026-4224
- Weaknesses: CWE-674
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: PSF

## 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.

(As written by CVE List.)

## Affected

- Python Software Foundation CPython: 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.4; from 3.15.0a1 before 3.15.0a8
- https://github.com/python/cpython: before eb0e8be3a7e11b87d198a2c3af1ed0eccf532768; before 196edfb06a7458377d4d0f4b3cd41724c1f3bd4a; before e0a8a6da90597a924b300debe045cdb4628ee1f3; before 642865ddf4b232da1f3b1f7abcfa3254c4bfe785; before af856a7177326ac25d9f66cc6dd28b554d914fee; before 24ce88b285f56ee11626cf5e472af3cd8cc7c621
- python python: before 3.10.0; from 3.13.0 before 3.13.13; from 3.14.0 before 3.14.4; 3.15.0
- 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.4
- 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.4
- 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.4

## Every score

- PSF: CVSS:4.0 6.0 Medium `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`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## References

- <https://github.com/python/cpython/commit/eb0e8be3a7e11b87d198a2c3af1ed0eccf532768> (fix, 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/145986> (issue-tracking, report)
- <https://github.com/python/cpython/pull/145987> (fix, patch, web)
- <https://github.com/python/cpython/commit/196edfb06a7458377d4d0f4b3cd41724c1f3bd4a> (fix, patch)
- <https://github.com/python/cpython/commit/e0a8a6da90597a924b300debe045cdb4628ee1f3> (fix, patch)
- <https://github.com/python/cpython/commit/642865ddf4b232da1f3b1f7abcfa3254c4bfe785> (fix, patch)
- <https://github.com/python/cpython/commit/af856a7177326ac25d9f66cc6dd28b554d914fee> (fix, patch)
- <https://github.com/python/cpython/commit/24ce88b285f56ee11626cf5e472af3cd8cc7c621> (fix, patch, web)
- <http://www.openwall.com/lists/oss-security/2026/03/16/4> (advisory, mailing-list, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-4224> (web)

## Sources

- CVE List: [CVE-2026-4224](https://www.cve.org/CVERecord?id=CVE-2026-4224), CVE Terms of Use, modified 2026-08-13
- Python Software Foundation: [PSF-2026-12](https://osv.dev/vulnerability/PSF-2026-12), CC-BY-4.0, modified 2026-08-05
- NVD: [CVE-2026-4224](https://nvd.nist.gov/vuln/detail/CVE-2026-4224), Public domain, modified 2026-08-13
- Bitnami Vulnerability Database: [BIT-LIBPYTHON-2026-4224](https://osv.dev/vulnerability/BIT-LIBPYTHON-2026-4224), Apache-2.0, modified 2026-09-16
- Bitnami Vulnerability Database: [BIT-PYTHON-2026-4224](https://osv.dev/vulnerability/BIT-PYTHON-2026-4224), Apache-2.0, modified 2026-09-16
- Bitnami Vulnerability Database: [BIT-PYTHON-MIN-2026-4224](https://osv.dev/vulnerability/BIT-PYTHON-MIN-2026-4224), Apache-2.0, modified 2026-09-16

---

Page: https://cve.day/CVE-2026-4224 · Whole record: https://cve.day/CVE-2026-4224.json · Rebuilt by cve.day 2026-11-25T22:59:16.023Z
