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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-19672— tarfile extraction filter bypass allows creation of directories outside the destination

Quick assessment

Affected
Python Software Foundation CPython
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

tarfile 模块中的 tar 和数据提取过滤器在处理成员名称脱离目标目录后又重新进入的目录(例如 )时,会在目标目录外部创建目录。该过滤器使用的安全检查基于解析后的路径,但中间目录却是按照成员名称原始给定的方式创建的。 仅在目标目录外部创建空目录。成员文件内容仍然被提取到目标目录内部。要使路径重新回到目标目录,成员名称必须包含目标目录最终组件(即目录名本身),因此,如果将文件提取到一个安全的随机化目录中,则不会受到影响。 此漏洞仅影响 POSIX 平台。在 Windows 上,路径在进入文件系统之前, 组件已被

CVSS 6.3 · Medium EPSS 0.32% · P25

Possible ATT&CK Techniques 1 AI

T1135 · Network Share Discovery

Affected Version Matrix 1

VendorProduct Version RangeStatus
Python Software Foundation CPython < 3.16.0 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-19672

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 creation of directories outside the destination
Source: CVE Program / CVE List V5
Vulnerability Description
The tarfile module's tar and data extraction filters created directories outside the destination for members whose name leaves the destination and returns to it, such as ../evil/../dest/sub/file. The containment check used the resolved path, but intermediate directories were created from the name as given. Only empty directories are created outside the destination. Member contents are still extracted inside it. To return to the destination the member's name must contain the destination directory's own final component, so extraction into a secure randomised directory is not affected. This affects POSIX platforms only. On Windows, .. components are collapsed before the path reaches the filesystem, so the directories outside the destination are never created.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:N/SI:L/SA:N
Source: CVE Program / CVE List V5
Vulnerability Type
N/A
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
Python Software Foundation CPython 0 ~ 3.16.0 -

II. Public POCs for CVE-2026-19672

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-19672

登录查看更多情报信息。

Patches & Fixes for CVE-2026-19672 (1)

Vendor Advisories for CVE-2026-19672 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-19672

No comments yet


Leave a comment