Skip to content
Heist/ feed
Back to feed
High

poetry — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-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. 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.

Products
poetry
Affected versions
1.1.11+dfsg-3, 1.1.12+dfsg-1, 1.1.12+dfsg-1ubuntu1, 1.6.1+dfsg-2, 1.7.1+dfsg-1, 1.8.2+dfsg-1ubuntu2, 2.1.1+dfsg-3, 2.1.2+dfsg-1, 2.3.2+dfsg-3, 2.3.4-0.1, 2.3.4-1, 2.3.4-2
Fixed versions
Not specified
CVEs
CVE-2022-36069
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 00:41 UTC · Revision 1

Source evidence

UBUNTU-CVE-2022-36069

core-osv · Original source

Published 7 Sept 2022, 19:15 UTC

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.

osv:UBUNTU-CVE-2022-36069

poetry

Fixed versions: Not specified

poetry

Fixed versions: Not specified

poetry

Fixed versions: Not specified

poetry

Fixed versions: Not specified

poetry

Fixed versions: Not specified

Complete source record
{
  "id": "b7701bf4cb9f5f7bd01b4fd030337e78627dd0466ca66d158506d8323f9fa534",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-36069",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2022-36069",
    "summary": "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.",
    "evidence": "osv:UBUNTU-CVE-2022-36069",
    "products": [
      {
        "name": {
          "value": "poetry",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.1.11+dfsg-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.1.12+dfsg-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.1.12+dfsg-1ubuntu1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "poetry",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.6.1+dfsg-2",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.7.1+dfsg-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.8.2+dfsg-1ubuntu2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "poetry",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.1.1+dfsg-3",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.1.2+dfsg-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "poetry",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.3.2+dfsg-3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.3.4-0.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.3.4-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.3.4-2",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "poetry",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.1.2+dfsg-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "2.3.2+dfsg-3",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "high",
    "structured": {
      "id": "UBUNTU-CVE-2022-36069",
      "aliases": [
        "UBUNTU-CVE-2022-36069"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "poetry",
            "purl": "pkg:deb/ubuntu/poetry?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.1.11+dfsg-3",
            "1.1.12+dfsg-1",
            "1.1.12+dfsg-1ubuntu1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-36069.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-poetry",
                "binary_version": "1.1.12+dfsg-1ubuntu1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "poetry",
            "purl": "pkg:deb/ubuntu/poetry?arch=source&distro=noble",
            "ecosystem": "Ubuntu:24.04:LTS"
          },
          "versions": [
            "1.6.1+dfsg-2",
            "1.7.1+dfsg-1",
            "1.8.2+dfsg-1ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-36069.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-poetry",
                "binary_version": "1.8.2+dfsg-1ubuntu2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "poetry",
            "purl": "pkg:deb/ubuntu/poetry?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.1.1+dfsg-3",
            "2.1.2+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-36069.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-poetry",
                "binary_version": "2.1.2+dfsg-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "poetry",
            "purl": "pkg:deb/ubuntu/poetry?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.3.2+dfsg-3",
            "2.3.4-0.1",
            "2.3.4-1",
            "2.3.4-2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-36069.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-poetry",
                "binary_version": "2.3.4-2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "poetry",
            "purl": "pkg:deb/ubuntu/poetry?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.1.2+dfsg-1",
            "2.3.2+dfsg-3"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-36069.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "python3-poetry",
                "binary_version": "2.3.2+dfsg-3"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:55:58.267750234Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-36069"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2022-36069",
        "https://github.com/python-poetry/poetry/releases/tag/1.1.9",
        "https://github.com/python-poetry/poetry/security/advisories/GHSA-9xgj-fcgf-x6mw",
        "https://github.com/python-poetry/poetry/releases/tag/1.2.0b1",
        "https://www.cve.org/CVERecord?id=CVE-2022-36069"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-36069",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 354404,
  "published_at": "2022-09-07T19:15:00+00:00"
}