]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-145986: Avoid unbound C recursion in `conv_content_model` in `pyexpat.c...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 15 Mar 2026 22:13:58 +0000 (23:13 +0100)
committerGitHub <noreply@github.com>
Sun, 15 Mar 2026 22:13:58 +0000 (22:13 +0000)
commite0a8a6da90597a924b300debe045cdb4628ee1f3
tree25e3b9facc5b3d97f6fa3d044ca20a8acf029daf
parent64e2acbc8e2122415f0b8f1275eadae1f3ffa68a
[3.14] gh-145986: Avoid unbound C recursion in `conv_content_model` in `pyexpat.c` (CVE 2026-4224) (GH-145987) (#145995)

gh-145986: Avoid unbound C recursion in `conv_content_model` in `pyexpat.c` (CVE 2026-4224) (GH-145987)

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

---------
(cherry picked from commit eb0e8be3a7e11b87d198a2c3af1ed0eccf532768)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
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