CVE-2022-36070 | Poetry's Untrusted Search Path can lead to Local Code Execution on Windows

Poetry is a dependency manager for Python. To handle dependencies that come from a Git repository, Poetry executes various commands, e.g. `git config`. These commands are being executed using the executable’s name and not its absolute path. This can lead to the execution of untrusted code due to the way Windows resolves executable names to paths. Unlike Linux-based operating systems, Windows searches for the executable in the current directory first and looks in the paths that are defined in the `PATH` environment variable afterward. This vulnerability can lead to Arbitrary Code Execution, which would lead to the takeover of the system. If a developer is exploited, the attacker could steal credentials or persist their access. If the exploit happens on a server, the attackers could use their access to attack other internal systems. Since this vulnerability requires a fair amount of user interaction, it is not as dangerous as a remotely exploitable one. However, it still puts developers at risk when dealing with untrusted files in a way they think is safe. The victim could also not protect themself by vetting any Git or Poetry config files that might be present in the directory, because the behavior is undocumented. Versions 1.1.9 and 1.2.0b1 contain patches for this issue.

公开: 2022-09-07 最后更新: 2024-11-21 分配方: [email protected] 来源: [email protected]

结论预警: CVE-2022-36070 综合评估为低风险(39.7/100):CVSS 技术影响为高级,利用概率偏低(EPSS 0.11%) 强制指令: 持续跟踪利用情报与 EPSS 变化,并适时复评优先级。

风险随态势动态变化;本站持续评估并同步更新本页展示内容。

CVE-2022-36070 的 EPSS(利用预测评分)

EPSS 日更估计相对被利用可能性;百分位表示该 CVE 在已评分漏洞中的相对排名(越高表示相对更严重)。

# 日期 旧 EPSS 分数 新 EPSS 分数 变化(新 − 旧)
1 2025-10-12 0.33% 0.11% -0.22%
2 2025-09-09 0.35% 0.33% -0.02%
3 2025-09-08 0.35%

完整 EPSS 历史 (共 9 条)

CVE-2022-36070 的 CVSS 指标

该 CVE 的 CVSS 指标。

底座分 版本 严重度 向量 可利用性 影响 分数来源
7.3 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H 点击展开
攻击向量 (AV:L)
需要先拿到目标主机上的执行面,或依赖其他用户误操作/恶意操作来触发。
攻击复杂度 (AC:L)
前置条件清晰,成功路径稳定,不依赖罕见竞态或苛刻环境。
权限要求 (PR:L)
一般用户权限即可,不必是管理员或 root。
用户交互 (UI:R)
需要一次明确的用户动作(安装、改配置、打开恶意文档等)才会落地。
作用域 (S:U)
破坏局限在脆弱组件原本的安全权限与信任域之内。
机密性影响 (C:H)
批量读取、导出或长期潜伏窃取机密数据,在实战上成立。
完整性影响 (I:H)
可篡改审计日志、植入后门或大面积伪造业务数据,动摇信任根基。
可用性影响 (A:H)
可造成长时间中断、关键事务无法完成,或伴随数据损毁导致难以自愈。
1.3 5.9 [email protected]
7.3 3.1 HIGH
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H 点击展开
攻击向量 (AV:L)
需要先拿到目标主机上的执行面,或依赖其他用户误操作/恶意操作来触发。
攻击复杂度 (AC:L)
前置条件清晰,成功路径稳定,不依赖罕见竞态或苛刻环境。
权限要求 (PR:L)
一般用户权限即可,不必是管理员或 root。
用户交互 (UI:R)
需要一次明确的用户动作(安装、改配置、打开恶意文档等)才会落地。
作用域 (S:U)
破坏局限在脆弱组件原本的安全权限与信任域之内。
机密性影响 (C:H)
批量读取、导出或长期潜伏窃取机密数据,在实战上成立。
完整性影响 (I:H)
可篡改审计日志、植入后门或大面积伪造业务数据,动摇信任根基。
可用性影响 (A:H)
可造成长时间中断、关键事务无法完成,或伴随数据损毁导致难以自愈。
1.3 5.9 [email protected]

CVE-2022-36070 的弱点枚举

CVE-2022-36070 的 GitHub 安全公告

GHSA-j4j9-7hg9-97g6 · 严重度: high · 生态: pip — Poetry vulnerable to Untrusted Search Path leading to Local Code Execution on Windows

CVE-2022-36070 的 OS 跟踪

vendor priority summary link
debian unimportant CVE-2022-36070 unimportant priority: Debian including 1 source packages (poetry-core), 4 status rows across 4 suites (bookworm, forky, sid, trixie): resolved 4. https://security-tracker.debian.org/tracker/CVE-2022-36070
ubuntu medium CVE-2022-36070 medium priority: Ubuntu including 1 source packages (poetry), 6 status rows across 6 suites (bionic, focal, jammy, trusty, upstream, xenial): DNE 2, ignored 2, not-affected 2. https://ubuntu.com/security/CVE-2022-36070

CVE-2022-36070 的影响软件 / 配置

厂商 产品 版本 原始 CPE
python-poetry poetry < 1.1.9 cpe:2.3:a:python-poetry:poetry:*:*:*:*:*:python:*:*
python-poetry poetry 1.2.0 cpe:2.3:a:python-poetry:poetry:1.2.0:alpha1:*:*:*:python:*:*
python-poetry poetry 1.2.0 cpe:2.3:a:python-poetry:poetry:1.2.0:alpha2:*:*:*:python:*:*

CVE-2022-36070 的参考链接

cvelogic Threat Intelligence