{"api_version":"1","generated_at":"2026-07-23T10:32:36+00:00","cve":"CVE-2019-16760","urls":{"html":"https://cve.report/CVE-2019-16760","api":"https://cve.report/api/cve/CVE-2019-16760.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2019-16760","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2019-16760"},"summary":{"title":"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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2019-09-30 22:15:00","updated_at":"2023-11-07 03:05:00"},"problem_types":["CWE-494"],"metrics":[],"references":[{"url":"https://github.com/rust-lang/rust/security/advisories/GHSA-phjm-8x66-qw4r","name":"https://github.com/rust-lang/rust/security/advisories/GHSA-phjm-8x66-qw4r","refsource":"CONFIRM","tags":["Exploit","Third Party Advisory"],"title":"Cargo prior to Rust 1.26.0 may download the wrong dependency · Advisory · rust-lang/rust · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"0"},{"url":"https://groups.google.com/forum/#%21topic/rustlang-security-announcements/rVQ5e3TDnpQ","name":"https://groups.google.com/forum/#%21topic/rustlang-security-announcements/rVQ5e3TDnpQ","refsource":"","tags":[],"title":"Google Groups","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://gist.github.com/pietroalbini/0d293b24a44babbeb6187e06eebd4992","name":"https://gist.github.com/pietroalbini/0d293b24a44babbeb6187e06eebd4992","refsource":"MISC","tags":["Patch","Third Party Advisory"],"title":"Patches for CVE-2019-16760 · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.openwall.com/lists/oss-security/2019/10/08/3","name":"[oss-security] 20191008 CVE-2019-16760: Cargo prior to Rust 1.26.0 may download the wrong dependency","refsource":"MLIST","tags":[],"title":"oss-security - CVE-2019-16760: Cargo prior to Rust 1.26.0 may download the wrong\n dependency","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://groups.google.com/forum/#!topic/rustlang-security-announcements/rVQ5e3TDnpQ","name":"https://groups.google.com/forum/#!topic/rustlang-security-announcements/rVQ5e3TDnpQ","refsource":"MISC","tags":["Exploit","Mailing List","Third Party Advisory"],"title":"Google Groups","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2019-16760","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2019-16760","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2019","cve_id":"16760","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"rust-lang","cpe5":"rust","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2019","cve_id":"16760","vulnerable":"1","versionEndIncluding":"1","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"rust-lang","cpe5":"rust","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2019-16760","qid":"501241","title":"Alpine Linux Security Update for rust"}]},"source_records":{"cve_program":{"CVE_data_meta":{"ASSIGNER":"security-advisories@github.com","ID":"CVE-2019-16760","STATE":"PUBLIC","TITLE":"Cargo prior to Rust 1.26.0 may download the wrong dependency"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"cargo","version":{"version_data":[{"version_affected":"<","version_name":"1.0.0","version_value":"1.26.0"}]}}]},"vendor_name":"rust"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"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."}]},"impact":{"cvss":{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":4.6,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"LOW","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L","version":"3.1"}},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-16 Configuration"}]}]},"references":{"reference_data":[{"name":"https://github.com/rust-lang/rust/security/advisories/GHSA-phjm-8x66-qw4r","refsource":"CONFIRM","url":"https://github.com/rust-lang/rust/security/advisories/GHSA-phjm-8x66-qw4r"},{"name":"https://groups.google.com/forum/#!topic/rustlang-security-announcements/rVQ5e3TDnpQ","refsource":"MISC","url":"https://groups.google.com/forum/#!topic/rustlang-security-announcements/rVQ5e3TDnpQ"},{"name":"https://gist.github.com/pietroalbini/0d293b24a44babbeb6187e06eebd4992","refsource":"MISC","url":"https://gist.github.com/pietroalbini/0d293b24a44babbeb6187e06eebd4992"},{"refsource":"MLIST","name":"[oss-security] 20191008 CVE-2019-16760: Cargo prior to Rust 1.26.0 may download the wrong dependency","url":"http://www.openwall.com/lists/oss-security/2019/10/08/3"}]},"source":{"advisory":"GHSA-phjm-8x66-qw4r","discovery":"UNKNOWN"}},"nvd":{"publishedDate":"2019-09-30 22:15:00","lastModifiedDate":"2023-11-07 03:05:00","problem_types":["CWE-494"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":7.5,"baseSeverity":"HIGH"},"exploitabilityScore":3.9,"impactScore":3.6},"baseMetricV2":{"cvssV2":{"version":"2.0","vectorString":"AV:N/AC:L/Au:N/C:N/I:P/A:N","accessVector":"NETWORK","accessComplexity":"LOW","authentication":"NONE","confidentialityImpact":"NONE","integrityImpact":"PARTIAL","availabilityImpact":"NONE","baseScore":5},"severity":"MEDIUM","exploitabilityScore":10,"impactScore":2.9,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":false,"userInteractionRequired":false}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:rust-lang:rust:*:*:*:*:*:*:*:*","versionEndExcluding":"1.26.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2019","CveId":"16760","Ordinal":"156482","Title":"CVE-2019-16760","CVE":"CVE-2019-16760","Year":"2019"},"notes":[{"CveYear":"2019","CveId":"16760","Ordinal":"1","NoteData":"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.","Type":"Description","Title":null},{"CveYear":"2019","CveId":"16760","Ordinal":"2","NoteData":"2019-09-30","Type":"Other","Title":"Published"},{"CveYear":"2019","CveId":"16760","Ordinal":"3","NoteData":"2019-10-08","Type":"Other","Title":"Modified"}]}}}