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.
Affected software
- Python < 3.1.5 Fixed in: 3.1.5 exact match
Details
- Published
- 2026-06-30
- Last modified
- 2026-08-13
- CVSS vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:H/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N- CWE
- CWE-281
- EPSS (30-day exploit probability)
- 0.48% (percentile 42)
References
- cve.org/CVE-2026-4360
- nvd.nist.gov/vuln/detail/CVE-2026-4360
- mail.python.org/archives/list/[email protected]/thread/TWZW2PC2AZOV6FENIHFSRC63...
- github.com/python/cpython/pull/151988
- github.com/python/cpython/issues/151987
- 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/commit/d2b2f5eacab4dd48446b63340613b05dcbbf0b44
- github.com/python/cpython/commit/cf23b9153181062150d061468b6d24af33fe214f
- github.com/python/cpython/commit/0367912be336348b30572f8029cec4a282782d92
Track these versions on your own servers
InfraGuard collects installed software versions from every server and flags the ones with known vulnerabilities. Self-hosted — nothing leaves your network.
This product uses data from the NVD API but is not endorsed or certified by the NVD. CVE® is a registered trademark of The MITRE Corporation; CVE records are used under the CVE Program Terms of Use.