GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [3.12] gh-135034: Normalize link targets in tarfile, add `os.path.realpath(strict='allow_missing')` (GH-135037) by Yhg1s · Pull Request #135066 · python/cpython

Conversation

@Yhg1s

@Yhg1s Yhg1s commented Jun 3, 2025 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

Addresses CVEs 2024-12718, 2025-4138, 2025-4330, and 2025-4517.
(cherry picked from commit 3612d8f)

Co-authored-by: Łukasz Langa [email protected]
Co-authored-by: Petr Viktorin [email protected]
Co-authored-by: Seth Michael Larson [email protected]
Co-authored-by: Adam Turner [email protected]
Co-authored-by: Serhiy Storchaka [email protected]

  • Issue: Multiple tarfile extraction filter bypasses (filter="tar"/filter="data") #135034

📚 Documentation preview 📚: https://cpython-previews--135066.org.readthedocs.build/

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@ambv @encukou
@sethmlarson @AA-Turner @serhiy-storchaka @Yhg1s
[3.12] pythongh-135034: Normalize link targets in tarfile, add `os.pa…
c358142
…th.realpath(strict='allow_missing')` (pythonGH-135037)

Addresses CVEs 2024-12718, 2025-4138, 2025-4330, and 2025-4517.
(cherry picked from commit 3612d8f)

Co-authored-by: Łukasz Langa <[email protected]>
Signed-off-by: Łukasz Langa <[email protected]>
Co-authored-by: Petr Viktorin <[email protected]>
Co-authored-by: Seth Michael Larson <[email protected]>
Co-authored-by: Adam Turner <[email protected]>
Co-authored-by: Serhiy Storchaka <[email protected]>
@Yhg1s
Yhg1s requested review from ambv and encukou June 3, 2025 11:25
@Yhg1s
Yhg1s requested a review from ethanfurman as a code owner June 3, 2025 11:25
@bedevere-app bedevere-app Bot added the awaiting core review label Jun 3, 2025
This was referenced Jun 3, 2025
gh-135034: Normalize link targets in tarfile, add os.path.realpath(strict='allow_missing') #135037
Merged
Multiple tarfile extraction filter bypasses (filter="tar"/filter="data") #135034
Closed
Yhg1s and others added 9 commits June 3, 2025 13:36
@Yhg1s
Fix merge snafu
3c10cf0
@Yhg1s
Fix test failure in test_tarfile
f5f9555
@Yhg1s
Drop backport of extra tests that don't really address security conce…
2b5673e
…rns.
@Yhg1s
Fix a few tests, and a glaring logic error in the posixpath backport.
70f9db5
@Yhg1s
Fix Windows test_ntpath failures.
1d242c3
@Yhg1s
Drop test methods for unreadable symlinks (on darwin), which aren't
12ac4a5
handled in 3.12 like they are in 3.13.
@Yhg1s
Don't export LinkFallbackError from tarfile.
8f53def
@encukou
Add back test_realpath_unreadable_symlink_strict
2c2df0d
This one passes on MacOS, and gives some test coverage for OSErrors
other than missing files.
@Yhg1s
Fix merge error in backport.
ead96bb
@ambv
ambv merged commit 19de092 into python:3.12 Jun 3, 2025
@bedevere-app bedevere-app Bot removed the awaiting core review label Jun 3, 2025
@Yhg1s
Yhg1s deleted the backport-3612d8f-3.12 branch August 13, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@ambv ambv Awaiting requested review from ambv
@encukou encukou Awaiting requested review from encukou
@ethanfurman ethanfurman Awaiting requested review from ethanfurman ethanfurman is a code owner

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@Yhg1s @ambv @encukou
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.