CVE-2026-11940: tarfile extraction filter bypass allows escaping the destination directory
Vulnerability summary
CVE-2026-11940 is a high (CVSS 7.8) vulnerability in python software foundation cpython. EPSS estimates a 0.75% chance of exploitation in the next 30 days, higher than 55% of scored vulnerabilities.
Severe, CVSS 7.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 03-11-2026)
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 33 · Related 26Timeline
- 23-06-2026PublishedVulnerability first disclosed.
- 13-08-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
8 scores · 8 sources · 2 versions- OSV · AlpineEcosystem advisory · calculated7.8HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/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
- OSV · UbuntuEcosystem advisory · calculated7.8HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
- OSV · DebianEcosystem advisory · calculated7.8HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/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
- OSV · WolfiEcosystem advisory · calculated7.8HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
- OSV · ChainguardEcosystem advisory · calculated7.8HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N
- NVDNIST7.8HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:H/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
EPSS trend
Probability
0.75%
Chance of exploitation in the next 30 days
Percentile
55%
Versus all other CVEs
30-day change
No change 0.00 pp
From 0.75% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root cause- CWE-22Improper Limitation of a Pathname to a Restricted DirectoryThe product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.
- CWE-59Improper Link Resolution Before File AccessThe 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.
Affected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Redhat42 products
- platform-python< 0:3.6.8-78.el8_10 | < 0:3.6.8-51.el8_8.17 | < 0:3.6.8-47.el8_6.15
- platform-python-debug< 0:3.6.8-78.el8_10 | < 0:3.6.8-51.el8_8.17 | < 0:3.6.8-47.el8_6.15
- platform-python-devel< 0:3.6.8-78.el8_10 | < 0:3.6.8-51.el8_8.17 | < 0:3.6.8-47.el8_6.15
- python-unversioned-command< 0:3.9.25-7.el9_8.3 | < 0:3.12.14-1.el10_2 | < 0:3.12.9-2.el10_0.11
- python3< 0:3.9.25-7.el9_8.3 | < 0:3.6.8-78.el8_10 | < 0:3.12.14-1.el10_2 | < 0:3.12.9-2.el10_0.11 | < 0:3.6.8-51.el8_8.17 | < 0:3.6.8-47.el8_6.15
Ubuntu13 products
- pypy3All versions (No fix recorded)
- python2.7All versions (No fix recorded)
- python3.10All versions (No fix recorded)
- python3.11All versions (No fix recorded)
- python3.12All versions (No fix recorded)
Chainguard5 products
- python-3.10< 3.10.20-r10
- python-3.11< 3.11.15-r8
- python-3.12< 3.12.13-r10
- python-3.13< 3.13.14-r2
- python-3.14< 3.14.6-r3
Wolfi5 products
- python-3.10< 3.10.20-r10
- python-3.11< 3.11.15-r8
- python-3.12< 3.12.13-r10
- python-3.13< 3.13.14-r2
- python-3.14< 3.14.6-r3
Debian4 products
- pypy3All versions (No fix recorded) | < 8.0.0+dfsg-1
- python3.11All versions (No fix recorded)
- python3.13< 3.13.15-1 | < 3.13.5-2+deb13u5
- python3.14< 3.14.7-1
Opensuse2 products
- python314&distro=openSUSE Tumbleweed< 3.14.6-2.1
- python315&distro=openSUSE Tumbleweed< 3.15.0~b3-2.1
Alpine1 product
- python3< 3.12.14-r0 | < 3.14.7-r0
Python software foundation1 product
- cpython< 3.10.21 | ≥ 3.11.0, < 3.11.16 | ≥ 3.12.0, < 3.12.14 | ≥ 3.13.0, < 3.13.15 | ≥ 3.14.0, < 3.14.7 | ≥ 3.15.0a1, < 3.15.0b4
8 vendors · 73 products
References
45 links- mail.python.org/archives/list/security-announce@python.org/thread/LD6QIISNQFQYOIEPJNEUIPV7S3V76FZH/Vendor AdvisoryARTICLEAdvisory
Show all 45 references
- github.com/python/cpythonPACKAGE