llamaCVEVulnerability Intelligence
/
Advisory · GitHub · crates.io · cargo

GHSA-9F3P-WVJ7-Q82X

Cargo prior to Rust 1.26.0 may download the wrong dependency

Parche disponible
Descargar PNG JSON
CVSS
—
high
Fuente: —
ExplotaciónSin evidenciaNo figura en CISA KEV
Exploits públicos0Ninguno conocido
Parche1 versiónPrimer parche a -1475 d de la divulgación
Exposición1.640 dDesde la divulgación, 24 may 2022, 11:57 a. m.
Detección1.637 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
10 may 18
24 may 22
10 sept 26
17 nov 26
19 nov 26
10 may 18
27 jun 20
15 ago 22
2 oct 24
19 nov 26
FechaFaseEventoDetalle
Remediación Parche 0.27.0 cargo · -1475 d desde divulgación
Divulgación Publicada GHSA-9F3P-WVJ7-Q82X divulgada
Divulgación Modificada Última actualización del registro
Monitoreo Detectada Ingresó al índice
Resumen
Descripción del advisory
Texto original · GitHub · en inglés

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.

Versiones

Rangos afectados

Afectada Corregida Última
cargo< 0.27.0
0.27.0
0.100.0
Remediación

Estado del parche por paquete

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

Arsenal público

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

Referencias
Advisoryhttps://nvd.nist.gov/vuln/detail/CVE-2019-16760
Otrahttps://github.com/rust-lang/rust/security/advisories/GHSA-phjm-8x66-qw4r
Otrahttps://gist.github.com/pietroalbini/0d293b24a44babbeb6187e06eebd4992
Otrahttps://groups.google.com/forum/#!topic/rustlang-security-announcements/rVQ5e3TDnpQ
Otrahttps://groups.google.com/forum/#%21topic/rustlang-security-announcements/rVQ5e3TDnpQ
Otrahttp://www.openwall.com/lists/oss-security/2019/10/08/3

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