Skip to content

[3.15] gh-157265: tarfile: Honor None result of filter for link fallbacks (GH-157266) - #157309

Merged
hugovk merged 3 commits into
python:3.15from
miss-islington:backport-fb2f0bb-3.15
Oct 1, 2026
Merged

hugovk merged 3 commits into
python:3.15from
miss-islington:backport-fb2f0bb-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Sep 11, 2026 •

Copy link
Copy Markdown
Contributor

(cherry picked from commit fb2f0bb)

Co-authored-by: Petr Viktorin encukou@gmail.com
Co-authored-by: Stan Ulbrych stan@python.org

…cks (pythonGH-157266)

(cherry picked from commit fb2f0bb)

Co-authored-by: Petr Viktorin <encukou@gmail.com>
Co-authored-by: Stan Ulbrych <stan@python.org>
pythongh-157266: Adjust test for Windows

On Windows (no symlinks, no hardlinks), the behaviour is
the same as without the fix in pythonGH-157266:
- a/t/dummy is extracted
- b/ is extracted
- c/ is *not* created (the target, a/t, is not in the archive)
- c/escape: c/ is created; escape is skipped (target,
   c/../../link_here, is not in archive)
- c is not recreated as a directory
- boom is not created (target is c/escape, which falls back to
  ..\..\link_here, which does not exist in archive)
@encukou
encukou marked this pull request as ready for review September 15, 2026 12:43
@hugovk
hugovk merged commit 3105a34 into python:3.15 Oct 1, 2026
63 checks passed
@miss-islington
miss-islington deleted the backport-fb2f0bb-3.15 branch October 1, 2026 10:22
jkreileder added a commit to jkreileder/cf-ips-to-hcloud-fw that referenced this pull request Oct 14, 2026
Move the builder and final images to python:3.15.0 (trixie and
alpine3.24) and the astral/uv tool images to 0.13.1-python3.15. All
pins were checked against the registry with crane.

Python 3.15.0 carries the fixes for CVE-2026-87910 (tarfile,
python/cpython#157309), CVE-2025-15367 (poplib, #143924) and
CVE-2026-12345 (tempfile, #158431), so their .grype.yaml entries go.

Grype still reports CVE-2025-15367 against 3.15.0: NVD's bound is
< 3.15.0a6 and grype's generic version ordering ranks the 3.15.0 final
before that alpha. Keep a single ignore for it, scoped to python
3.15.0, until CI's grype includes anchore/grype#3776.

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

4 participants