CVE-2026-4360

Name
CVE-2026-4360
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.
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
cna@python.org https://github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0
cna@python.org https://github.com/python/cpython/commit/7b57e8d51446297b8c7c482d224bc5f1938e4301
cna@python.org https://github.com/python/cpython/commit/7ccdbaba2c54250a70d7f25632152df7655a5e0a
cna@python.org https://github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15e
cna@python.org https://github.com/python/cpython/issues/151987
cna@python.org https://github.com/python/cpython/pull/151988
cna@python.org https://mail.python.org/archives/list/security-announce@python.org/thread/TWZW2PC2AZOV6FENIHFSRC63OM7MBGSB/
cna@python.org https://github.com/python/cpython/commit/d2b2f5eacab4dd48446b63340613b05dcbbf0b44
cna@python.org https://github.com/python/cpython/commit/0367912be336348b30572f8029cec4a282782d92
cna@python.org https://github.com/python/cpython/commit/cf23b9153181062150d061468b6d24af33fe214f

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:python:python:*:*:*:*:*:*:*:* python >= None < 3.1.5

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
python3 edge-main 3.14.7-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
python3 3.24-main 3.14.7-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
python3 3.23-main 3.12.14-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
python3 3.22-main 3.12.14-r0 Natanael Copa <ncopa@alpinelinux.org> fixed
python3 3.21-main 3.12.14-r0 Natanael Copa <ncopa@alpinelinux.org> fixed