CVE-2026-4360
Tarfile.extract() doesn't fully respect filter parameter
CVSS Score
0.0
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-281 |
| Vendor | python software foundation |
| Product | cpython |
| Published | Jun 30, 2026 |
| Last Updated | Jun 30, 2026 |
Stay Ahead of the Next One
Get instant alerts for python software foundation cpython
Be the first to know when new unknown vulnerabilities affecting python software foundation cpython are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
Affected Versions
Python Software Foundation / CPython
0 < 3.15.0
References
mail.python.org: https://mail.python.org/archives/list/[email protected]/thread/TWZW2PC2AZOV6FENIHFSRC63OM7MBGSB/ github.com: https://github.com/python/cpython/pull/151988 github.com: https://github.com/python/cpython/issues/151987 github.com: https://github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0 github.com: https://github.com/python/cpython/commit/7b57e8d51446297b8c7c482d224bc5f1938e4301 github.com: https://github.com/python/cpython/commit/7ccdbaba2c54250a70d7f25632152df7655a5e0a github.com: https://github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15e
Credits
๐ Michael Scovetta (https://github.com/scovetta) Seth Larson (https://github.com/sethmlarson) Petr Viktorin (https://github.com/encukou)