p PatchFirst

CVE-2022-36069

CVE-2022-36069 · Poetry Argument Injection vulnerability can lead to local Code Execution

Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.

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.

CVSS 7.3 · Élevée · EPSS 1,3% · Correctif disponible

Publication
Mise à jour

Pile logicielle: system · python

Produits et versions concernés

  • poetry

    Versions du logiciel
    • < 1.1.9: Concernée

    Aucun correctif publié

  • poetry-core Debian:12

    Plages de versions concernées
    • ECOSYSTEM: < 1.0.7-1

    Mettez à jour vers 1.0.7-1

  • poetry-core Debian:13

    Plages de versions concernées
    • ECOSYSTEM: < 1.0.7-1

    Mettez à jour vers 1.0.7-1

  • poetry-core Debian:14

    Plages de versions concernées
    • ECOSYSTEM: < 1.0.7-1

    Mettez à jour vers 1.0.7-1

  • poetry PyPI

    Versions du logiciel
    • 0.1.0
    • 0.10.0
    • 0.10.0a0
    • 0.10.0a1
    • 0.10.0a2
    • 0.10.0a3
    • 0.10.1
    • 0.10.2
    • 0.10.3
    • 0.11.0
    • 0.11.0a0
    • 0.11.0a1
    • 0.11.0a2
    • 0.11.0a3
    • 0.11.0a4
    • 0.11.1
    • 0.11.2
    • 0.11.3
    • 0.11.4
    • 0.11.5
    • 0.12.0
    • 0.12.0a0
    • 0.12.0a1
    • 0.12.0a2
    • 0.12.0a3
    • 0.12.0a4
    • 0.12.0a5
    • 0.12.1
    • 0.12.10
    • 0.12.11
    • 0.12.12
    • 0.12.13
    • 0.12.14
    • 0.12.15
    • 0.12.16
    • 0.12.17
    • 0.12.2
    • 0.12.3
    • 0.12.4
    • 0.12.5
    • 0.12.6
    • 0.12.7
    • 0.12.8
    • 0.12.9
    • 0.2.0
    • 0.3.0
    • 0.4.0
    • 0.4.0.post1
    • 0.4.1
    • 0.4.2
    • 0.5.0
    • 0.5.0b1
    • 0.5.0b2
    • 0.6.0
    • 0.6.1
    • 0.6.2
    • 0.6.3
    • 0.6.3b1
    • 0.6.3b2
    • 0.6.3b3
    • 0.6.3b4
    • 0.6.3b5
    • 0.6.3b6
    • 0.6.3b7
    • 0.6.4
    • 0.6.4b1
    • 0.6.5
    • 0.7.0
    • 0.7.0b1
    • 0.7.0b2
    • 0.7.0b3
    • 0.7.0b4
    • 0.7.1
    • 0.8.0
    • 0.8.0a0
    • 0.8.0a1
    • 0.8.0a2
    • 0.8.0a3
    • 0.8.0a4
    • 0.8.1
    • 0.8.1a0
    • 0.8.2
    • 0.8.3
    • 0.8.4
    • 0.8.5
    • 0.8.5a0
    • 0.8.6
    • 0.9.0
    • 0.9.0a0
    • 0.9.0a1
    • 0.9.0a2
    • 0.9.0a3
    • 0.9.1
    • 1.0.0
    • 1.0.0a0
    • 1.0.0a1
    • 1.0.0a2
    • 1.0.0a3
    • 1.0.0a4
    • 1.0.0a5
    • 1.0.0b1
    • 1.0.0b2
    • 1.0.0b3
    • 1.0.0b4
    • 1.0.0b5
    • 1.0.0b6
    • 1.0.0b7
    • 1.0.0b8
    • 1.0.0b9
    • 1.0.1
    • 1.0.10
    • 1.0.2
    • 1.0.3
    • 1.0.4
    • 1.0.5
    • 1.0.6
    • 1.0.7
    • 1.0.8
    • 1.0.9
    • 1.1.0
    • 1.1.0a1
    • 1.1.0a2
    • 1.1.0a3
    • 1.1.0b1
    • 1.1.0b2
    • 1.1.0b3
    • 1.1.0b4
    • 1.1.0rc1
    • 1.1.1
    • 1.1.2
    • 1.1.3
    • 1.1.4
    • 1.1.5
    • 1.1.6
    • 1.1.7
    • 1.1.8
    Plages de versions concernées
    • ECOSYSTEM: < 1.1.9

    Mettez à jour vers 1.1.9

  • poetry Ubuntu:22.04:LTS

    Versions du logiciel
    • 1.1.11+dfsg-3
    • 1.1.12+dfsg-1
    • 1.1.12+dfsg-1ubuntu1
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • poetry Ubuntu:24.04:LTS

    Versions du logiciel
    • 1.6.1+dfsg-2
    • 1.7.1+dfsg-1
    • 1.8.2+dfsg-1ubuntu2
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • poetry Ubuntu:25.10

    Versions du logiciel
    • 2.1.1+dfsg-3
    • 2.1.2+dfsg-1
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • poetry Ubuntu:26.10

    Versions du logiciel
    • 2.3.2+dfsg-3
    • 2.3.4-0.1
    • 2.3.4-1
    • 2.3.4-2
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

  • poetry Ubuntu:26.04:LTS

    Versions du logiciel
    • 2.1.2+dfsg-1
    • 2.3.2+dfsg-3
    Plages de versions concernées
    • ECOSYSTEM: (−∞, +∞)

    Aucun correctif publié

Sources originales

Vérifiez votre serveur →