CVE-2022-21668Pypa Pipenv
Alta 8.6
Seguir: esta CVE · Pypa · Pypa Pipenv Te avisamos por email o Slack (requiere cuenta).
- Prioridad
- 52
- CVSS 3.1
- 8.6
- EPSS
- 3.9% probabilidad de explotación en 30 días · percentil 91
- Requiere autenticación
- Sí
- Publicada
- 10 ene 2022
- Actualizada
- 17 jun 2026
- Categoría
- Aplicación · Multiplataforma
- Vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H
Qué pasa
pipenv is a Python development workflow tool. Starting with version 2018.10.9 and prior to version 2022.1.8, a flaw in pipenv's parsing of requirements files allows an attacker to insert a specially crafted string inside a comment anywhere within a requirements.txt file, which will cause victims who use pipenv to install the requirements file to download dependencies from a package index server controlled by the attacker. By embedding malicious code in packages served from their malicious index server, the attacker can trigger arbitrary remote code execution (RCE) on the victims' systems. If an attacker is able to hide a malicious `--index-url` option in a requirements file that a victim installs with pipenv, the attacker can embed arbitrary malicious code in packages served from their malicious index server that will be executed on the victim's host during installation (remote code execution/RCE). When pip installs from a source distribution, any code in the setup.py is executed by the install process. This issue is patched in version 2022.1.8. The GitHub Security Advisory contains more information about this vulnerability.
Qué hacer
- Aplica la actualización de seguridad del fabricante para Pipenv.
Paquetes afectados
| Ecosistema | Paquete | Versiones afectadas | Corregida en | Cómo actualizar |
|---|---|---|---|---|
| PyPI | pipenv |
≥ 2018.10.9 < 2022.1.8 |
2022.1.8 |
pip install "pipenv>=2022.1.8" |
| PyPI | pipenv |
≥ 2018.10.9 < 2022.1.8 |
2022.1.8 |
pip install "pipenv>=2022.1.8" |
Según OSV / GitHub Advisories (GHSA-qc9x-gjcv-465w, PYSEC-2022-6). Verifica la versión en tu lockfile antes de actualizar.
Productos afectados (CPE)
| Fabricante | Producto | Versiones |
|---|---|---|
| pypa | pipenv | ≥ 2018.10.9 < 2022.1.8 |
| fedoraproject | fedora | 34 |
| fedoraproject | fedora | 35 |
| fedoraproject | fedora | 36 |
Fuentes oficiales
Referencias
Enlaces publicados por las fuentes. Ábrelos con criterio.
- github.com Patch Third Party Advisory
- github.com Release Notes Third Party Advisory
- github.com Exploit Third Party Advisory
- lists.fedoraproject.org Mailing List
- lists.fedoraproject.org Mailing List
- lists.fedoraproject.org Mailing List