Skip to content

[3.13] gh-161323: Refuse drive-relative paths in tarfile extraction filters (GH-161334) - #161357

Open
miss-islington wants to merge 1 commit into
python:3.13from
miss-islington:backport-e4c751b-3.13
Open

miss-islington wants to merge 1 commit into
python:3.13from
miss-islington:backport-e4c751b-3.13

Conversation

@miss-islington

Copy link
Copy Markdown
Contributor

On Windows, os.path.join() does not put a name such as 'C:foo' below a
destination that has no drive, so the 'tar' and 'data' filters now refuse
names and link targets with a drive, after normalization.
Fixes CVE-2026-107784.

reported by Girish Konda

ANT-2026-RSL1F4AT
(cherry picked from commit e4c751b)

Co-authored-by: Gregory P. Smith 68491+gpshead@users.noreply.github.com
Co-authored-by: Petr Viktorin encukou@gmail.com

…lters (pythonGH-161334)

* pythongh-161323: Refuse drive-relative paths in tarfile extraction filters

On Windows, os.path.join() does not put a name such as 'C:foo' below a
destination that has no drive, so the 'tar' and 'data' filters now refuse
names and link targets with a drive, after normalization.
Fixes CVE-2026-107784.

reported by Girish Konda

ANT-2026-RSL1F4AT
(cherry picked from commit e4c751b)

Co-authored-by: Gregory P. Smith <68491+gpshead@users.noreply.github.com>
Co-authored-by: Petr Viktorin <encukou@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Development

Successfully merging this pull request may close these issues.

3 participants