Vulnerability · Published Jun 4, 2026 · Assigned by PSF
CVE-2026-7774tarfile.data_filter path traversal bypass allows writing outside the extraction directory
Medium 6.9
In plain English
A medium-severity path traversal in CPython from Python Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
tarfile.data_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() to write files outside the destination directory, subject to the permissions of the extracting process.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.24 | python3 | 3.14.7-r0 | ALPINE-CVE-2026-7774 |
| Debian:13 | pypy3 | no fix listed | DEBIAN-CVE-2026-7774 |
| Debian:14 | pypy3 | 8.0.0+dfsg-1 | DEBIAN-CVE-2026-7774 |
| Debian:13 | python3.13 | 3.13.5-2+deb13u3 | DEBIAN-CVE-2026-7774 |
| Debian:14 | python3.14 | 3.14.6-1 | DEBIAN-CVE-2026-7774 |
| Ubuntu:22.04:LTS | pypy3 | no fix listed | UBUNTU-CVE-2026-7774 |
| Ubuntu:24.04:LTS | pypy3 | no fix listed | UBUNTU-CVE-2026-7774 |
| Ubuntu:25.10 | pypy3 | no fix listed | UBUNTU-CVE-2026-7774 |
| Ubuntu:26.04:LTS | pypy3 | no fix listed | UBUNTU-CVE-2026-7774 |
| Ubuntu:26.10 | pypy3 | no fix listed | UBUNTU-CVE-2026-7774 |
| Ubuntu:22.04:LTS | python3.10 | 3.10.12-1~22.04.16 | USN-8509-1 |
| Ubuntu:24.04:LTS | python3.12 | 3.12.3-1ubuntu0.15 | USN-8509-1 |
| Ubuntu:24.04:LTS | python3.12 | 3.12.3-1ubuntu0.15 | UBUNTU-CVE-2026-7774 |
| Ubuntu:25.10 | python3.13 | no fix listed | UBUNTU-CVE-2026-7774 |
| Ubuntu:25.10 | python3.14 | no fix listed | UBUNTU-CVE-2026-7774 |
| Ubuntu:26.04:LTS | python3.14 | 3.14.4-1ubuntu0.1 | USN-8509-1 |
| Ubuntu:26.04:LTS | python3.14 | 3.14.4-1ubuntu0.1 | UBUNTU-CVE-2026-7774 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Python Software Foundation | CPython | 0 – before 3.10.213.11.0 – before 3.11.163.12.0 – before 3.12.143.13.0 – before 3.13.143.14.0 – before 3.14.63.15.0a1 – before 3.15.0b2 |
Weakness: CWE-22 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
References
- https://github.com/python/cpython/pull/149487 patch
- https://github.com/python/cpython/issues/149486 issue-tracking
- https://mail.python.org/archives/list/security-announce@python.org/thread/4FU62L2M6RMMHT2QPGQNPEHHUND7CEX5/ vendor-advisory
- https://github.com/python/cpython/commit/0478bd83d82b255e0f29f613367a59d261e7eaa2 patch
- https://github.com/python/cpython/commit/0d28f5e46e151718972dfabd91205444d0037b6d patch
- https://github.com/python/cpython/commit/578411982c16f753f4893532510099ef665117da patch
- https://github.com/python/cpython/commit/5cf47a248c35c375d610b87b2f72fd1ed454b558 patch
- https://github.com/python/cpython/commit/74cca9a92fb7d653e404843a56b8bdc7b0afdbbf patch
- https://github.com/python/cpython/commit/10a13bee3c24f9c62b602e696334ff2272a40efc patch
- https://github.com/python/cpython/commit/c063191cb7f9170f9565e305f8aa2b79ab2bf609 patch
- http://www.openwall.com/lists/oss-security/2026/06/04/9