Tarfile.extract() doesn't fully respect filter parameter
CVE-2026-4360Published 30 Jun 2026, 14:45 UTC
Real-world risk
0.2/ 10Low
Routine
If the vulnerable configuration applies to you: 0.4
PreliminaryFrom the CVSS vector only · confidence low
CVSS
2.0
scored by the vendor (CNA), CVSS 4.0
In plain words
No plain-language summary yet. The original description is below.
Original description (from PSF)
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.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| CPythonUbiquitous | < 3.10.21; >= 3.11.0, < 3.11.16; >= 3.12.0, < 3.12.14; >= 3.13.0, < 3.13.15; >= 3.14.0, < 3.14.7; >= 3.15.0a1, < 3.15.0b4 | 3.10.21, 3.11.16, 3.12.14, 3.13.15, 3.14.7, 3.15.0b4 |
What to do
Update to a fixed version: 3.10.21, 3.11.16, 3.12.14, 3.13.15, 3.14.7, 3.15.0b4.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | MinorReflected XSS, CSRF with low effect, open redirect, minor leak | From the CVSS vector | 0.30 |
| Attacker position | InternetAnyone on the Internet can reach a typical deployment | From the CVSS vector | 1.00 |
| Privileges needed | HighAdmin or equivalent | From the CVSS vector | 0.20 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | UncommonNeeds a non-default feature that a minority enables | From the CVSS vector | 0.45 |
| Reliability | ReliableDeterministic: injection, logic bug, path traversal | From the CVSS vector | 1.00 |
Threat level T1: Nothing known (× 0.85)
The default for a new disclosure
EPSS 0.3% chance of exploitation in 30 days (percentile 22), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.063
- Threat T1: Nothing known0.850
- 10 × impact 0.3 × prerequisites 0.063 × threat 0.850.161
- Rounded to one decimal between 0.1 and 100.2
Exploitation and evidence timeline
- 30 Jun 2026 Published
- 3 Dec 2026 Risk 0.2 (cvss fallback)
Weakness
CWE-281
References
- https://mail.python.org/archives/list/[email protected]/thread/TWZW2PC2AZOV6FENIHFSRC63OM7MBGSB/vendor-advisory
- https://github.com/python/cpython/pull/151988patch
- https://github.com/python/cpython/issues/151987issue-tracking
- https://github.com/python/cpython/commit/5e0ef3f1afe892e4f64eb83368db57ac4c40cba0patch
- https://github.com/python/cpython/commit/7b57e8d51446297b8c7c482d224bc5f1938e4301patch
- https://github.com/python/cpython/commit/7ccdbaba2c54250a70d7f25632152df7655a5e0apatch
- https://github.com/python/cpython/commit/eee3ddf0ca10283cc7fea724aae9cd8665f8d15epatch
- https://github.com/python/cpython/commit/d2b2f5eacab4dd48446b63340613b05dcbbf0b44patch
- https://github.com/python/cpython/commit/cf23b9153181062150d061468b6d24af33fe214fpatch
- https://github.com/python/cpython/commit/0367912be336348b30572f8029cec4a282782d92patch
- CVE-2026-4360 on CVE.org