CVE-2022-36069 – Poetry Argument Injection vulnerability can lead to local Code Execution
https://notcve.org/view.php?id=CVE-2022-36069
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. • 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 • CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') CWE-94: Improper Control of Generation of Code ('Code Injection') •
CVE-2022-36070 – Poetry's Untrusted Search Path can lead to Local Code Execution on Windows
https://notcve.org/view.php?id=CVE-2022-36070
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. • 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-j4j9-7hg9-97g6 • CWE-426: Untrusted Search Path •
CVE-2022-26184
https://notcve.org/view.php?id=CVE-2022-26184
Poetry v1.1.9 and below was discovered to contain an untrusted search path which causes the application to behave in unexpected ways when users execute Poetry commands in a directory containing malicious content. This vulnerability occurs when the application is ran on Windows OS. Se ha detectado que Poetry versión v1.1.9 y anteriores, contienen una ruta de búsqueda no confiable que causa a la aplicación comportarse de manera no esperada cuando los usuarios ejecutan comandos de Poetry en un directorio que contiene contenido malicioso. Esta vulnerabilidad es producida produce cuando la aplicación es ejecutada en el Sistema Operativo Windows • https://github.com/python-poetry/poetry-core/pull/205/commits/fa9cb6f358ae840885c700f954317f34838caba7 https://github.com/python-poetry/poetry/releases/tag/1.1.9 https://www.sonarsource.com/blog/securing-developer-tools-package-managers • CWE-426: Untrusted Search Path •