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 Assigner: [email protected] ソース: [email protected]

総合評価: CVE-2022-36070 は低リスク(39.7/100)。CVSS 深刻度は高。悪用される可能性が高い(EPSS 0.11%、31 パーセンタイル) 推奨対応: 悪用情報と EPSS の推移を監視し、必要に応じて優先度を見直してください。

リスクは変動します。再評価に基づき、本ページの表示内容を更新しています。

CVE-2022-36070 の EPSS(Exploit Prediction Scoring System)スコア

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(Common Vulnerability Scoring System)指標

この 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 Security Advisory

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