Skip to content
OpenAdvisories

Description

tarfile.tar_filter could be bypassed using crafted link entries, including symlinks with empty or directory-like names, to redirect later archive members outside the intended extraction directory. This allowed a malicious tar archive to cause tarfile.extractall() with filter="tar" to write files outside the destination directory, subject to the permissions of the extracting process.

This is the tarfile.tar_filter counterpart of CVE-2026-7774, which covered tarfile.data_filter.

Affected products

VendorProductAffectedFixed
Python Software Foundation CPython < 3.11.18, 3.12.0 – < 3.12.16, 3.13.0 – < 3.13.18, 3.14.0 – < 3.14.10, 3.15.0 – < 3.15.2, 3.16.0a1 – < 3.16.0 3.11.18

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 pypy3 +1 No fix yet —
Debian 14 python3.14 3.14.9-1 —
Debian 14 python3.15 3.15.1-1 —
Debian 13 pypy3 +2 No fix yet —
Debian 12 pypy3 +2 No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 python3.14 +1 No fix yet —
Ubuntu 26.04 LTS python3.14 No fix yet —
Ubuntu 24.04 LTS python3.12 No fix yet —
Ubuntu 22.04 LTS python3.10 No fix yet —
Show 5 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS python2.7 +1 No fix yet —
Ubuntu Pro 20.04 LTS python2.7 +2 No fix yet —
Ubuntu Pro 18.04 LTS python2.7 +3 No fix yet —
Ubuntu Pro 16.04 LTS python2.7 +1 No fix yet —
Ubuntu Pro 14.04 LTS python2.7 +2 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 python3 +8 3.9.25-14.el9_9 RHSA-2026:98511
RHEL 8 python3 +7 3.6.8-80.el8_10 RHSA-2026:99691
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 python3 +15 3.14.10-1.hum1 RHSA-2026:92066
Red Hat Hardened Images 1 python3.11 +6 3.11.18-1.hum1 RHSA-2026:90986
Red Hat Hardened Images 1 python3.12 +6 3.12.16-1.hum1 RHSA-2026:90533
Red Hat Hardened Images 1 python3.13 +8 3.13.18-1.hum1 RHSA-2026:90995
Red Hat Hardened Images 1 python3.15 +13 3.15.2-0.1.hum1 RHSA-2026:90305
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed python315 3.15.2-1.1 openSUSE-SU-2026:12348-1
ReleasePackageFixed inAdvisory
Alpine v3.24 python3 3.14.10-r0 —
Alpine v3.23 python3 3.12.16-r0 —
Alpine v3.22 python3 3.12.16-r0 —
Alpine v3.21 python3 3.12.16-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 python3.11 +6 3.11.18-1.amzn2023.0.1 ALAS2023-2026-3356
Amazon Linux 2023 python3.12 +6 3.12.16-2.amzn2023.0.1 ALAS2023-2026-3408
Amazon Linux 2023 python3.13 +8 3.13.18-1.amzn2023.0.1 ALAS2023-2026-3407
Amazon Linux 2023 python3.14 +13 3.14.10-1.amzn2023.0.1 ALAS2023-2026-3406

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 python-py +1 No fix yet —
Azure Linux 3 python3 3.12.16-1 —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 8 python3-idle +6 3.6.8-80.0.1.el8_10 ELSA-2026-99691

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling python-3.10 No fix yet —
Wolfi rolling python-3.13 3.13.18_git20261030-r0 —
Wolfi rolling python-3.14 3.14.10_git20261028-r0 —
Wolfi rolling python-3.15 3.15.2_git20261030-r0 —

Advisories 14

References