Skip to content

[3.14] gh-145986: Avoid unbound C recursion in conv_content_model in pyexpat.c (CVE 2026-4224) (GH-145987) - #145995

Merged
picnixz merged 1 commit into
python:3.14from
miss-islington:backport-eb0e8be-3.14
Mar 15, 2026
Merged

picnixz merged 1 commit into
python:3.14from
miss-islington:backport-eb0e8be-3.14

Conversation

@miss-islington

@miss-islington miss-islington commented Mar 15, 2026 •

Copy link
Copy Markdown
Contributor

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 eb0e8be)

Co-authored-by: Stan Ulbrych 89152624+StanFromIreland@users.noreply.github.com
Co-authored-by: Bénédikt Tran 10796600+picnixz@users.noreply.github.com

… `pyexpat.c` (CVE 2026-4224) (pythonGH-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 eb0e8be)

Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
@picnixz
picnixz merged commit e0a8a6d into python:3.14 Mar 15, 2026
51 checks passed
@miss-islington
miss-islington deleted the backport-eb0e8be-3.14 branch March 15, 2026 22:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants