Ubuntu CVE Tracker
UBUNTU-CVE-2026-4360
Details
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 packages
| Ecosystem | Package | Affected versions |
|---|---|---|
| Ubuntu:22.04:LTS | python3.10 | All versions before 3.10.12-1~22.04.18 (fixed in 3.10.12-1~22.04.18) |
| Ubuntu:24.04:LTS | python3.12 | All versions before 3.12.3-1ubuntu0.17 (fixed in 3.12.3-1ubuntu0.17) |
| Ubuntu:25.10 | python3.13 | All versions, no fix listed |
| Ubuntu:25.10 | python3.14 | All versions, no fix listed |
| Ubuntu:26.04:LTS | python3.14 | All versions before 3.14.4-1ubuntu0.2 (fixed in 3.14.4-1ubuntu0.2) |
References
- https://ubuntu.com/security/CVE-2026-4360
- https://www.cve.org/CVERecord?id=CVE-2026-4360
- https://github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0
- https://github.com/python/cpython/commit/7b57e8d51446297b8c7c482d224bc5f1938e4301
- https://github.com/python/cpython/commit/7ccdbaba2c54250a70d7f25632152df7655a5e0a
- https://github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15e
- https://github.com/python/cpython/issues/151987
- https://github.com/python/cpython/pull/151988
- https://mail.python.org/archives/list/[email protected]/thread/TWZW2PC2AZOV6FENIHFSRC63OM7MBGSB/
- https://ubuntu.com/security/notices/USN-8744-1