Tarfile.extract() doesn't fully respect filter parameter
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.
01
describes (1)
Related CVEs.
| ID | severity | exploitable | ||
|---|---|---|---|---|
| CVE-2026-4360US | medium5.3 | — | ||
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 en… | ||||
02
references
External citations — patches, advisories, analysis.
- https://github.com/python/cpython/commit/0367912be336348b30572f8029cec4a282782d92WEB
- https://github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0FIX
- https://github.com/python/cpython/commit/7b57e8d51446297b8c7c482d224bc5f1938e4301FIX
- https://github.com/python/cpython/commit/7ccdbaba2c54250a70d7f25632152df7655a5e0aFIX
- https://github.com/python/cpython/commit/cf23b9153181062150d061468b6d24af33fe214fWEB
- https://github.com/python/cpython/commit/d2b2f5eacab4dd48446b63340613b05dcbbf0b44FIX
- https://github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15eFIX
- https://github.com/python/cpython/issues/151987FIX
scry
Advisories like this name the exposed products attackers go after on your perimeter. See what is exposed on your perimeter with a free passive scan.
Free scan