CVE-2022-36069 Poetry Argument Injection vulnerability can lead to local Code Execution
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
10 packages: 5 fixed, 5 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/poetry(Ubuntu 22.04) | = 1.1.11+dfsg-3; = 1.1.12+dfsg-1; = 1.1.12+dfsg-1ubuntu1; All versions | No fix listed | No fix yet |
| ubuntu/poetry(Ubuntu 24.04) | = 1.6.1+dfsg-2; = 1.7.1+dfsg-1; = 1.8.2+dfsg-1ubuntu2; All versions | No fix listed | No fix yet |
| ubuntu/poetry(Ubuntu 25.10) | = 2.1.1+dfsg-3; = 2.1.2+dfsg-1; All versions | No fix listed | No fix yet |
| ubuntu/poetry(Ubuntu 26.04) | = 2.1.2+dfsg-1; = 2.3.2+dfsg-3; All versions | No fix listed | No fix yet |
| ubuntu/poetry(Ubuntu 26.10) | = 2.3.2+dfsg-3; = 2.3.4-0.1; = 2.3.4-1; = 2.3.4-2 +1 more | No fix listed | No fix yet |
| debian/poetry-core(Debian 12) | < 1.0.7-1 | 1.0.7-1 | Fixed |
| debian/poetry-core(Debian 13) | < 1.0.7-1 | 1.0.7-1 | Fixed |
| debian/poetry-core(Debian 14) | < 1.0.7-1 | 1.0.7-1 | Fixed |
| pypi poetry(PyPI) | < 1.1.9; = 0.1.0; = 0.2.0; = 0.3.0 +133 more | 1.1.9 | Fixed |
| python-poetry poetry | < 1.1.9; = 1.2.0-alpha1; = 1.2.0-alpha2; = < 1.1.9 | 1.1.9 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi poetry(PyPI) | < 1.1.9 | 1.1.9 |
| pypi poetry(PyPI) | = 0.1.0 | No fix listed |
| pypi poetry(PyPI) | = 0.10.0 | No fix listed |
| pypi poetry(PyPI) | = 0.10.0a0 | No fix listed |
| pypi poetry(PyPI) | = 0.10.0a1 | No fix listed |
| pypi poetry(PyPI) | = 0.10.0a2 | No fix listed |
| pypi poetry(PyPI) | = 0.10.0a3 | No fix listed |
| pypi poetry(PyPI) | = 0.10.1 | No fix listed |
| pypi poetry(PyPI) | = 0.10.2 | No fix listed |
| pypi poetry(PyPI) | = 0.10.3 | No fix listed |
| pypi poetry(PyPI) | = 0.11.0 | No fix listed |
| pypi poetry(PyPI) | = 0.11.0a0 | No fix listed |
| pypi poetry(PyPI) | = 0.11.0a1 | No fix listed |
| pypi poetry(PyPI) | = 0.11.0a2 | No fix listed |
| pypi poetry(PyPI) | = 0.11.0a3 | No fix listed |
| pypi poetry(PyPI) | = 0.11.0a4 | No fix listed |
| pypi poetry(PyPI) | = 0.11.1 | No fix listed |
| pypi poetry(PyPI) | = 0.11.2 | No fix listed |
| pypi poetry(PyPI) | = 0.11.3 | No fix listed |
| pypi poetry(PyPI) | = 0.11.4 | No fix listed |
| pypi poetry(PyPI) | = 0.11.5 | No fix listed |
| pypi poetry(PyPI) | = 0.12.0 | No fix listed |
| pypi poetry(PyPI) | = 0.12.0a0 | No fix listed |
| pypi poetry(PyPI) | = 0.12.0a1 | No fix listed |
| pypi poetry(PyPI) | = 0.12.0a2 | No fix listed |
Show 138 more
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi poetry(PyPI) | = 0.12.0a3 | No fix listed |
| pypi poetry(PyPI) | = 0.12.0a4 | No fix listed |
| pypi poetry(PyPI) | = 0.12.0a5 | No fix listed |
| pypi poetry(PyPI) | = 0.12.1 | No fix listed |
| pypi poetry(PyPI) | = 0.12.10 | No fix listed |
| pypi poetry(PyPI) | = 0.12.11 | No fix listed |
| pypi poetry(PyPI) | = 0.12.12 | No fix listed |
| pypi poetry(PyPI) | = 0.12.13 | No fix listed |
| pypi poetry(PyPI) | = 0.12.14 | No fix listed |
| pypi poetry(PyPI) | = 0.12.15 | No fix listed |
| pypi poetry(PyPI) | = 0.12.16 | No fix listed |
| pypi poetry(PyPI) | = 0.12.17 | No fix listed |
| pypi poetry(PyPI) | = 0.12.2 | No fix listed |
| pypi poetry(PyPI) | = 0.12.3 | No fix listed |
| pypi poetry(PyPI) | = 0.12.4 | No fix listed |
| pypi poetry(PyPI) | = 0.12.5 | No fix listed |
| pypi poetry(PyPI) | = 0.12.6 | No fix listed |
| pypi poetry(PyPI) | = 0.12.7 | No fix listed |
| pypi poetry(PyPI) | = 0.12.8 | No fix listed |
| pypi poetry(PyPI) | = 0.12.9 | No fix listed |
| pypi poetry(PyPI) | = 0.2.0 | No fix listed |
| pypi poetry(PyPI) | = 0.3.0 | No fix listed |
| pypi poetry(PyPI) | = 0.4.0 | No fix listed |
| pypi poetry(PyPI) | = 0.4.0.post1 | No fix listed |
| pypi poetry(PyPI) | = 0.4.1 | No fix listed |
| pypi poetry(PyPI) | = 0.4.2 | No fix listed |
| pypi poetry(PyPI) | = 0.5.0 | No fix listed |
| pypi poetry(PyPI) | = 0.5.0b1 | No fix listed |
| pypi poetry(PyPI) | = 0.5.0b2 | No fix listed |
| pypi poetry(PyPI) | = 0.6.0 | No fix listed |
| pypi poetry(PyPI) | = 0.6.1 | No fix listed |
| pypi poetry(PyPI) | = 0.6.2 | No fix listed |
| pypi poetry(PyPI) | = 0.6.3 | No fix listed |
| pypi poetry(PyPI) | = 0.6.3b1 | No fix listed |
| pypi poetry(PyPI) | = 0.6.3b2 | No fix listed |
| pypi poetry(PyPI) | = 0.6.3b3 | No fix listed |
| pypi poetry(PyPI) | = 0.6.3b4 | No fix listed |
| pypi poetry(PyPI) | = 0.6.3b5 | No fix listed |
| pypi poetry(PyPI) | = 0.6.3b6 | No fix listed |
| pypi poetry(PyPI) | = 0.6.3b7 | No fix listed |
| pypi poetry(PyPI) | = 0.6.4 | No fix listed |
| pypi poetry(PyPI) | = 0.6.4b1 | No fix listed |
| pypi poetry(PyPI) | = 0.6.5 | No fix listed |
| pypi poetry(PyPI) | = 0.7.0 | No fix listed |
| pypi poetry(PyPI) | = 0.7.0b1 | No fix listed |
| pypi poetry(PyPI) | = 0.7.0b2 | No fix listed |
| pypi poetry(PyPI) | = 0.7.0b3 | No fix listed |
| pypi poetry(PyPI) | = 0.7.0b4 | No fix listed |
| pypi poetry(PyPI) | = 0.7.1 | No fix listed |
| pypi poetry(PyPI) | = 0.8.0 | No fix listed |
| pypi poetry(PyPI) | = 0.8.0a0 | No fix listed |
| pypi poetry(PyPI) | = 0.8.0a1 | No fix listed |
| pypi poetry(PyPI) | = 0.8.0a2 | No fix listed |
| pypi poetry(PyPI) | = 0.8.0a3 | No fix listed |
| pypi poetry(PyPI) | = 0.8.0a4 | No fix listed |
| pypi poetry(PyPI) | = 0.8.1 | No fix listed |
| pypi poetry(PyPI) | = 0.8.1a0 | No fix listed |
| pypi poetry(PyPI) | = 0.8.2 | No fix listed |
| pypi poetry(PyPI) | = 0.8.3 | No fix listed |
| pypi poetry(PyPI) | = 0.8.4 | No fix listed |
| pypi poetry(PyPI) | = 0.8.5 | No fix listed |
| pypi poetry(PyPI) | = 0.8.5a0 | No fix listed |
| pypi poetry(PyPI) | = 0.8.6 | No fix listed |
| pypi poetry(PyPI) | = 0.9.0 | No fix listed |
| pypi poetry(PyPI) | = 0.9.0a0 | No fix listed |
| pypi poetry(PyPI) | = 0.9.0a1 | No fix listed |
| pypi poetry(PyPI) | = 0.9.0a2 | No fix listed |
| pypi poetry(PyPI) | = 0.9.0a3 | No fix listed |
| pypi poetry(PyPI) | = 0.9.1 | No fix listed |
| pypi poetry(PyPI) | = 1.0.0 | No fix listed |
| pypi poetry(PyPI) | = 1.0.0a0 | No fix listed |
| pypi poetry(PyPI) | = 1.0.0a1 | No fix listed |
| pypi poetry(PyPI) | = 1.0.0a2 | No fix listed |
| pypi poetry(PyPI) | = 1.0.0a3 | No fix listed |
| pypi poetry(PyPI) | = 1.0.0a4 | No fix listed |
| pypi poetry(PyPI) | = 1.0.0a5 | No fix listed |
| pypi poetry(PyPI) | = 1.0.0b1 | No fix listed |
| pypi poetry(PyPI) | = 1.0.0b2 | No fix listed |
| pypi poetry(PyPI) | = 1.0.0b3 | No fix listed |
| pypi poetry(PyPI) | = 1.0.0b4 | No fix listed |
| pypi poetry(PyPI) | = 1.0.0b5 | No fix listed |
| pypi poetry(PyPI) | = 1.0.0b6 | No fix listed |
| pypi poetry(PyPI) | = 1.0.0b7 | No fix listed |
| pypi poetry(PyPI) | = 1.0.0b8 | No fix listed |
| pypi poetry(PyPI) | = 1.0.0b9 | No fix listed |
| pypi poetry(PyPI) | = 1.0.1 | No fix listed |
| pypi poetry(PyPI) | = 1.0.10 | No fix listed |
| pypi poetry(PyPI) | = 1.0.2 | No fix listed |
| pypi poetry(PyPI) | = 1.0.3 | No fix listed |
| pypi poetry(PyPI) | = 1.0.4 | No fix listed |
| pypi poetry(PyPI) | = 1.0.5 | No fix listed |
| pypi poetry(PyPI) | = 1.0.6 | No fix listed |
| pypi poetry(PyPI) | = 1.0.7 | No fix listed |
| pypi poetry(PyPI) | = 1.0.8 | No fix listed |
| pypi poetry(PyPI) | = 1.0.9 | No fix listed |
| pypi poetry(PyPI) | = 1.1.0 | No fix listed |
| pypi poetry(PyPI) | = 1.1.0a1 | No fix listed |
| pypi poetry(PyPI) | = 1.1.0a2 | No fix listed |
| pypi poetry(PyPI) | = 1.1.0a3 | No fix listed |
| pypi poetry(PyPI) | = 1.1.0b1 | No fix listed |
| pypi poetry(PyPI) | = 1.1.0b2 | No fix listed |
| pypi poetry(PyPI) | = 1.1.0b3 | No fix listed |
| pypi poetry(PyPI) | = 1.1.0b4 | No fix listed |
| pypi poetry(PyPI) | = 1.1.0rc1 | No fix listed |
| pypi poetry(PyPI) | = 1.1.1 | No fix listed |
| pypi poetry(PyPI) | = 1.1.2 | No fix listed |
| pypi poetry(PyPI) | = 1.1.3 | No fix listed |
| pypi poetry(PyPI) | = 1.1.4 | No fix listed |
| pypi poetry(PyPI) | = 1.1.5 | No fix listed |
| pypi poetry(PyPI) | = 1.1.6 | No fix listed |
| pypi poetry(PyPI) | = 1.1.7 | No fix listed |
| pypi poetry(PyPI) | = 1.1.8 | No fix listed |
| python-poetry poetry | = < 1.1.9 | No fix listed |
| ubuntu/poetry(Ubuntu:22.04) | All versions | No fix listed |
| python-poetry poetry | < 1.1.9 | 1.1.9 |
| python-poetry poetry | = 1.2.0-alpha1 | No fix listed |
| python-poetry poetry | = 1.2.0-alpha2 | No fix listed |
| ubuntu/poetry(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/poetry(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/poetry(Ubuntu:26.10) | All versions | No fix listed |
| debian/poetry-core(Debian:12) | < 1.0.7-1 | 1.0.7-1 |
| debian/poetry-core(Debian:14) | < 1.0.7-1 | 1.0.7-1 |
| debian/poetry-core(Debian:13) | < 1.0.7-1 | 1.0.7-1 |
| ubuntu/poetry(Ubuntu:22.04) | = 1.1.11+dfsg-3 | No fix listed |
| ubuntu/poetry(Ubuntu:22.04) | = 1.1.12+dfsg-1 | No fix listed |
| ubuntu/poetry(Ubuntu:22.04) | = 1.1.12+dfsg-1ubuntu1 | No fix listed |
| ubuntu/poetry(Ubuntu:24.04) | = 1.6.1+dfsg-2 | No fix listed |
| ubuntu/poetry(Ubuntu:24.04) | = 1.7.1+dfsg-1 | No fix listed |
| ubuntu/poetry(Ubuntu:24.04) | = 1.8.2+dfsg-1ubuntu2 | No fix listed |
| ubuntu/poetry(Ubuntu:25.10) | All versions | No fix listed |
| ubuntu/poetry(Ubuntu:25.10) | = 2.1.1+dfsg-3 | No fix listed |
| ubuntu/poetry(Ubuntu:25.10) | = 2.1.2+dfsg-1 | No fix listed |
| ubuntu/poetry(Ubuntu:26.10) | = 2.3.2+dfsg-3 | No fix listed |
| ubuntu/poetry(Ubuntu:26.10) | = 2.3.4-0.1 | No fix listed |
| ubuntu/poetry(Ubuntu:26.10) | = 2.3.4-1 | No fix listed |
| ubuntu/poetry(Ubuntu:26.10) | = 2.3.4-2 | No fix listed |
| ubuntu/poetry(Ubuntu:26.04) | = 2.1.2+dfsg-1 | No fix listed |
| ubuntu/poetry(Ubuntu:26.04) | = 2.3.2+dfsg-3 | No fix listed |
References
- https://github.com/python-poetry/poetry/security/advisories/GHSA-9xgj-fcgf-x6mw exploit issue-tracking vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product
- https://github.com/python-poetry/poetry/releases/tag/1.1.9 issue-tracking release-notes
- https://github.com/python-poetry/poetry/releases/tag/1.2.0b1 issue-tracking release-notes
- https://www.sonarsource.com/blog/securing-developer-tools-package-managers/
- github.com
- Debian Security Tracker CVE-2022-36069 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking