GHSA-j4j9-7hg9-97g6 · Severity: high · Ecosystem: pip — Poetry vulnerable to Untrusted Search Path leading 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.
Conclusion & alert: CVE-2022-36070 is rated Low Risk (39.7/100): CVSS High severity, with low exploitation likelihood (EPSS 0.11%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 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% | — |
Full EPSS history (9 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 7.3 | 3.1 | HIGH |
|
1.3 | 5.9 | [email protected] |
| 7.3 | 3.1 | HIGH |
|
1.3 | 5.9 | [email protected] |
GHSA-j4j9-7hg9-97g6 · Severity: high · Ecosystem: pip — Poetry vulnerable to Untrusted Search Path leading to Local Code Execution on Windows
| 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 |
| Vendor | Product | Version | Raw 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:*:* |
| URL | Tags |
|---|---|
| https://github.com/python-poetry/poetry/releases/tag/1.1.9 | Release Notes Third Party Advisory |
| https://github.com/python-poetry/poetry/releases/tag/1.2.0b1 | Release Notes Third Party Advisory |
| https://github.com/python-poetry/poetry/security/advisories/GHSA-j4j9-7hg9-97g6 | Third Party Advisory |