Amenazas en vivo

Todas las CVE / Pypa

CVE-2022-21668Pypa Pipenv

Alta 8.6

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
Debilidad (CWE)
CWE-20, CWE-77, CWE-78, CWE-427, CWE-791, CWE-190, CWE-1284
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.

Texto original de NVD, en inglés. La traducción y el resumen en español llegan pronto.

Qué hacer

  1. Aplica la actualización de seguridad del fabricante para Pipenv.

Paquetes afectados

EcosistemaPaqueteVersiones afectadasCorregida enCó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)

FabricanteProductoVersiones
pypapipenv≥ 2018.10.9 < 2022.1.8
fedoraprojectfedora34
fedoraprojectfedora35
fedoraprojectfedora36

Fuentes oficiales

Referencias

Enlaces publicados por las fuentes. Ábrelos con criterio.