Zero Day MonitorZDM
DashboardVulnerabilitiesTrendingZero-DaysNewsAbout
Login
ImpressumPrivacy Policy
Zero Day Monitor © 2026
3445 articles · 168099 vulns · 36/41 feeds (7d)
← Back to list
—
CVE-2026-11940PATCHED
python software foundation · python

tarfile extraction filter bypass allows escaping the destination directory

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.

Affected Products

VendorProductVersions
python software foundationpython0

Also Affects

Downstream vendors/products affected by this vulnerability

VendorProductSourceConfidence
open sourcepythoncert_advisory90%

References

  • https://github.com/python/cpython/pull/151559(patch)
  • https://mail.python.org/archives/list/security-announce@python.org/thread/LD6QIISNQFQYOIEPJNEUIPV7S3V76FZH/(vendor-advisory)
  • https://github.com/python/cpython/issues/151558(issue-tracking)
  • https://github.com/python/cpython/commit/27dd970bf6b17ebca7c8ed486a40ab043ed7af8f(patch)
  • https://github.com/python/cpython/commit/672825e2f36a57e173959b0d9d409d4560dab8df(patch)
  • https://github.com/python/cpython/commit/771d12dda5140313db0ac550292987975651bbde(patch)
  • https://github.com/python/cpython/commit/79c06bd5c6afa3c440d50faf7ee1b147c8832b4c(patch)

Related News (4 articles)

Tier B
CERT-FR3d ago
Multiples vulnérabilités dans CPython (25 juin 2026)
→ No new info (linked only)
Tier B
BSI Advisories4d ago
[NEU] [hoch] CPython: Mehrere Schwachstellen
→ No new info (linked only)
Tier C
VulDB4d ago
CVE-2026-11940 | Python CPython up to 3.14.x Archive tarfile.extractall path traversal (ID 151558)
→ No new info (linked only)
Tier C
oss-security4d ago
[oss-security][CVE-2026-11940] Cpython: tarfile extraction filter bypass allows escaping the destination directory
→ No new info (linked only)
CISA KEV❌ No
Actively exploited❌ No
Patch available
3.16.0
CWECWE-22, CWE-59
PublishedJun 23, 2026
Last enriched4d agov2
Tags
path traversal
Trending Score32
Source articles4
Independent4
Info Completeness8/14
Missing: cvss, epss, kev, exploit, iocs, mitre_attack

Community Vote

0
Login to vote
0 upvotes0 downvotes
No votes yet

Related CVEs (5)

NONECVE-2026-12003EXP
CPython >3.11 Insecure Input Validation resulting in privilege escalation
Trending: 67
NONECVE-2026-11972EXP
tarfile opened in streaming mode mishandles EOF
Trending: 55
NONECVE-2026-0864
Configuration Injection via Carriage Return (\r) in write() method
Trending: 39
NONECVE-2026-9669EXP
bz2.BZ2Decompressor reuse after error can cause a stack buffer overflow
Trending: 14
NONECVE-2026-3276EXP
Potential DoS via quadratic complexity in unicodedata.normalize()
Trending: 11

Pin to Dashboard

Verification

State: verified
Confidence: 0%

Vulnerability Timeline

CVE Published
Jun 23, 2026
Discovered by ZDM
Jun 23, 2026
Patch Available
Jun 23, 2026
Updated: tags
Jun 23, 2026

Version History

v2
Last enriched 4d ago
v2Tier C4d ago

Updated description with critical severity, noted that the vulnerability is actively exploited, and added new tag 'path traversal'.

tags
via VulDB
v14d ago

Initial creation