llamaCVEVulnerability Intelligence
/
pipenv

CVE-2022-21668

Pipenv's requirements.txt parsing allows malicious index url in comments

Parche disponibleimproper input validation
Descargar PNG JSON
CVSS 3.1
8.0
Alta
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:H Fuente: CNA
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos11 fuente
Parche1 versiónPrimer parche a -2 d de la divulgación
Exposición1.773 dDesde la divulgación, 10 ene 2022, 3:20 p. m.
Detección1.771 dDesde la divulgación hasta su ingreso al índice
Timeline

Ciclo de vida de la vulnerabilidad

Hoy
Divulgación
Publicada
Modificada
Explotación
Remediación
Parche 2022.1.8
Monitoreo
Detectada
8 ene 22
10 ene 22
3 ago 24
17 nov 26
19 nov 26
8 ene 22
28 mar 23
14 jun 24
1 sept 25
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 2022.1.8 pipenv · -2 d desde divulgación
Divulgación Publicada CVE-2022-21668 divulgada · CVSS 8 (CNA)
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen

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.

Vector CVSS 3.1

Desglose de métricas

Opción resaltada = valor del vector · izquierda = peor caso · CNA
Vector de ataqueAV:N
RedAdyacenteLocalFísica
ComplejidadAC:H
BajaAlta
PrivilegiosPR:L
NingunoBajosAltos
InteracciónUI:R
NingunaRequerida
AlcanceS:C
CambiadoSin cambio
ConfidencialidadC:H
AltoBajoNinguno
IntegridadI:H
AltoBajoNinguno
DisponibilidadA:H
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
pipenv≥ 2018.10.9 < 2022.1.8
2018.10.9
2022.1.8
2026.11.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
pypipipenv
Corregida 2022.1.8 -2 d 2026.11.0 no afectada
Versiones corregidas2022.1.8
Explotación

Arsenal público

Exploit-DB
—
0
Metasploit
—
0
Nuclei
—
0
PoC en GitHub
sreeram281997/CVE-2022-21668-Pipenv-RCE-vulnerability
1
Ver los 1 repositorios de GitHub
sreeram281997/CVE-2022-21668-Pipenv-RCE-vulnerability

Los repositorios públicos incluyen exploits, escáneres, laboratorios y reglas de detección. No ejecute código de terceros sin revisarlo en un entorno aislado.

Referencias
Advisoryhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/QHQRIWKDP3SVJABAPEXBIQPKDI6UP7G4/
Advisoryhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/KCROBYHUS6DKQPCXBRPCZ5CDBNQTYAWT/
Advisoryhttps://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/56HBA3EOSLEDNCCBJVHE6DO34P56EOUM/
Fabricantehttps://github.com/pypa/pipenv/security/advisories/GHSA-qc9x-gjcv-465w
Exploithttps://github.com/sreeram281997/CVE-2022-21668-Pipenv-RCE-vulnerability
Otrahttps://github.com/pypa/pipenv/commit/439782a8ae36c4762c88e43d5f0d8e563371b46f
Otrahttps://github.com/pypa/pipenv/releases/tag/v2022.1.8

Las referencias externas se muestran para copiar: cve.llama.ec no lo redirige a otros sitios.