Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-11940— tarfile extraction filter bypass allows escaping the destination directory

EPSS 0.60% · P44
Get alerts for future matching vulnerabilitiesLog in to subscribe

I. Basic Information for CVE-2026-11940

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
tarfile extraction filter bypass allows escaping the destination directory
Source: NVD (National Vulnerability Database)
Vulnerability 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.
Source: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
对路径名的限制不恰当(路径遍历)
Source: NVD (National Vulnerability Database)

Affected Products

VendorProductAffected VersionsCPESubscribe
Python Software FoundationCPython 0 ~ 3.15.0 -

II. Public POCs for CVE-2026-11940

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-11940

登录查看更多情报信息。

Other References for CVE-2026-11940 (7)

Same Patch Batch · Python Software Foundation · 2026-06-23 · 3 CVEs total

CVE-2026-0864Configuration Injection via Carriage Return (\r) in write() method
CVE-2026-11972tarfile opened in streaming mode mishandles EOF

IV. Related Vulnerabilities

V. Comments for CVE-2026-11940

No comments yet


Leave a comment