Description
In CPython 3.13 and earlier, the tarfile module's data and tar extraction filters are vulnerable to crafted archives containing a hard link to a symbolic link. Such archives may cause extraction to modify the permissions or modification time of a file outside the destination directory, or expose the contents of that file within the extracted tree.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Python Software Foundation | CPython | < 3.10.22, 3.11.0 – < 3.11.17, 3.12.0 – < 3.12.15, 3.13.0 – < 3.13.16, 3.14.0a1 – < 3.14.0b1 | 3.10.22 |
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | pypy3 | 8.0.1+dfsg-1 | — |
| Debian 13 | pypy3 +1 | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | pypy3 +1 | No fix yet | — |
| Ubuntu 26.04 LTS | pypy3 +1 | No fix yet | — |
| Ubuntu 24.04 LTS | pypy3 +1 | No fix yet | — |
| Ubuntu 22.04 LTS | pypy3 +1 | No fix yet | — |
| Ubuntu 20.04 LTS | pypy3 | No fix yet | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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 | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Red Hat Hardened Images 1 | python3 +15 | 3.14.7-1.1.hum1 | RHSA-2026:65505 |
| Red Hat Hardened Images 1 | python3.10 +6 | 3.10.21-1.3.hum1 | RHSA-2026:68132 |
| Red Hat Hardened Images 1 | python3.11 +6 | 3.11.16-1.4.hum1 | RHSA-2026:68135 |
| Red Hat Hardened Images 1 | python3.12 +6 | 3.12.14-1.3.hum1 | RHSA-2026:68154 |
| Red Hat Hardened Images 1 | python3.13 +8 | 3.13.15-1.3.hum1 | RHSA-2026:68309 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | python +1 | 2.7.18-150000.136.1 | SUSE-SU-2026:4738-1 |
| SLES 15 SP7 | python3 +1 | 3.6.15-150300.10.129.1 | SUSE-SU-2026:4754-1 |
| SLES 15 SP7 | python311-core | 3.11.17-150600.3.74.1 | SUSE-SU-2026:4946-1 |
| SLES 15 SP6 | python3 +1 | 3.6.15-150300.10.129.1 | SUSE-SU-2026:4754-1 |
| SLES 15 SP6 | python311 +1 | 3.11.17-150600.3.74.1 | SUSE-SU-2026:4946-1 |
| SLES 15 SP6 | python312 +1 | 3.12.15-150600.3.71.1 | SUSE-SU-2026:4659-1 |
| SLES 15 SP5 | python3 +1 | 3.6.15-150300.10.129.1 | SUSE-SU-2026:4754-1 |
| SLES 15 SP5 | python311 +2 | 3.11.17-150400.9.105.1 | SUSE-SU-2026:4809-1 |
| SLES 15 SP4 | python3 +1 | 3.6.15-150300.10.129.1 | SUSE-SU-2026:4754-1 |
| SLES 15 SP4 | python310 +1 | 3.10.22-150400.4.129.1 | SUSE-SU-2026:4630-1 |
| SLES 15 SP4 | python311 +2 | 3.11.17-150400.9.105.1 | SUSE-SU-2026:4809-1 |
| SLES 12 SP5 | python +2 | 2.7.18-33.93.1 | SUSE-SU-2026:4904-1 |
| SLES 12 SP5 | python3 +1 | 3.4.10-25.199.1 | SUSE-SU-2026:4744-1 |
| SLES 12 SP5 | python36 +1 | 3.6.15-125.1 | SUSE-SU-2026:4743-1 |
Show 11 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 3 | python311 +1 | 3.11.17-150600.3.74.1 | SUSE-SU-2026:4946-1 |
| SLES 3 | python313 +1 | 3.13.16-150700.4.61.1 | SUSE-SU-2026:4941-1 |
| SLES for SAP 15 SP6 | python3 +1 | 3.6.15-150300.10.129.1 | SUSE-SU-2026:4754-1 |
| SLES for SAP 15 SP6 | python311 +1 | 3.11.17-150600.3.74.1 | SUSE-SU-2026:4946-1 |
| SLES for SAP 15 SP6 | python312 +1 | 3.12.15-150600.3.71.1 | SUSE-SU-2026:4659-1 |
| SLES for SAP 15 SP5 | python3 +1 | 3.6.15-150300.10.129.1 | SUSE-SU-2026:4754-1 |
| SLES for SAP 15 SP5 | python311 +2 | 3.11.17-150400.9.105.1 | SUSE-SU-2026:4809-1 |
| SLES for SAP 15 SP4 | python3 +1 | 3.6.15-150300.10.129.1 | SUSE-SU-2026:4754-1 |
| SLES for SAP 15 SP4 | python310 +1 | 3.10.22-150400.4.129.1 | SUSE-SU-2026:4630-1 |
| SLES for SAP 15 SP4 | python311 +2 | 3.11.17-150400.9.105.1 | SUSE-SU-2026:4809-1 |
| SLE Micro 6.1 | python311 +1 | 3.11.17-slfo.1.1_1.1 | SUSE-SU-2026:24280-1 |
| SLE Micro 6.0 | python311 +1 | 3.11.17-159998.1.1 | SUSE-SU-2026:24325-1 |
| SLE Micro 5.5 | python3 +1 | 3.6.15-150300.10.129.1 | SUSE-SU-2026:4754-1 |
| SLE Micro 5.4 | python3 +1 | 3.6.15-150300.10.129.1 | SUSE-SU-2026:4754-1 |
| SLE Micro 5.3 | python3 +1 | 3.6.15-150300.10.129.1 | SUSE-SU-2026:4754-1 |
| SLE HPC 15 SP5 | python3 +1 | 3.6.15-150300.10.129.1 | SUSE-SU-2026:4754-1 |
| SLE HPC 15 SP5 | python311 +2 | 3.11.17-150400.9.105.1 | SUSE-SU-2026:4809-1 |
| SLE HPC 15 SP4 | python3 +1 | 3.6.15-150300.10.129.1 | SUSE-SU-2026:4754-1 |
| SLE HPC 15 SP4 | python310 +1 | 3.10.22-150400.4.129.1 | SUSE-SU-2026:4630-1 |
| SLE HPC 15 SP4 | python311 +2 | 3.11.17-150400.9.105.1 | SUSE-SU-2026:4809-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | python310 | 3.10.22-1.1 | openSUSE-SU-2026:12087-1 |
| openSUSE Tumbleweed | python311 | 3.11.17-1.1 | openSUSE-SU-2026:12121-1 |
| openSUSE Tumbleweed | python312 | 3.12.15-1.1 | openSUSE-SU-2026:12122-1 |
| openSUSE Tumbleweed | python313 | 3.13.16-1.1 | openSUSE-SU-2026:12123-1 |
| openSUSE Tumbleweed | python315 | 3.15.0~rc3-1.1 | openSUSE-SU-2026:12069-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | python3 | 3.14.8-r0 | — |
| Alpine v3.23 | python3 | 3.12.15-r0 | — |
| Alpine v3.22 | python3 | 3.12.15-r0 | — |
| Alpine v3.21 | python3 | 3.12.15-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | python3.11 +6 | 3.11.17-1.amzn2023.0.1 | ALAS2023-2026-3231 |
| Amazon Linux 2023 | python3.12 +6 | 3.12.15-2.amzn2023.0.1 | ALAS2023-2026-3230 |
| Amazon Linux 2023 | python3.13 +8 | 3.13.16-1.amzn2023.0.1 | ALAS2023-2026-3229 |
Azure Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Azure Linux 3 | python3 | 3.12.15-1 | — |
| Azure Linux 3 | tensorflow | No fix yet | — |
Wolfi
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Wolfi rolling | python-3.10 | 3.10.22-r1 | — |
| Wolfi rolling | python-3.11 | 3.11.17-r1 | — |
| Wolfi rolling | python-3.12 | 3.12.15-r0 | — |
| Wolfi rolling | python-3.13 | 3.13.15_git20260912-r0 | — |
Advisories 26
- SUSE-SU-2026:4946-1 Security update for python311 SUSE / openSUSE Security Updates · Oct 31, 2026
- SUSE-SU-2026:4941-1 Security update for python313 SUSE / openSUSE Security Updates · Oct 31, 2026
- WID-SEC-2026-3367 Python: Schwachstelle ermöglicht Manipulation und Offenlegung von Daten BSI CERT-Bund (WID) · Oct 29, 2026
- SUSE-SU-2026:24325-1 Security update for python311 SUSE / openSUSE Security Updates · Oct 27, 2026
- SUSE-SU-2026:24280-1 Security update for python311 SUSE / openSUSE Security Updates · Oct 27, 2026
- SUSE-SU-2026:4904-1 Security update for python, python-base, python-doc SUSE / openSUSE Security Updates · Oct 26, 2026
- ALAS2023-2026-3229 Important: python3.13 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 26, 2026
- ALAS2023-2026-3230 Important: python3.12 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 26, 2026
- ALAS2023-2026-3231 Important: python3.11 security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 26, 2026
- SUSE-SU-2026:4809-1 Security update for python311 SUSE / openSUSE Security Updates · Oct 21, 2026
- SUSE-SU-2026:4754-1 Security update for python3 SUSE / openSUSE Security Updates · Oct 21, 2026
- SUSE-SU-2026:4738-1 Security update for python SUSE / openSUSE Security Updates · Oct 20, 2026
- SUSE-SU-2026:4743-1 Security update for python36 SUSE / openSUSE Security Updates · Oct 20, 2026
- SUSE-SU-2026:4744-1 Security update for python3, python3-base, python3-doc SUSE / openSUSE Security Updates · Oct 20, 2026
- RHSA-2026:65505 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2026:68309 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2026:68135 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2026:68154 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- RHSA-2026:68132 Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update Red Hat Security Advisories (RHSA) · Oct 17, 2026
- SUSE-SU-2026:4659-1 Security update for python312 SUSE / openSUSE Security Updates · Oct 14, 2026
- openSUSE-SU-2026:12121-1 python311-3.11.17-1.1 on GA media SUSE / openSUSE Security Updates · Oct 14, 2026
- openSUSE-SU-2026:12122-1 python312-3.12.15-1.1 on GA media SUSE / openSUSE Security Updates · Oct 14, 2026
- openSUSE-SU-2026:12123-1 python313-3.13.16-1.1 on GA media SUSE / openSUSE Security Updates · Oct 14, 2026
- SUSE-SU-2026:4630-1 Security update for python310 SUSE / openSUSE Security Updates · Oct 13, 2026
- openSUSE-SU-2026:12087-1 python310-3.10.22-1.1 on GA media SUSE / openSUSE Security Updates · Oct 9, 2026
- openSUSE-SU-2026:12069-1 python315-3.15.0~rc3-1.1 on GA media SUSE / openSUSE Security Updates · Oct 7, 2026
References
- https://github.com/python/cpython/commit/5a57248b22ad3b9aafcaaadae2c304a1923daeca patch
- https://github.com/python/cpython/issues/157190 issue-tracking
- https://github.com/python/cpython/pull/157191 patch
- https://mail.python.org/archives/list/security-announce@python.org/thread/EFJWGAZJA56AKSBR2WHMHQZO7RRLZPRH/ vendor-advisory
- https://github.com/python/cpython/commit/b38be2e6cf9d989075ab73412c63e003ebad4ff3 patch
- https://github.com/python/cpython/commit/b8f23e307097552eaea2604383a12ab280520d0d patch
- https://github.com/python/cpython/commit/197663d63afed27f66e10e23c194e8a634e60913 patch
- https://github.com/python/cpython/commit/28f315486b3da0352b9a1de1c3c97f4127ba4771 patch
- https://github.com/python/cpython/commit/c66df4e70435d257fd488b35ea129c6f317433a8 patch
- https://github.com/python/cpython/commit/cc1689830c6b9aaddded2fb9f2fe8116867e2c0e patch
- https://github.com/python/cpython/commit/cccc7ec30212dba2abef53ce4a2bed112ddb690c patch