Poetry Argument Injection vulnerability can lead to local Code Execution
Published Sep 7, 2022
7.3
HIGHCVSS 4.0
EPSS 1.32%
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.
Affected products
-
- Version < 1.1.9StatusaffectedConstraints-
- Version
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Python-Poetry | Poetry | n/a |
|
- < 1.1.9
- 1.2.0
- 1.2.0
No data.
No Red Hat product state for this CVE.
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
No CVSS v3.0 score for this CVE.
No CVSS v2.0 score for this CVE.
This CVE is not in the KEV list.
CISA SSVC (Vulnrichment)
Stakeholder-Specific Vulnerability Categorization from CISA ADP.
Exploitation
PoCAutomatable
NoTechnical Impact
TotalDecision
n/aAssessed Apr 22, 2025 · SSVC 2.0.3
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2022–2026- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (12 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 1.32% (0.01320) | 69.84th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.40% (0.01403) | 68.93th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.50% (0.00504) | 64.03th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.08% (0.00078) | 35.81th | v3 (v2023.03.01) |
| Apr 28, 2024 | 0.07% (0.00065) | 27.77th | v3 (v2023.03.01) |
| Apr 14, 2024 | 0.05% (0.00051) | 18.45th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.04% (0.00042) | 5.63th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.36% (0.01365) | 71.56th | v2 (v2022.01.01) |
| Feb 23, 2023 | 1.36% (0.01365) | 71.51th | v2 (v2022.01.01) |
| Dec 30, 2022 | 2.74% (0.02737) | 82.31th | v2 (v2022.01.01) |
| Sep 15, 2022 | 1.36% (0.01365) | 70.80th | v2 (v2022.01.01) |
| Sep 8, 2022 | 1.55% (0.01549) | 74.10th | v2 (v2022.01.01) |
References (7)
- https://github.com/advisories/GHSA-9xgj-fcgf-x6mw Advisory
- https://github.com/pypa/advisory-database/tree/main/vulns/poetry/PYSEC-2022-266.yaml
- https://github.com/python-poetry/poetry/releases/tag/1.1.9 x_refsource_MISCRelease Notes
- https://github.com/python-poetry/poetry/releases/tag/1.2.0b1 x_refsource_MISCRelease Notes
- https://github.com/python-poetry/poetry/security/advisories/GHSA-9xgj-fcgf-x6mw x_refsource_CONFIRMExploitVendor Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-36069
- https://www.sonarsource.com/blog/securing-developer-tools-package-managers x_refsource_MISC
| Link | Providers | Tags |
|---|---|---|
| https://github.com/advisories/GHSA-9xgj-fcgf-x6mw | Advisory | |
| https://github.com/pypa/advisory-database/tree/main/vulns/poetry/PYSEC-2022-266.yaml | ||
| https://github.com/python-poetry/poetry/releases/tag/1.1.9 | x_refsource_MISCRelease Notes | |
| https://github.com/python-poetry/poetry/releases/tag/1.2.0b1 | x_refsource_MISCRelease Notes | |
| https://github.com/python-poetry/poetry/security/advisories/GHSA-9xgj-fcgf-x6mw | x_refsource_CONFIRMExploitVendor Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-36069 | ||
| https://www.sonarsource.com/blog/securing-developer-tools-package-managers | x_refsource_MISC |
Change history (0)
No recorded changes yet.