Skip to content

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

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

gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoader uses io.open_code#145507
zooba merged 1 commit intopython:mainfrom
zooba:gh-145506

Conversation

@zooba
Copy link
Member

@zooba zooba commented Mar 4, 2026

@zooba
Copy link
Member Author

zooba commented Mar 4, 2026

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

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
Copy link

bedevere-app bot commented Mar 4, 2026

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
Copy link

bedevere-app bot commented Mar 4, 2026

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 bugs and 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
Copy link

bedevere-app bot commented Mar 4, 2026

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
Copy link

bedevere-app bot commented Mar 4, 2026

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs backport to 3.10 only security fixes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant