Skip to content

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

Open
StanFromIreland wants to merge 2 commits intopython:3.11from
StanFromIreland:backport-e5caf45-3.11
Open

[3.11] gh-145986: Avoid unbound C recursion in conv_content_model in pyexpat.c (CVE 2026-4224) (GH-145987)#146000
StanFromIreland wants to merge 2 commits intopython:3.11from
StanFromIreland:backport-e5caf45-3.11

Conversation

@StanFromIreland
Copy link
Member

@StanFromIreland StanFromIreland 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) (cherry picked from commit e5caf45)

…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)
(cherry picked from commit e5caf45)

Co-authored-by: Stan Ulbrych <[email protected]>
Co-authored-by: Bénédikt Tran <[email protected]>
@picnixz
Copy link
Member

picnixz commented Mar 15, 2026

Ah right, I only added CVE/CWE roles in Sphinx 8.x but 3.11 uses older Sphinx. So use an inline link instead (for now the CVE is not published yet so it will be a placeholder)

@StanFromIreland StanFromIreland added the 🔨 test-with-buildbots Test PR w/ buildbots; report in status section label Mar 15, 2026
@bedevere-bot
Copy link

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

Results will be shown at:

https://buildbot.python.org/all/#/grid?branch=refs%2Fpull%2F146000%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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants