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 intopython:3.14from
miss-islington:backport-eb0e8be-3.14
Mar 15, 2026
Merged

[3.14] gh-145986: Avoid unbound C recursion in conv_content_model in pyexpat.c (CVE 2026-4224) (GH-145987)#145995
picnixz merged 1 commit intopython:3.14from
miss-islington:backport-eb0e8be-3.14

Conversation

@miss-islington
Copy link
Contributor

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

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
56 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants