]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-145986: Avoid unbound C recursion in `conv_content_model` in `pyexpat.c` (CVE...
authorStan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Sun, 15 Mar 2026 21:46:06 +0000 (21:46 +0000)
committerGitHub <noreply@github.com>
Sun, 15 Mar 2026 21:46:06 +0000 (22:46 +0100)
commiteb0e8be3a7e11b87d198a2c3af1ed0eccf532768
treef2534561cc91f7151ce8ab85a27715c796344c52
parent33044b015ba1589887629e217d68bba35b1fced5
gh-145986: Avoid unbound C recursion in `conv_content_model` in `pyexpat.c` (CVE 2026-4224) (#145987)

Fix C stack overflow (CVE-2026-4224) when an Expat parser
with a registered `ElementDeclHandler` parses inline DTD
containing deeply nested content model.

---------

Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Lib/test/test_pyexpat.py
Misc/NEWS.d/next/Security/2026-03-14-17-31-39.gh-issue-145986.ifSSr8.rst [new file with mode: 0644]
Modules/pyexpat.c