Symlink Vulnerability in Python's tarfile Module

7.8HIGH

CVE-2026-11940

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
CPython 0 to below 3.10.21 is vulnerable
CPython 3.11.0 to below 3.11.16 is vulnerable
CPython 3.12.0 to below 3.12.14 is vulnerable
CPython 3.13.0 to below 3.13.15 is vulnerable
CPython 3.14.0 to below 3.14.7 is vulnerable
CPython 3.15.0a1 to below 3.15.0b4 is vulnerable

Install the CPython release that fixes your version line, or later:

3.10.213.11.163.12.143.13.153.14.73.15.0b4
Read the vendor advisory ↗
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

  1. Unauthorized file access: An attacker can create a symlink that points outside the destination directory, allowing access to files that should be restricted.

References

Security Flaw in Python's SSL Module Affecting Certificate Management

CVE-2026-115557
Python Software F...Cpython😄9.4CRITICAL

Arbitrary Filesystem Write Vulnerability in Python Tarfile Module

CVE-2025-4517
Python Software F...Cpython👾9.4CRITICAL

Memory Exhaustion Risk in Python's asyncio Module on macOS and Linux

CVE-2024-12254
Python Software F...Cpython👾8.7HIGH
View more Python Software Foundation vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities · Report a correction

CVSS V4

Score:
7.8
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Credit

Haruki Oyama (https://github.com/harukioya)
Stan Ulbrych (https://github.com/StanFromIreland)
Petr Viktorin (https://github.com/encukou)
.