Skip to content

[3.12] gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoader uses io.open_code (GH-145507) - #145514

Merged
Yhg1s merged 1 commit into
python:3.12from
miss-islington:backport-a51b1b5-3.12
Aug 4, 2026
Merged

[3.12] gh-145506: Fixes CVE-2026-2297 by ensuring SourcelessFileLoader uses io.open_code (GH-145507)#145514
Yhg1s merged 1 commit into
python:3.12from
miss-islington:backport-a51b1b5-3.12

Conversation

@miss-islington

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

Copy link
Copy Markdown
Contributor

… uses io.open_code (pythonGH-145507)

(cherry picked from commit a51b1b5)

Co-authored-by: Steve Dower <steve.dower@python.org>
@zooba zooba added the type-security A security issue label Mar 17, 2026
@max-allan-cgr

Copy link
Copy Markdown

Is there a reason this PR isn't merged when the same fix HAS been merged for all the other versions?? Or did someone just forget it? :-)

@zooba

zooba commented May 13, 2026

Copy link
Copy Markdown
Member

It was just forgotten - looks like I never pinged the RM @Yhg1s on this one, so it's my fault. (Only the release manager has permission to merge into security fix branches, and this was the only security fix branch that needed the fix IIRC)

octo-sts Bot pushed a commit to wolfi-dev/os that referenced this pull request May 20, 2026
Landing this fix was overlooked for specifically 3.12
(python/cpython#145514 (comment)):
we already have cherry-picks in place for this change for all other
Python versions, this keeps us consistent.

Export:  0524df7f9cdee20e7fed0f43d4516e24e938d7e6
@Yhg1s
Yhg1s merged commit c70adad into python:3.12 Aug 4, 2026
32 checks passed
@miss-islington
miss-islington deleted the backport-a51b1b5-3.12 branch August 4, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type-security A security issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants