tarfile extraction filters allow file modification and content disclosure via hard link to symlink
CVE-2026-82049Published 14 Sep 2026, 19:14 UTC
Real-world risk
2.4/ 10Low
Routine
PreliminaryFrom the CVSS vector only · confidence low
CVSS
8.4
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 CPython 3.13 and earlier, the tarfile module's data and tar extraction filters are vulnerable to crafted archives containing a hard link to a symbolic link. Such archives may cause extraction to modify the permissions or modification time of a file outside the destination directory, or expose the contents of that file within the extracted tree.
Am I affected?
| Product | Affected versions (from the sources) | Fixed in |
|---|---|---|
| CPythonUbiquitous | < 3.10.22; >= 3.11.0, < 3.11.17; >= 3.12.0, < 3.12.15; >= 3.13.0, < 3.13.16; >= 3.14.0a1, < 3.14.0b1 | 3.10.22, 3.11.17, 3.12.15, 3.13.16, 3.14.0b1 |
What to do
Update to a fixed version: 3.10.22, 3.11.17, 3.12.15, 3.13.16, 3.14.0b1.
Why this score
| Factor | Value | Evidence | × |
|---|---|---|---|
| Impact | Major data exposureReads secrets, credentials, databases, arbitrary files | From the CVSS vector | 0.80 |
| Attacker position | LocalMust already run code or have a shell on the machine | From the CVSS vector | 0.50 |
| Privileges needed | NoneNo account | From the CVSS vector | 1.00 |
| Victim interaction | RoutineA normal action: open a file, visit a page, click a link | From the CVSS vector | 0.70 |
| Configuration | DefaultOut-of-the-box installs are vulnerable | From the CVSS vector | 1.00 |
| 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.2% chance of exploitation in 30 days (percentile 9), as of 2026-12-03.
The arithmetic
- Prerequisites multiplied together0.350
- Threat T1: Nothing known0.850
- 10 × impact 0.8 × prerequisites 0.35 × threat 0.852.380
- Rounded to one decimal between 0.1 and 102.4
Exploitation and evidence timeline
- 14 Sep 2026 Published
- 3 Dec 2026 Risk 2.4 (cvss fallback)
Weakness
CWE-59
References
- https://github.com/python/cpython/commit/5a57248b22ad3b9aafcaaadae2c304a1923daecapatch
- https://github.com/python/cpython/issues/157190issue-tracking
- https://github.com/python/cpython/pull/157191patch
- https://mail.python.org/archives/list/[email protected]/thread/EFJWGAZJA56AKSBR2WHMHQZO7RRLZPRH/vendor-advisory
- https://github.com/python/cpython/commit/b38be2e6cf9d989075ab73412c63e003ebad4ff3patch
- https://github.com/python/cpython/commit/b8f23e307097552eaea2604383a12ab280520d0dpatch
- https://github.com/python/cpython/commit/197663d63afed27f66e10e23c194e8a634e60913patch
- https://github.com/python/cpython/commit/28f315486b3da0352b9a1de1c3c97f4127ba4771patch
- https://github.com/python/cpython/commit/c66df4e70435d257fd488b35ea129c6f317433a8patch
- https://github.com/python/cpython/commit/cc1689830c6b9aaddded2fb9f2fe8116867e2c0epatch
- https://github.com/python/cpython/commit/cccc7ec30212dba2abef53ce4a2bed112ddb690cpatch
- http://www.openwall.com/lists/oss-security/2026/09/14/27
- CVE-2026-82049 on CVE.org