Home

Description

In 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.

PUBLISHED Reserved 2026-03-17 | Published 2026-06-30 | Updated 2026-07-07 | Assigner PSF




LOW: 2.0CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Problem types

CWE-281

Product status

Default status
unaffected

Any version before 3.15.0
affected

Credits

Michael Scovetta (https://github.com/scovetta) reporter

Seth Larson (https://github.com/sethmlarson) coordinator

Petr Viktorin (https://github.com/encukou) remediation developer

References

mail.python.org/.../thread/TWZW2PC2AZOV6FENIHFSRC63OM7MBGSB/ vendor-advisory

github.com/python/cpython/pull/151988 patch

github.com/python/cpython/issues/151987 issue-tracking

github.com/...ommit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0 patch

github.com/...ommit/7b57e8d51446297b8c7c482d224bc5f1938e4301 patch

github.com/...ommit/7ccdbaba2c54250a70d7f25632152df7655a5e0a patch

github.com/...ommit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15e patch

github.com/...ommit/d2b2f5eacab4dd48446b63340613b05dcbbf0b44 patch

cve.org (CVE-2026-4360)

nvd.nist.gov (CVE-2026-4360)

Download JSON