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 綜合評估為低風險(37.9/100):CVSS 技術影響為高級,利用機率偏低(EPSS 0.33%) 強制指令: 持續追蹤利用情報與 EPSS 變化,並適時複評優先級。

風險隨態勢動態變化;本站持續評估並同步更新本頁展示內容。

CVE-2022-36070 的 EPSS(利用預測評分)

EPSS 日更估計相對被利用可能性;百分位表示該 CVE 在已評分漏洞中的相對排名(越高表示相對更嚴重)。

# 日期 舊 EPSS 分數 新 EPSS 分數 變化(新 − 舊)
1 2026-06-15 0.11% 0.33% +0.21%
2 2025-10-12 0.33% 0.11% -0.22%
3 2025-09-09 0.33%

完整 EPSS 歷史 (共 10 筆)

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