CVE-2026-4360Published Jun 30, 2026 · Jun 30Updated Nov 11
Tarfile.extract() doesn't fully respect filter parameter
Python Software Foundation CPython
Low2.0Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Python Software Foundation CPython |
| No fix yet |
Original 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.