Skip to content

gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoader uses io.open_code - #145507

Merged
zooba merged 1 commit into
python:mainfrom
zooba:gh-145506
Mar 4, 2026
Merged

zooba merged 1 commit into
python:mainfrom
zooba:gh-145506

Conversation

@zooba

@zooba zooba commented Mar 4, 2026 •

Copy link
Copy Markdown
Member
@zooba

zooba commented Mar 4, 2026

Copy link
Copy Markdown
Member Author

PR was previously approved by @brettcannon

@zooba
zooba merged commit a51b1b5 into python:main Mar 4, 2026
58 of 59 checks passed
@miss-islington-app

Copy link
Copy Markdown

Thanks @zooba for the PR 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11, 3.12, 3.13, 3.14.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 4, 2026
… uses io.open_code (pythonGH-145507)

(cherry picked from commit a51b1b5)

Co-authored-by: Steve Dower <steve.dower@python.org>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 4, 2026
… uses io.open_code (pythonGH-145507)

(cherry picked from commit a51b1b5)

Co-authored-by: Steve Dower <steve.dower@python.org>
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 4, 2026
… uses io.open_code (pythonGH-145507)

(cherry picked from commit a51b1b5)

Co-authored-by: Steve Dower <steve.dower@python.org>
@bedevere-app

bedevere-app Bot commented Mar 4, 2026

Copy link
Copy Markdown

GH-145512 is a backport of this pull request to the 3.14 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.14 bugs and security fixes label Mar 4, 2026
@bedevere-app

bedevere-app Bot commented Mar 4, 2026

Copy link
Copy Markdown

GH-145513 is a backport of this pull request to the 3.13 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 4, 2026
… uses io.open_code (pythonGH-145507)

(cherry picked from commit a51b1b5)

Co-authored-by: Steve Dower <steve.dower@python.org>
@bedevere-app bedevere-app Bot removed the needs backport to 3.13 only security fixes label Mar 4, 2026
miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 4, 2026
… uses io.open_code (pythonGH-145507)

(cherry picked from commit a51b1b5)

Co-authored-by: Steve Dower <steve.dower@python.org>
@bedevere-app

bedevere-app Bot commented Mar 4, 2026

Copy link
Copy Markdown

GH-145514 is a backport of this pull request to the 3.12 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.12 only security fixes label Mar 4, 2026
@bedevere-app

bedevere-app Bot commented Mar 4, 2026

Copy link
Copy Markdown

GH-145515 is a backport of this pull request to the 3.11 branch.

@bedevere-app bedevere-app Bot removed the needs backport to 3.11 only security fixes label Mar 4, 2026
@zooba
zooba deleted the gh-145506 branch March 4, 2026 19:56
zooba added a commit that referenced this pull request Mar 4, 2026
…r uses io.open_code (GH-145507)

(cherry picked from commit a51b1b5)

Co-authored-by: Steve Dower <steve.dower@python.org>
zooba added a commit that referenced this pull request Mar 4, 2026
…r uses io.open_code (GH-145507)`

(cherry picked from commit a51b1b5)

Co-authored-by: Steve Dower <steve.dower@python.org>
@StanFromIreland

Copy link
Copy Markdown
Member

GH-145516 is a backport of this pull request to the 3.10 branch.

@StanFromIreland StanFromIreland removed the needs backport to 3.10 only security fixes label Mar 6, 2026
ljfp pushed a commit to ljfp/cpython that referenced this pull request Apr 25, 2026
pablogsal pushed a commit that referenced this pull request Apr 30, 2026
…r uses io.open_code (GH-145507) (#145516)

* gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoader uses io.open_code (GH-145507)
(cherry picked from commit a51b1b5)

Co-authored-by: Steve Dower <steve.dower@python.org>

* Regenerate importlib_external.h

* Fix blurb entry

The `:cve:` role is not available on this branch.

---------

Co-authored-by: Steve Dower <steve.dower@python.org>
Co-authored-by: Stan Ulbrych <stan@ulbrych.org>
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
pablogsal pushed a commit that referenced this pull request Apr 30, 2026
…r uses io.open_code (GH-145507) (#145515)

* gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoader uses io.open_code (GH-145507)
(cherry picked from commit a51b1b5)

Co-authored-by: Steve Dower <steve.dower@python.org>

* Fix docs reference

---------

Co-authored-by: Steve Dower <steve.dower@python.org>
Yhg1s pushed a commit that referenced this pull request Aug 4, 2026
…r uses io.open_code (GH-145507) (#145514)

gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoader uses io.open_code (GH-145507)
(cherry picked from commit a51b1b5)

Co-authored-by: Steve Dower <steve.dower@python.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants