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)forky, sid, bookworm, trixie2.7.3+repack1-1fixed
pypy3 (PTS)bookworm7.3.11+dfsg-2+deb12u3fixed
trixie7.3.19+dfsg-2vulnerable
forky, sid7.3.23+dfsg-1vulnerable
python3.11 (PTS)bookworm3.11.2-6+deb12u8fixed
bookworm (security)3.11.2-6+deb12u3fixed
python3.13 (PTS)trixie3.13.5-2+deb13u3vulnerable
forky, sid3.13.15-1fixed
python3.14 (PTS)forky3.14.7-1fixed
sid3.14.7-3fixed

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

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
jythonsource(unstable)(not affected)
pypy3sourcebullseye(not affected)
pypy3sourcebookworm(not affected)
pypy3source(unstable)(unfixed)1141531
python2.7source(unstable)(not affected)
python3.11source(unstable)(not affected)
python3.13source(unstable)3.13.15-1
python3.14source(unstable)3.14.7-1
python3.9source(unstable)(not affected)

Notes

[trixie] - python3.13 <no-dsa> (Minor issue)
- python3.11 <not-affected> (Vulnerable code didn't get backported to the version in Bookworm)
- python3.9 <not-affected> (extraction filters (PEP 706) absent in 3.9.2; extract() has no filter parameter)
- python2.7 <not-affected> (extraction filters (PEP 706) absent in py2; extract() has no filter parameter)
- jython <not-affected> (extraction filters/PEP 706 absent in bundled python2.7 stdlib; tarfile.extract() has no filter parameter)
[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://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 (v3.15.0b4)
https://github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0 (v3.14.7)
https://github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15e (v3.13.15)
Same code situation as with CVE-2025-4435.

Search for package or bug name: Reporting problems