Skip to content

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

Merged
Yhg1s merged 2 commits into
python:3.12from
StanFromIreland:backport-eb0e8be-3.12
Aug 4, 2026
Merged

Yhg1s merged 2 commits into
python:3.12from
StanFromIreland:backport-eb0e8be-3.12

Conversation

@StanFromIreland

@StanFromIreland StanFromIreland commented Mar 15, 2026 •

Copy link
Copy Markdown
Member

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)

…del` in `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>
@bedevere-bot

Copy link
Copy Markdown

🤖 New build scheduled with the buildbot fleet by @StanFromIreland for commit e5caf45 🤖

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F145999%2Fmerge

If you want to schedule another build, you need to add the 🔨 test-with-buildbots label again.

@bedevere-bot bedevere-bot removed the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 15, 2026
@github-actions

This comment was marked as off-topic.

@github-actions github-actions Bot added the stale Stale PR or inactive for long period of time. label May 8, 2026
@StanFromIreland StanFromIreland removed the stale Stale PR or inactive for long period of time. label May 8, 2026
@Yhg1s
Yhg1s merged commit 24ce88b into python:3.12 Aug 4, 2026
23 checks passed
@StanFromIreland
StanFromIreland deleted the backport-eb0e8be-3.12 branch August 4, 2026 09:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants