CPython: Improper Link Resolution Before File Access
CVE-2026-82049 is a high-severity improper link resolution before file access vulnerability in CPython from Python Software Foundation, with a CVSS 4.0 base score of 8.4 out of 10. It can be exploited with local access to the system by an unauthenticated attacker, but only if a user takes part, for example by opening a link or file. The record lists versions 3.10.22, 3.11.17, 3.12.15 as the first without the flaw, so updating CPython to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.19% chance of exploitation within 30 days, which is low compared with other CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update CPython to 3.10.22 or 3.11.17 or 3.12.15 or 3.13.16, whichever matches your release line, or a later version.
- Because the attack needs a user to take part, warn users about unexpected links and files related to this product until it is patched.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Python Software Foundation | CPython | before 3.10.22; 3.11.0 up to, but not including, 3.11.17; 3.12.0 up to, but not including, 3.12.15; 3.13.0 up to, but not including, 3.13.16; 3.14.0a1 up to, but not including, 3.14.0b1 | 3.10.22, 3.11.17, 3.12.15, 3.13.16, 3.14.0b1 |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- LocalThe attacker needs local access or must trick a user into running something.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Attack requirements
- NoneThe attack does not depend on a particular deployment or configuration.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- PassiveA user only needs to do something routine, such as viewing a page.
- Confidentiality (vulnerable system)
- HighSerious loss of confidentiality on the vulnerable system.
- Integrity (vulnerable system)
- HighSerious loss of integrity on the vulnerable system.
- Availability (vulnerable system)
- NoneNo loss of availability on the vulnerable system.
- Confidentiality (other systems)
- NoneNo loss of confidentiality on systems beyond the vulnerable one.
- Integrity (other systems)
- NoneNo loss of integrity on systems beyond the vulnerable one.
- Availability (other systems)
- NoneNo loss of availability on systems beyond the vulnerable one.
Vector: CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X. Scored by CNA (python.org).
Official description
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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Improper Link Resolution Before File Access
The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
How developers prevent this class of flaw
- Follow the principle of least privilege when assigning access rights to entities in a software system. Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.
More Improper Link Resolution Before File Access vulnerabilities (CWE-59)
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Patches and release notes
- github.com/python/cpython/commit/197663d63afed27f66e10e23c194e8a634e60913
- github.com/python/cpython/commit/28f315486b3da0352b9a1de1c3c97f4127ba4771
- github.com/python/cpython/commit/5a57248b22ad3b9aafcaaadae2c304a1923daeca
- github.com/python/cpython/commit/b38be2e6cf9d989075ab73412c63e003ebad4ff3
- github.com/python/cpython/commit/b8f23e307097552eaea2604383a12ab280520d0d
- github.com/python/cpython/commit/c66df4e70435d257fd488b35ea129c6f317433a8
- github.com/python/cpython/commit/cc1689830c6b9aaddded2fb9f2fe8116867e2c0e
- github.com/python/cpython/commit/cccc7ec30212dba2abef53ce4a2bed112ddb690c
- github.com/python/cpython/pull/157191
Other references
Other vulnerabilities in CPython
- 8.2 High severity
- 9.4 Critical severity
- 7.6 High severity
- 9.2 Critical severity
- 7.5 High severity
- 8.2 High severity
Recent Improper Link Resolution Before File Access vulnerabilities
- 8.4 High severity
- 7.1 High severity
- 8.8 High severity
- 7.0 High severity
- 7.8 High severity
Microsoft Windows Link Following Exploited
- 7.8 High severity
Spotted an error? Tell us.