| Name | CVE-2026-7774 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
| Debian Bugs | 1141492 |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| pypy3 (PTS) | bullseye | 7.3.5+dfsg-2+deb11u2 | fixed |
| bullseye (security) | 7.3.5+dfsg-2+deb11u5 | fixed | |
| bookworm | 7.3.11+dfsg-2+deb12u3 | fixed | |
| trixie | 7.3.19+dfsg-2 | vulnerable | |
| forky, sid | 7.3.23+dfsg-1 | vulnerable | |
| python2.7 (PTS) | bullseye | 2.7.18-8+deb11u1 | fixed |
| python3.11 (PTS) | bookworm | 3.11.2-6+deb12u8 | fixed |
| bookworm (security) | 3.11.2-6+deb12u3 | fixed | |
| python3.13 (PTS) | trixie | 3.13.5-2+deb13u3 | fixed |
| forky, sid | 3.13.14-1 | fixed | |
| python3.14 (PTS) | forky, sid | 3.14.6-1 | fixed |
| python3.9 (PTS) | bullseye | 3.9.2-1 | fixed |
| bullseye (security) | 3.9.2-1+deb11u7 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| pypy3 | source | bullseye | (not affected) | |||
| pypy3 | source | bookworm | (not affected) | |||
| pypy3 | source | (unstable) | (unfixed) | 1141492 | ||
| python2.7 | source | (unstable) | (not affected) | |||
| python3.11 | source | (unstable) | (not affected) | |||
| python3.13 | source | trixie | 3.13.5-2+deb13u3 | |||
| python3.13 | source | (unstable) | 3.13.14-1 | |||
| python3.14 | source | (unstable) | 3.14.6-1 | |||
| python3.9 | source | (unstable) | (not affected) |
- python3.11 <not-affected> (Vulnerable code didn't get backported to the version in Bookworm)
- python3.9 <not-affected> (Vulnerable code got backported to 3.9.17, but dropped from sid with 3.9.13)
- python2.7 <not-affected> (Vulnerable code didn't get backported to py2)
[trixie] - pypy3 <no-dsa> (Minor issue)
[bookworm] - pypy3 <not-affected> (Vulnerable code backported down to stdlib-3.9.17; embedding 3.6.16)
[bullseye] - pypy3 <not-affected> (Vulnerable code backported down to stdlib-3.9.17; embedding 3.6.9)
https://www.openwall.com/lists/oss-security/2026/06/04/9
https://github.com/python/cpython/pull/149487
https://github.com/python/cpython/commit/578411982c16f753f4893532510099ef665117da (main)
https://github.com/python/cpython/commit/5cf47a248c35c375d610b87b2f72fd1ed454b558 (v3.15.0b2)
https://github.com/python/cpython/commit/74cca9a92fb7d653e404843a56b8bdc7b0afdbbf (3.14 branch)
https://github.com/python/cpython/commit/0478bd83d82b255e0f29f613367a59d261e7eaa2 (3.13 branch)
https://github.com/python/cpython/commit/0d28f5e46e151718972dfabd91205444d0037b6d (3.12 branch)
Same code situation as with CVE-2025-4435.