Vulnerability · Published Jun 30, 2026 · Assigned by PSF
CVE-2026-4360Tarfile.extract() doesn't fully respect filter parameter
Low 2.0
In plain English
A low-severity security flaw in CPython from Python Software Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 42% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.21 | python3 | 3.12.14-r0 | ALPINE-CVE-2026-4360 |
| Alpine:v3.22 | python3 | 3.12.14-r0 | ALPINE-CVE-2026-4360 |
| Alpine:v3.23 | python3 | 3.12.14-r0 | ALPINE-CVE-2026-4360 |
| Alpine:v3.24 | python3 | 3.14.7-r0 | ALPINE-CVE-2026-4360 |
| Debian:13 | pypy3 | no fix listed | DEBIAN-CVE-2026-4360 |
| Debian:14 | pypy3 | 8.0.0+dfsg-1 | DEBIAN-CVE-2026-4360 |
| Debian:13 | python3.13 | 3.13.5-2+deb13u5 | DEBIAN-CVE-2026-4360 |
| Debian:14 | python3.14 | 3.14.7-1 | DEBIAN-CVE-2026-4360 |
| Ubuntu:22.04:LTS | python3.10 | 3.10.12-1~22.04.18 | USN-8744-1 |
| Ubuntu:22.04:LTS | python3.10 | 3.10.12-1~22.04.18 | UBUNTU-CVE-2026-4360 |
| Ubuntu:24.04:LTS | python3.12 | 3.12.3-1ubuntu0.17 | USN-8744-1 |
| Ubuntu:24.04:LTS | python3.12 | 3.12.3-1ubuntu0.17 | UBUNTU-CVE-2026-4360 |
| Ubuntu:25.10 | python3.13 | no fix listed | UBUNTU-CVE-2026-4360 |
| Ubuntu:25.10 | python3.14 | no fix listed | UBUNTU-CVE-2026-4360 |
| Ubuntu:26.04:LTS | python3.14 | 3.14.4-1ubuntu0.2 | UBUNTU-CVE-2026-4360 |
| Ubuntu:26.04:LTS | python3.14 | 3.14.4-1ubuntu0.2 | USN-8744-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Python Software Foundation | CPython | 0 – before 3.10.213.11.0 – before 3.11.163.12.0 – before 3.12.143.13.0 – before 3.13.153.14.0 – before 3.14.73.15.0a1 – before 3.15.0b4 |
Weakness: CWE-281 · 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
References
- https://mail.python.org/archives/list/security-announce@python.org/thread/TWZW2PC2AZOV6FENIHFSRC63OM7MBGSB/ vendor-advisory
- https://github.com/python/cpython/pull/151988 patch
- https://github.com/python/cpython/issues/151987 issue-tracking
- https://github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0 patch
- https://github.com/python/cpython/commit/7b57e8d51446297b8c7c482d224bc5f1938e4301 patch
- https://github.com/python/cpython/commit/7ccdbaba2c54250a70d7f25632152df7655a5e0a patch
- https://github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15e patch
- https://github.com/python/cpython/commit/d2b2f5eacab4dd48446b63340613b05dcbbf0b44 patch
- https://github.com/python/cpython/commit/cf23b9153181062150d061468b6d24af33fe214f patch
- https://github.com/python/cpython/commit/0367912be336348b30572f8029cec4a282782d92 patch