CVE Tools

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.

Check it yourself

OpenVAS · 81 checks

e.g. OID 1.3.6.1.4.1.25623.1.0.180264

Run the check

Published Updated Sources: CVE.org, NVD

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

Check it yourselfA free OpenVAS check exists for this CVE. Run it against your hosts.
Is your organisation exposed?Request a free pilot to establish which checks fit your systems.

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.

EPSS52nd
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.

  1. Record updated
  2. Record updated
  3. Record updated
  4. Record updated
  5. Record updatedrecord updated
  6. Record updated

Affected products

Technical detail

CVSS: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

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 articles

Watch 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.