CVE-2026-4360

NameCVE-2026-4360
DescriptionIn the Tarfile.extract() function, the filter parameter is not passed properly when extracting hardlinks. An affected system that extracts content from untrusted tar files could end up writing files with an unexpected uid/gid despite the user passing filter='data' to the extract() function.
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)
Debian Bugs1141531

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
jython (PTS)bullseye2.7.2+repack1-3vulnerable
bookworm2.7.3+repack1-1fixed
forky, sid, trixie2.7.3+repack1-1vulnerable
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+deb12u8vulnerable
bookworm (security)3.11.2-6+deb12u3vulnerable
python3.13 (PTS)trixie3.13.5-2+deb13u3vulnerable
forky, sid3.13.14-1vulnerable
python3.14 (PTS)forky, sid3.14.6-1vulnerable
python3.9 (PTS)bullseye3.9.2-1fixed
bullseye (security)3.9.2-1+deb11u7fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
jythonsourcebullseye(unfixed)end-of-life
jythonsourcebookworm(not affected)
jythonsource(unstable)(unfixed)
pypy3source(unstable)(unfixed)1141531
python2.7sourcebullseye(unfixed)end-of-life
python2.7source(unstable)(unfixed)
python3.11source(unstable)(unfixed)
python3.13source(unstable)(unfixed)
python3.14source(unstable)(unfixed)
python3.9sourcebullseye(not affected)
python3.9source(unstable)(unfixed)

Notes

[trixie] - python3.13 <no-dsa> (Minor issue)
[bullseye] - python3.9 <not-affected> (extraction filters (PEP 706) absent in 3.9.2; extract() has no filter parameter)
[bullseye] - python2.7 <end-of-life> (EOL in bullseye LTS)
[trixie] - jython <no-dsa> (Minor issue)
[bookworm] - jython <not-affected> (extraction filters/PEP 706 absent in bundled python2.7 stdlib; tarfile.extract() has no filter parameter)
[bullseye] - jython <end-of-life> (EOL in bullseye LTS)
[trixie] - pypy3 <no-dsa> (Minor issue)
https://mail.python.org/archives/list/security-announce@python.org/thread/TWZW2PC2AZOV6FENIHFSRC63OM7MBGSB/
https://github.com/python/cpython/issues/151987
https://github.com/python/cpython/pull/151988
https://github.com/python/cpython/commit/7b57e8d51446297b8c7c482d224bc5f1938e4301 (3.15 branch)
https://github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0 (3.14 branch)
https://github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15e (3.13 branch)

Search for package or bug name: Reporting problems