# 摘要
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 记录(cvelist)中的原文,未经改写。
# 利用条件
按 CVSS 向量说明攻击需要的条件。
- 攻击途径
AV:L - 本地:需要本地或 SSH 会话,或诱使用户在本机上操作
- 攻击复杂度
AC:L - 低:不需要绕过目标特有的安全防护
- 攻击前提
AT:P - 有:依赖特定的部署或运行条件,例如竞态条件、非默认配置或处于网络路径中间
- 所需权限
PR:L - 低:普通用户权限
- 用户交互
UI:A - 主动:须有用户特意执行特定操作,例如安装或运行文件、忽略安全警告
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
CVSS 4.0 向量,来自 CVE 记录,由 CNA PSF 评定。
# 事件记录
+DIS披露
CVE 记录发布,编号分配方是 PSF。CVSS 5.3,中危。
来源 cvelist · 本站 批量导入 · 原始记录
{
"id": 5401,
"type": "disclosed",
"source": "cvelist",
"url": "https://www.cve.org/CVERecord?id=CVE-2026-115791",
"occurred_at": "2026-11-10T16:33:49.36Z",
"observed_at": "2026-11-12T14:10:31.286634Z",
"is_backfill": true,
"dedupe_key": "",
"detail": {
"cvss": {
"source": "cna",
"vector": "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",
"version": "4.0",
"base_score": 5.3,
"base_severity": "MEDIUM"
},
"ssvc": {
"timestamp": "2026-11-10T00:00:00+00:00",
"automatable": "no",
"exploitation": "none",
"technical_impact": "total"
},
"state": "PUBLISHED",
"date_published": "2026-11-10T16:33:49.360Z",
"assigner_short_name": "PSF"
}
}
+ANA技术分析
oss-security 邮件列表发帖:“CPython: [CVE-2026-115791] Prevent shadowing stdlib in gzip/tarfile/zipfile CLI”。
来源
osssec 2026/q4/648 · 本站 实时观测 · 原始记录
{
"id": 496407,
"type": "analysis_published",
"source": "osssec",
"url": "https://seclists.org/oss-sec/2026/q4/648",
"occurred_at": "2026-11-10T22:30:25Z",
"observed_at": "2026-11-20T08:13:28.642196Z",
"is_backfill": false,
"dedupe_key": "2026/q4/648",
"detail": {
"list": "oss-security",
"author": "Alan Coopersmith",
"subject": "CPython: [CVE-2026-115791] Prevent shadowing stdlib in gzip/tarfile/zipfile CLI",
"is_reply": false
}
}
# 纠错
报告错误或缺失
页面有误或缺失?告诉编辑;采纳后在本页修订记录公开说明,上游数据不会被改动。
无法确认登录状态,请刷新页面后再提交纠错。
请先在账号页设置公开用户名:被采纳的纠错会以它署名。
设置用户名
你的账号已被封禁,暂时不能提交纠错。
# 研究员讨论
近 7 天有 0 位研究员提到
研究员在 X 上提到此 CVE 的帖子,原文照录,nday 不核实。
尚未采集到名单内研究员在 X 上提到此 CVE 的帖子。
# 讨论
0 条评论
无法确认你的登录状态,刷新页面后再发表评论。
评论以 @用户名 署名。请先在账号页设置用户名。
前往账号页
你的账号已被封禁,不能发表、回复、编辑或举报评论;仍可删除自己的评论。
格式
↵↵- 空一行:新段落
↵- 换行:原样保留
*…*- 强调(斜体)
**…**- 加粗
`…`- 行内代码
```- 单独一行:开始和结束代码块
> …- 引用
- …- 列表
1. …- 编号列表
[…](https://…)- 链接(仅限 http 和 https)
https://…- 裸地址:自动成为链接
CVE-2026-1234- 链接到本站该漏洞页
\*- 按原样显示该字符
标题、图片、表格、嵌套列表和 HTML 都按纯文本显示。
新账号发的链接显示为纯文本;CVE 编号始终可点击。