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

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2022-21668— Pipenv 命令注入漏洞

一分钟漏洞结论

影响对象
pypa pipenv
利用判断
存在公开或 AI PoC,应优先验证
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

Pipenv是一个工具,旨在将所有打包世界中最好的(打包程序、作曲家、npm、货物、纱线等)带到 Python 世界。 pipenv 存在命令注入漏洞,该漏洞源于允许攻击者在 requirements.txt 文件中的任何位置的注释中插入特制字符串,这将导致使用 pipenv 的受害者安装需求文件以从攻击者控制的包索引服务器下载依赖项。通过在恶意索引服务器提供的包中嵌入恶意代码,攻击者可以在受害者的系统上触发任意远程代码执行 (RCE)。

CVSS 8.0 · High EPSS 3.93% · P91
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2022-21668 基础信息

漏洞信息

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

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

Vulnerability Title
Pipenv's requirements.txt parsing allows malicious index url in comments
来源: CVE Program / CVE List V5
Vulnerability Description
pipenv is a Python development workflow tool. Starting with version 2018.10.9 and prior to version 2022.1.8, a flaw in pipenv's parsing of requirements files allows an attacker to insert a specially crafted string inside a comment anywhere within a requirements.txt file, which will cause victims who use pipenv to install the requirements file to download dependencies from a package index server controlled by the attacker. By embedding malicious code in packages served from their malicious index server, the attacker can trigger arbitrary remote code execution (RCE) on the victims' systems. If an attacker is able to hide a malicious `--index-url` option in a requirements file that a victim installs with pipenv, the attacker can embed arbitrary malicious code in packages served from their malicious index server that will be executed on the victim's host during installation (remote code execution/RCE). When pip installs from a source distribution, any code in the setup.py is executed by the install process. This issue is patched in version 2022.1.8. The GitHub Security Advisory contains more information about this vulnerability.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H
来源: CVE Program / CVE List V5
Vulnerability Type
输入验证不恰当
来源: CVE Program / CVE List V5
Vulnerability Title
Pipenv 命令注入漏洞
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Description
Pipenv是一个工具,旨在将所有打包世界中最好的(打包程序、作曲家、npm、货物、纱线等)带到 Python 世界。 pipenv 存在命令注入漏洞,该漏洞源于允许攻击者在 requirements.txt 文件中的任何位置的注释中插入特制字符串,这将导致使用 pipenv 的受害者安装需求文件以从攻击者控制的包索引服务器下载依赖项。通过在恶意索引服务器提供的包中嵌入恶意代码,攻击者可以在受害者的系统上触发任意远程代码执行 (RCE)。
来源: 中国国家信息安全漏洞库 CNNVD
CVSS Information
N/A
来源: 中国国家信息安全漏洞库 CNNVD
Vulnerability Type
N/A
来源: 中国国家信息安全漏洞库 CNNVD

受影响产品

厂商 产品 影响版本 CPE 订阅
pypa pipenv >= 2018.10.9, < 2022.1.8 -

二、漏洞 CVE-2022-21668 的公开POC

# POC 描述 源链接 神龙链接
1 None https://github.com/sreeram281997/CVE-2022-21668-Pipenv-RCE-vulnerability POC详情
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2022-21668 的情报信息

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

CVE-2022-21668 补丁与修复 (1)

CVE-2022-21668 厂商安全公告 (1)

CVE-2022-21668 邮件列表归档 (3)

CVE-2022-21668 其他参考 (1)

IV. Related Vulnerabilities