Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. poetry
  4. ›
  5. CVE-2022-36069

CVE-2022-36069: Poetry Argument Injection can lead to Local Code Execution

September 16, 2022 (updated October 21, 2024)

This vulnerability can lead to Arbitrary Code Execution, which would lead to the takeover of the system. 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. This kind of attack vector has been used in the past to target security researchers by sending them projects to collaborate on, so we believe that there is a non-negligible risk.

References

  • github.com/advisories/GHSA-9xgj-fcgf-x6mw
  • github.com/pypa/advisory-database/tree/main/vulns/poetry/PYSEC-2022-266.yaml
  • github.com/python-poetry/poetry
  • github.com/python-poetry/poetry/releases/tag/1.1.9
  • github.com/python-poetry/poetry/releases/tag/1.2.0b1
  • github.com/python-poetry/poetry/security/advisories/GHSA-9xgj-fcgf-x6mw
  • nvd.nist.gov/vuln/detail/CVE-2022-36069
  • www.sonarsource.com/blog/securing-developer-tools-package-managers

Code Behaviors & Features

Detect and mitigate CVE-2022-36069 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.1.9

Fixed versions

  • 1.1.9

Solution

Upgrade to version 1.1.9 or above.

Impact 7.3 HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')
  • CWE-94: Improper Control of Generation of Code ('Code Injection')

Source file

pypi/poetry/CVE-2022-36069.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:50 +0000.