{"cve":"CVE-2022-36069","nvd":{"published":"2022-09-07T19:15:08.563","modified":"2026-06-17T04:52:51.127","status":"Modified","description":"Poetry is a dependency manager for Python. When handling dependencies that come from a Git repository instead of a registry, Poetry uses various commands, such as `git clone`. These commands are constructed using user input (e.g. the repository URL). When building the commands, Poetry correctly avoids Command Injection vulnerabilities by passing an array of arguments instead of a command string. However, there is the possibility that a user input starts with a dash (`-`) and is therefore treated as an optional argument instead of a positional one. This can lead to Code Execution because some of the commands have options that can be leveraged to run arbitrary executables. 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, because the exploit still works when the victim tries to make sure nothing can happen, e.g. by vetting any Git or Poetry config files that might be present in the directory. Versions 1.1.9 and 1.2.0b1 contain patches for this issue.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","score":7.3},"cwes":["CWE-88","CWE-94"],"references":["https://github.com/python-poetry/poetry/releases/tag/1.1.9","https://github.com/python-poetry/poetry/releases/tag/1.2.0b1","https://github.com/python-poetry/poetry/security/advisories/GHSA-9xgj-fcgf-x6mw","https://www.sonarsource.com/blog/securing-developer-tools-package-managers/","https://github.com/python-poetry/poetry/releases/tag/1.1.9"],"products":["python-poetry:poetry"],"source":"nvd","synced_at":"2026-10-19T21:35:14.992143698+00:00"},"epss":{"cve":"CVE-2022-36069","score":0.01357,"percentile":0.71656,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-9xgj-fcgf-x6mw","url":"https://osv.dev/vulnerability/GHSA-9xgj-fcgf-x6mw","summary":"Poetry Argument Injection can lead to Local Code Execution","modified":"2024-10-21T21:08:19.767146Z","packages":[{"ecosystem":"PyPI","name":"poetry","purl":"pkg:pypi/poetry","ranges":["<1.1.9"],"fixed":["1.1.9"]}]},{"id":"PYSEC-2022-266","url":"https://osv.dev/vulnerability/PYSEC-2022-266","summary":"","modified":"2023-11-08T04:09:59.517297Z","packages":[{"ecosystem":"PyPI","name":"poetry","purl":"pkg:pypi/poetry","ranges":["<1.1.9"],"fixed":["1.1.9"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}