CVE-2019-16760 Detail
Modified
This vulnerability has been modified since it was last analyzed by the NVD. It is awaiting reanalysis which may result in further changes to the information provided.
Current Description
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.
Source:
MITRE
View Analysis Description
Analysis Description
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.
Source:
MITRE
Severity
CVSS 3.x Severity and Metrics:
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
CNA: security-advisories@github.com
Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
CVSS 2.0 Severity and Metrics:
Vector: (AV:N/AC:L/Au:N/C:N/I:P/A:N)
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because
they may have information that would be of interest to you. No inferences should be drawn on account of other sites
being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose.
NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further,
NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about
this page to nvd@nist.gov.
Weakness Enumeration
CWE-ID |
CWE Name |
Source |
CWE-494 |
Download of Code Without Integrity Check |
NIST
|
CWE-16 |
Configuration |
security-advisories@github.com
|
Change History
4 change records found
- show changes
CVE Modified by MITRE -
10/9/2019 7:47:06 PM
Action |
Type |
Old Value |
New Value |
Added |
CVSS V3.1 |
|
security-advisories@github.com AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L |
Added |
CWE |
|
security-advisories@github.com CWE-16 |
CVE Modified by MITRE -
10/8/2019 2:15:14 PM
Action |
Type |
Old Value |
New Value |
Added |
Reference |
|
http://www.openwall.com/lists/oss-security/2019/10/08/3 [No Types Assigned] |
Initial Analysis -
10/8/2019 10:18:52 AM
Action |
Type |
Old Value |
New Value |
Added |
CPE Configuration |
|
OR
*cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:* versions up to (excluding) 1.26.0 |
Added |
CVSS V2 |
|
NIST (AV:N/AC:L/Au:N/C:N/I:P/A:N) |
Added |
CVSS V3.1 |
|
NIST AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N |
Added |
CWE |
|
CWE-494 |
Changed |
Reference Type |
https://gist.github.com/pietroalbini/0d293b24a44babbeb6187e06eebd4992 No Types Assigned |
https://gist.github.com/pietroalbini/0d293b24a44babbeb6187e06eebd4992 Patch, Third Party Advisory |
Changed |
Reference Type |
https://github.com/rust-lang/rust/security/advisories/GHSA-phjm-8x66-qw4r No Types Assigned |
https://github.com/rust-lang/rust/security/advisories/GHSA-phjm-8x66-qw4r Exploit, Third Party Advisory |
Changed |
Reference Type |
https://groups.google.com/forum/#!topic/rustlang-security-announcements/rVQ5e3TDnpQ No Types Assigned |
https://groups.google.com/forum/#!topic/rustlang-security-announcements/rVQ5e3TDnpQ Exploit, Mailing List, Third Party Advisory |
CVE Modified by MITRE -
10/1/2019 2:15:13 PM
Action |
Type |
Old Value |
New Value |
Changed |
Description |
Record truncated, showing 500 of 1332 characters.
View Entire Change Record
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. If you published a crate |
Record truncated, showing 500 of 1169 characters.
View Entire Change Record
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 |
Removed |
Reference |
https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#renaming-dependencies-in-cargotoml [No Types Assigned] |
|
Removed |
Reference |
https://github.com/rust-lang/cargo/pull/4953 [No Types Assigned] |
|
Quick Info
CVE Dictionary Entry:
CVE-2019-16760
NVD Published Date:
09/30/2019
NVD Last Modified:
10/08/2019
|