Key Information:
- Vendor
Python Software Foundation
- Status
- Cpython
- CVE ID
- CVE ID:
- CVE-2026-11940
- Vendor
- CVE Published:
- 23 June 2026
- Fixed in
- Fixed in:
- 3.10.21, 3.11.16, 3.12.14 +3 more
Timeline
Vulnerability published
Vulnerability Reserved
How risky is it?
- Yes: Works over the network, no login needed
- No: No public exploit yet
- No: Not on CISA's exploited list
- No: No ransomware use seen
Our verdict
Check today
Find out if you're affected. If you are, patch.
What to do
1Update to a fixed version
Install the CPython release that fixes your version line, or later:
2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach CPython. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Why it's rated "Check today"
- It can be exploited remotely without credentials.
- Its CVSS severity is high (7.8).
What is CVE-2026-11940?
CVE-2026-11940 is a vulnerability in the tarfile module of Python's Cpython. It occurs when the tarfile.extractall() function is used with the 'data' or 'tar' filter. An attacker can craft a malicious tar archive that contains a hardlink referencing a symlink stored at a deeper path. This allows the symlink to be recreated at a shallower path, potentially enabling the extraction of files outside the intended destination directory.
This vulnerability is an incomplete fix of CVE-2025-4330, indicating that previous mitigations did not fully address the issue.
Potential Impact of CVE-2026-11940
- Unauthorized file access: An attacker can create a symlink that points outside the destination directory, allowing access to files that should be restricted.
References
More Python Software Foundation Vulnerabilities
Security Flaw in Python's SSL Module Affecting Certificate Management
Arbitrary Filesystem Write Vulnerability in Python Tarfile Module
Memory Exhaustion Risk in Python's asyncio Module on macOS and Linux
Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction
