目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-115791— gzip/tarfile/zipfile 提取时标准库遮蔽漏洞

一分钟漏洞结论

影响对象
Python Software Foundation CPython
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

当使用 或 的命令行界面(CLI)解压归档文件时,可能会创建一个与 Python 标准库同名的脚本文件。如果在解压后续文件时发生错误,该新创建的 Python 脚本将被执行。这种情况在生成的脚本名为 时尤为危险。问题的根源在于:当执行 时,Python 会将当前目录添加到 中,而归档文件也正是解压到当前目录,从而导致攻击者可以通过恶意文件“遮蔽”(shadow)标准库模块。 修复方案是在 、 和 的命令行界面中移除 ,从而防止从归档文件中提取的文件遮蔽标准库模块。

CVSS 5.3 · Medium
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-115791 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Prevent shadowing stdlib in gzip/tarfile/zipfile CLI during extraction
来源: CVE Program / CVE List V5
Vulnerability Description
When tarfile or zipfile command line interface (CLI) is used to decompress an archive, a Python script shadowing the stdlib can be created. Then if an error occurs during decompressing the next file, the newly created Python script is executed. This is especially true if the created Python is called traceback.py. The problem is that Python adds the current directory to sys.path when python -m MODULE is run, and the archive is also decompressed in the current directory. The fix removes sys.path[0] in gzip, tarfile and zipfile command line interface to prevent shadowing standard library modules from extracted files.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:4.0/AV:L/AC:L/AT:P/PR:L/UI:A/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N
来源: CVE Program / CVE List V5
Vulnerability Type
N/A
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
Python Software Foundation CPython 0 ~ 3.16.0 -

二、漏洞 CVE-2026-115791 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-115791 的情报信息

请登录查看更多情报信息。

CVE-2026-115791 其他参考 (3)

IV. Related Vulnerabilities