CVE-2026-4360
In the Tarfile.extract() function, the filter parameter is not …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0
- github.com/python/cpython/commit/7b57e8d51446297b8c7c482d224bc5f1938e4301
- github.com/python/cpython/commit/7ccdbaba2c54250a70d7f25632152df7655a5e0a
- github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15e
- github.com/python/cpython/issues/151987
- github.com/python/cpython/pull/151988
- mail.python.org/archives/list/[email protected]/thread/TWZW2PC2AZOV6FENIHFSRC63
- github.com/python/cpython/commit/d2b2f5eacab4dd48446b63340613b05dcbbf0b44
- nvd.nist.gov/vuln/detail/CVE-2026-4360
- cve.org/CVERecord?id=CVE-2026-4360
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.