Skip to content

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

Merged
gpshead merged 1 commit into
python:3.15from
miss-islington:backport-e4c751b-3.15
Nov 4, 2026
Merged

gpshead merged 1 commit into
python:3.15from
miss-islington:backport-e4c751b-3.15

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>
@read-the-docs-community

Copy link
Copy Markdown

@gpshead
gpshead merged commit 6ac089b into python:3.15 Nov 4, 2026
59 checks passed
@miss-islington
miss-islington deleted the backport-e4c751b-3.15 branch November 4, 2026 21:57
jkreileder added a commit to jkreileder/cf-ips-to-hcloud-fw that referenced this pull request Dec 3, 2026
…CVE-2026-107784 (#1664)

Alpine 3.24 fixes CVE-2026-140044 in busybox 1.37.0-r32, which the image
ships, but Docker Scout applies Alpine edge's 1.38.0-r9 threshold
(docker/scout-cli#248). A VEX statement covers busybox, busybox-binsh
and ssl_client 1.37.0-r32.

CVE-2026-107784 is a Windows-only tarfile filter bypass. Its 3.15
backport (python/cpython#161355) postdates 3.15.2, so Grype lists only
3.16.0 as fixed. The ignore rule is pinned to python 3.15.2.

Also records that the 3.15 backports for CVE-2026-115559 and
CVE-2026-16052 have merged.

Refs #1584

Signed-off-by: Jürgen Kreileder <jk@blackdown.de>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants