Skip to main content
Public proof of conceptFix available

CVE-2022-36069

A public proof of concept exists; no exploitation attested.

  • Published2022-09-07
  • Fixed in1.1.9
  • WeaknessCWE-88 · CWE-94

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2022-09-0719:15CVE publishedNVD

Versions per branch

NVD · OSV
Python-poetry poetry
BranchAffectedFixed in
1.1< 1.1.91.1.9
1.2= 1.2.0no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As GitHub_M, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • python-poetry poetry
    Affected
    • = < 1.1.9no fix stated

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2023-10-24

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • poetryUbuntu:26.10all versions · no fixed version listed
  • poetryUbuntu:26.04:LTSall versions · no fixed version listed
  • poetryUbuntu:25.10all versions · no fixed version listed
  • poetryUbuntu:24.04:LTSall versions · no fixed version listed
  • poetryUbuntu:22.04:LTSall versions · no fixed version listed
  • poetryAzure Linux:2all versions · no fixed version listed
  • poetry-coreDebian:14all versions · fixed in 1.0.7-1
  • poetry-coreDebian:13all versions · fixed in 1.0.7-1

1 more package range on OSV.dev

Vendor advisories

  • CVE-2022-36069 Red Hat Product Security

    python-poetry: Argument Injection can lead to Local Code Execution

Full record on NVD

Fix

  1. Update Python-poetry poetry to 1.1.9

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2025-04-22
  • CNACVSS 3.17.3known since 2026-10-23
  • NVDCVSS 3.17.3read 2026-10-23
  • CNAweakness (CWE)CWE-94known since 2026-10-23
  • NVDweakness (CWE)CWE-88read 2026-10-23
  • FIRST EPSSEPSS score1.3 %2026-11-18
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryHIGH2022-09-16

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Published
2022-09-07
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-9xgj-fcgf-x6mw

Frequently asked questions

What is 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.

Is CVE-2022-36069 actively exploited?

A proof-of-concept exploit exists for CVE-2022-36069, but active exploitation has not been confirmed at this time.

What is the CVSS score for CVE-2022-36069?

CVE-2022-36069 has a CVSS v3 base score of 7.3 (HIGH severity), with vector string CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H.

Running poetry? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record