CVE-2026-7774

NameCVE-2026-7774
Descriptiontarfile.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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
pypy3 (PTS)bullseye7.3.5+dfsg-2+deb11u2vulnerable
bullseye (security)7.3.5+dfsg-2+deb11u5vulnerable
bookworm7.3.11+dfsg-2+deb12u3vulnerable
trixie7.3.19+dfsg-2vulnerable
forky, sid7.3.23+dfsg-1vulnerable
python2.7 (PTS)bullseye2.7.18-8+deb11u1vulnerable
python3.11 (PTS)bookworm3.11.2-6+deb12u7vulnerable
bookworm (security)3.11.2-6+deb12u3vulnerable
python3.13 (PTS)trixie3.13.5-2+deb13u2vulnerable
forky, sid3.13.12-1vulnerable
python3.14 (PTS)forky, sid3.14.5-1vulnerable
python3.9 (PTS)bullseye3.9.2-1vulnerable
bullseye (security)3.9.2-1+deb11u7vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
pypy3source(unstable)(unfixed)
python2.7sourcebullseye(unfixed)end-of-life
python2.7source(unstable)(unfixed)
python3.11source(unstable)(unfixed)
python3.13source(unstable)(unfixed)
python3.14source(unstable)(unfixed)
python3.9source(unstable)(unfixed)

Notes

[bullseye] - python2.7 <end-of-life> (not supported in bullseye)
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)

Search for package or bug name: Reporting problems