Home / python-poetry / poetry / CVE-2022-36069
CVE-2022-36069: is it exploited, and which versions of python-poetry poetry are affected and fixed?
CVE-2022-36069 is a code injection (remote code execution) vulnerability in python-poetry poetry. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: poetry before 1.1.9 (GitHub advisory GHSA-9xgj-fcgf-x6mw). Fixed in 1.1.9 (GitHub advisory GHSA-9xgj-fcgf-x6mw). Severity: High (7.3, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:14 UTC and NVD November 19, 2026, 07:45 UTC.
What is CVE-2022-36069?
Poetry Argument Injection vulnerability can lead to local Code Execution
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.
From the CVE record by GitHub_M, last updated April 22, 2025, 17:23 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| python-poetry | poetry | < 1.1.9 |
As the CVE record by GitHub_M states it, last updated April 22, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | poetry | < 1.1.9 | 1.1.9 | GHSA-9xgj-fcgf-x6mw |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 21, 2024. Summary: Poetry Argument Injection can lead to Local Code Execution.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| python-poetry | poetry | before 1.1.9 | application |
| python-poetry | poetry | 1.2.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 04:52 UTC.
How severe is CVE-2022-36069?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.3 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H | GitHub_M |
| High 7.3 | CVSS 3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-36069 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: no; technical impact: total (CISA ADP, April 22, 2025)
- EPSS
- 1.27% probability of exploitation activity in the next 30 days, percentile 70.8 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-94 Improper Control of Generation of Code
- CWE-88 Improper Neutralization of Argument Delimiters in a Command
Where are the vendor advisories and references?
- https://github.com/python-poetry/poetry/security/advisories/GHSA-9xgj-fcgf-x6mw x_refsource_CONFIRM
- https://github.com/python-poetry/poetry/releases/tag/1.1.9 x_refsource_MISC
- https://github.com/python-poetry/poetry/releases/tag/1.2.0b1 x_refsource_MISC
- https://www.sonarsource.com/blog/securing-developer-tools-package-managers/ x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- July 15, 2022
- Published
- September 7, 2022, 18:30 UTC
- CVE record updated
- April 22, 2025, 17:23 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 04:52 UTC
- Last checked
- CVE list November 19, 2026, 07:14 UTC; NVD November 19, 2026, 07:45 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect poetry?
- Apr 24, 2026CVE-2026-41140 python-poetry poetry: path traversal (reading or writing files outside the intended folder)
- Apr 2, 2026CVE-2026-34591 python-poetry poetry: path traversal (reading or writing files outside the intended folder)
- Sep 7, 2022CVE-2022-36070 python-poetry poetry: untrusted Search Path
- Mar 21, 2022CVE-2022-26184 Python-poetry Poetry: untrusted Search Path
Questions about CVE-2022-36069
Is CVE-2022-36069 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 1.27% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of python-poetry poetry are affected by CVE-2022-36069?
poetry before 1.1.9, per the GitHub advisory GHSA-9xgj-fcgf-x6mw. The tables above give every range the sources list.
Which version fixes CVE-2022-36069?
1.1.9, per the GitHub advisory GHSA-9xgj-fcgf-x6mw. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-36069?
High (7.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2022-36069?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.