CVE-2026-11940
tarfile extraction filter bypass allows escaping the destination directory
CVE-2026-11940 is a path traversal in Python Software Foundation CPython (CVSS 7.8, High).
No known exploitation. EPSS puts it in the 52nd percentile. Fixed versions are out.
No public exploit knownFix1 product4 fixed builds listed below
e.g. OID 1.3.6.1.4.1.25623.1.0.180264
What to do
Find your product and version, then upgrade to the build on the right.
- Python Software Foundation CPythonAffected: < 3.10.21Upgrade to: 3.10.21Affected: ≥ 3.11.0, < 3.11.16Upgrade to: 3.11.16Affected: ≥ 3.12.0, < 3.12.14Upgrade to: 3.12.14Affected: ≥ 3.13.0, < 3.13.15Upgrade to: 3.13.15 + 2 more branchesStated by: CVE record
Versions as the sources state them. Full version matrix after sign-in
SeguriScan is made by IntruForce, a cybersecurity company in Madrid, Spain. Links open intruforce.com.
What it is
From the CVE record
tarfile.extractall() with the 'data' or 'tar' filter could be bypassed by a crafted archive where a hardlink references a symlink stored at a deeper name than the hardlink itself. The extraction fallback validated the symlink at it's archived location but recreated it at the hardlink's shallower path, letting a relative target the filter judged contained escape the destination directory. This allowed a malicious tar archive to create a symlink pointing outside the destination, enabling out-of-destination file reads or writes. This was an incomplete fix of CVE-2025-4330.
In plain language
No plain-language summary for this CVE yet.
Exploitation
Where each signal puts this CVE on the scale from published to confirmed exploited.
- CISA KEV
Not in the catalog. CISA has not confirmed exploitation.
- Public exploits
No public exploit or proof of concept found in the sources we track.
- EPSS
0.8% chance of exploitation activity in the next 30 days, which ranks it in the 52nd percentile of scored CVEs.
Exploit Prediction Scoring System, FIRST.org. A probability, not a confirmation.
Lifecycle
12 events over 125 days, from the signal feeds we watch.
- Record updated
- Record updated
- Record updated
- Record updated
- Record updatedrecord updated
- Record updated
Affected products
Technical detail
CVSS 4.0 vector
Open in the CVSS calculatorCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
Scored 7.8 by the CNA.
How it is reached
- Attack Vector NetworkExploitable remotely over the network without any special conditions
- Attack Complexity LowNo special conditions — the attack can be reliably reproduced
- Privileges Required NoneNo authentication required — anyone can exploit this
- User Interaction NoneNo user interaction needed — fully automated exploitation
Weaknesses
ATT&CK techniques
Mapped from the weaknesses above (CWE to ATT&CK), not observed in attacks.
Sources
References in the record
- github.com/python/cpython/pull/151559
- mail.python.org/archives/list/security-announce@python.org/thread/LD6QIISNQFQYOIEPJNEUIPV7S3V76FZH/
- github.com/python/cpython/issues/151558
And 7 more references. See all after sign-in
In the news
Questions about CVE-2026-11940
- Is CVE-2026-11940 being exploited?
- No exploitation is confirmed and no public exploit is known. EPSS puts the chance of exploitation in the next 30 days at 0.8%.
- Which versions are affected by CVE-2026-11940?
- CPython: < 3.10.21; ≥ 3.11.0, < 3.11.16; ≥ 3.12.0, < 3.12.14.
- How do I fix or mitigate CVE-2026-11940?
- Upgrade to a fixed build for your product branch: 3.10.21, 3.11.16, 3.12.14, 3.13.15.
Last updated
Related articles
All articlesWatch the software you run.
My Stack ranks new CVEs for your products by real-world exploitation, so the next serious one reaches you without reading every advisory.
We'll flag the next CVE, public exploit or patch for CPython, not every advisory.
A free account adds
- The full version matrix and every affected product
- Exploit links, proofs of concept and Metasploit modules
- Email alerts for the products you watch
- The same data over REST API, MCP and CLI