llamaCVEVulnerability Intelligence
/
cargo

CVE-2019-16760

Cargo prior to Rust 1.26.0 may download the wrong dependency

Parche disponible
Descargar PNG JSON
CVSS 3.1
4.6
Media
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L Fuente: CNA
7.5NVD · CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche2 versionesPrimer parche a -508 d de la divulgación
Exposición2.606 dDesde la divulgación, 30 sept 2019, 4:39 p. m.
Detección2.590 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 0.27.0
Monitoreo
Detectada
Verificada
10 may 18
30 sept 19
5 ago 24
3 nov 26
13 nov 26
19 nov 26
10 may 18
27 jun 20
15 ago 22
1 oct 24
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 0.27.0 cargo · -508 d desde divulgación
Divulgación Publicada CVE-2019-16760 divulgada · CVSS 4.6 (CNA)
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Monitoreo Verificada Última verificación contra las fuentes
Resumen

Cargo prior to Rust 1.26.0 may download the wrong dependency if your package.toml file uses the `package` configuration key. Usage of the `package` key to rename dependencies in `Cargo.toml` is ignored in Rust 1.25.0 and prior. When Rust 1.25.0 and prior is used Cargo may download the wrong dependency, which could be squatted on crates.io to be a malicious package. This not only affects manifests that you write locally yourself, but also manifests published to crates.io. Rust 1.0.0 through Rust 1.25.0 is affected by this advisory because Cargo will ignore the `package` key in manifests. Rust 1.26.0 through Rust 1.30.0 are not affected and typically will emit an error because the `package` key is unstable. Rust 1.31.0 and after are not affected because Cargo understands the `package` key. Users of the affected versions are strongly encouraged to update their compiler to the latest available one. Preventing this issue from happening requires updating your compiler to be either Rust 1.26.0 or newer. There will be no point release for Rust versions prior to 1.26.0. Users of Rust 1.19.0 to Rust 1.25.0 can instead apply linked patches to mitigate the issue.

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:U
CambiadoSin cambio
ConfidencialidadC:L
AltoBajoNinguno
IntegridadI:L
AltoBajoNinguno
DisponibilidadA:L
AltoBajoNinguno
Versiones

Rangos afectados

Afectada Corregida Última
cargo< 0.27.0
cargo≥ 1.0.0 < 1.26.0
0.27.0
0.100.0
1.0.0
1.26.0
Remediación

Estado del parche por paquete

Paquete / productoEstadoCorregida enDesde divulgaciónÚltima versión
crates.iocargo
Corregida 0.27.0 -508 d 0.100.0 no afectada
Versiones corregidas0.27.01.26.0
Explotación

Arsenal público

Sin exploits, módulos ni PoC públicos conocidos a la fecha de verificación.

Referencias
Fabricantehttps://github.com/rust-lang/rust/security/advisories/GHSA-phjm-8x66-qw4r
Análisishttp://www.openwall.com/lists/oss-security/2019/10/08/3
Otrahttps://groups.google.com/forum/#%21topic/rustlang-security-announcements/rVQ5e3TDnpQ
Otrahttps://gist.github.com/pietroalbini/0d293b24a44babbeb6187e06eebd4992

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