{"id":"EUVD-2022-3359","enisaUuid":"1130602c-df70-3bcb-9e80-1c9fdd6f300d","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.","datePublished":"Sep 30, 2019, 9:39:38 PM","dateUpdated":"Aug 5, 2024, 1:24:48 AM","baseScore":4.6,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","references":"https://github.com/rust-lang/rust/security/advisories/GHSA-phjm-8x66-qw4r\nhttps://groups.google.com/forum/#%21topic/rustlang-security-announcements/rVQ5e3TDnpQ\nhttps://gist.github.com/pietroalbini/0d293b24a44babbeb6187e06eebd4992\nhttp://www.openwall.com/lists/oss-security/2019/10/08/3\n","aliases":"CVE-2019-16760\nGHSA-9f3p-wvj7-q82x\n","assigner":"GitHub_M","epss":1.26,"enisaIdProduct":[{"id":"f102baa0-9289-300c-9c76-efbb6a73542a","product":{"name":"cargo","vendor":{"name":"rust-lang"}},"product_version":"1.0.0 \u003c1.26.0"}],"enisaIdVendor":[{"id":"92b3b3b3-a432-3a2d-b431-6139ff964d5a","vendor":{"name":"rust"}}],"enisaIdVulnerability":[{"id":"122c5cde-5e98-30af-aaa6-33bf90ae3807","vulnerability":{"id":"GHSA-9f3p-wvj7-q82x","description":"Cargo prior to Rust 1.26.0 may download the wrong dependency","datePublished":"May 24, 2022, 4:57:30 PM","dateUpdated":"Aug 29, 2024, 6:03:14 PM","baseScore":null,"references":"https://github.com/rust-lang/rust/security/advisories/GHSA-phjm-8x66-qw4r\nhttps://nvd.nist.gov/vuln/detail/CVE-2019-16760\nhttps://gist.github.com/pietroalbini/0d293b24a44babbeb6187e06eebd4992\nhttps://groups.google.com/forum/#!topic/rustlang-security-announcements/rVQ5e3TDnpQ\nhttps://groups.google.com/forum/#%21topic/rustlang-security-announcements/rVQ5e3TDnpQ\nhttp://www.openwall.com/lists/oss-security/2019/10/08/3\n","enisa_id":"EUVD-2022-3359\n","aliases":"CVE-2019-16760\nGHSA-9f3p-wvj7-q82x\n","epss":0.0,"dataProcessed":"Nov 15, 2026, 2:23:54 AM","vulnerabilityProduct":[],"vulnerabilityVendor":[]}},{"id":"2816f524-f63f-3d56-9cd2-53f5d4f80d56","vulnerability":{"id":"CVE-2019-16760","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.","datePublished":"Sep 30, 2019, 9:39:38 PM","dateUpdated":"Aug 5, 2024, 1:24:48 AM","status":"PUBLISHED","baseScore":4.6,"baseScoreVersion":"3.1","baseScoreVector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","references":"https://github.com/rust-lang/rust/security/advisories/GHSA-phjm-8x66-qw4r\nhttps://groups.google.com/forum/#%21topic/rustlang-security-announcements/rVQ5e3TDnpQ\nhttps://gist.github.com/pietroalbini/0d293b24a44babbeb6187e06eebd4992\nhttp://www.openwall.com/lists/oss-security/2019/10/08/3\n","enisa_id":"EUVD-2022-3359\n","assigner":"GitHub_M","epss":1.26,"dataProcessed":"Nov 17, 2026, 7:18:25 AM","vulnerabilityProduct":[{"id":"e05c0ebe-3228-3891-b112-d1b86a2ddd36","product":{"name":"cargo","vendor":{"name":"rust-lang"}},"product_version":"1.0.0 \u003c1.26.0"}],"vulnerabilityVendor":[{"id":"c1ad5e76-474d-3b23-9bc6-48ec6942a634","vendor":{"name":"rust"}}]}}],"enisaIdAdvisory":[{"id":"3255d279-f471-3899-8e39-09ab25a633cf","advisory":{"id":"msrc_CVE-2019-16760","description":"Cargo prior to Rust 1.26.0 may download the wrong dependency","datePublished":"Sep 2, 2019, 12:00:00 AM","dateUpdated":"Feb 18, 2026, 3:05:16 PM","baseScore":0.0,"references":"https://msrc.microsoft.com/csaf/vex/2019/msrc_cve-2019-16760.json\n","aliases":"CVE-2019-16760\n","source":{"id":20,"name":"csaf_microsoft"},"advisoryProduct":[{"id":"13eccdfc-62ae-38a1-92d8-6048e1f43fe1","product":{"name":"azl3 rust 1.90.0-3","vendor":{"name":"Microsoft"}}},{"id":"22ada9ee-cd5c-3851-a00b-1c0c7af93666","product":{"name":"rust","vendor":{"name":"rust-lang"}}},{"id":"5b805c26-a63f-3a17-ac24-3b48072a997c","product":{"name":"azl3 rust 1.75.0-24","vendor":{"name":"Microsoft"}}},{"id":"a73453a7-259e-35d2-a9ab-a7236d048f62","product":{"name":"3.0","vendor":{"name":"Wind River"}}},{"id":"f082cb2b-82cd-31db-8c56-dd8f12ef3e60","product":{"name":"Azure Linux","vendor":{"name":"Microsoft"}}}]}}]}