CVE-2019-16760
Cargo prior to Rust 1.26.0 may download the wrong dependency
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.
Exposure status: unknown. This page does not establish whether an installed system is affected or corrected.
Severity and exploitation evidence
EPSS: 1.260% · score date 2026-11-19. EPSS is an estimated probability over the next 30 days, not proof of exploitation.
CISA KEV: not included in the checked catalog; exploitation may still occur. Last checked: 2026-11-19T16:25:55.090Z. Public exploit availability is not used to set this status.
CVSS 3.1 · 4.6 · published by GitHub_MCVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:L/I:L/A:L
Assessment source · checked 2026-11-19T12:55:16.001Z
CVSS 3.1 · 7.5 · published by Ubuntu SecurityCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Assessment source · checked 2026-11-19T12:49:39.961Z
Verification by field
| Field | Status | Checked at (UTC) | Source |
|---|---|---|---|
| kev | verified | 2026-11-19T16:25:55.090Z | CISA KEV |
| cvss | verified | 2026-11-19T12:55:16.001Z | CVE Program |
| epss | verified | 2026-11-19T16:04:26.162Z | FIRST EPSS |
| patches | unknown | unknown | unknown |
| affected | verified | 2026-11-19T12:55:16.001Z | CVE Program |
| lifecycle | verified | 2026-11-19T12:55:16.001Z | CVE Program |
Affected versions and configuration
rust cargo; default status: unknown: 1.0.0 to < 1.26.0 [affected; scheme: custom]
Defaults, conditional configuration, package status and version schemes are retained below. A version range alone is not an exposure verdict.
CVE Program · cve-json · full conditions
{
"affected": [
{
"vendor": "rust",
"product": "cargo",
"versions": [
{
"status": "affected",
"version": "1.0.0",
"lessThan": "1.26.0",
"versionType": "custom"
}
]
}
],
"additionalContainers": [
{
"title": "CVE Program Container",
"references": [
{
"url": "https://github.com/rust-lang/rust/security/advisories/GHSA-phjm-8x66-qw4r",
"tags": [
"x_refsource_CONFIRM",
"x_transferred"
]
},
{
"url": "https://groups.google.com/forum/#%21topic/rustlang-security-announcements/rVQ5e3TDnpQ",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"url": "https://gist.github.com/pietroalbini/0d293b24a44babbeb6187e06eebd4992",
"tags": [
"x_refsource_MISC",
"x_transferred"
]
},
{
"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",
"tags": [
"mailing-list",
"x_refsource_MLIST",
"x_transferred"
]
}
],
"providerMetadata": {
"orgId": "af854a3a-2127-422b-91ae-364da2661108",
"shortName": "CVE",
"dateUpdated": "2024-08-05T01:24:48.330Z"
}
}
]
}Archived source JSONUbuntu Security · ubuntu-package · full conditions
[
{
"name": "rustc",
"debian": "https://tracker.debian.org/pkg/rustc",
"source": "https://ubuntu.com/security/cve?package=rustc",
"ubuntu": "https://packages.ubuntu.com/search?suite=all§ion=all&arch=any&searchon=sourcenames&keywords=rustc",
"statuses": [
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "",
"release_codename": "bionic"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "",
"release_codename": "disco"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "",
"release_codename": "eoan"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "",
"release_codename": "trusty"
},
{
"pocket": "security",
"status": "needs-triage",
"component": null,
"description": "",
"release_codename": "upstream"
},
{
"pocket": "security",
"status": "not-affected",
"component": null,
"description": "",
"release_codename": "xenial"
}
]
}
]Archived source JSONCorrection evidence
Distribution packages and upstream releases are distinct. ESM channels may require the corresponding Ubuntu entitlement. Notes and branch ranges are not installable package versions. OSV fixed boundaries are ecosystem-specific version thresholds, not proof that a package is currently available or installed.
No correction has been verified in the connected records. This does not mean the system is secure or that no vendor correction exists.
Vendor notices and operational guidance
No connected vendor notice is available for this record.
Original sources and dates
- CISA KEVConsulted: 2026-11-19T16:25:55.090ZArchived source JSON
Source publication: not supplied
Source modification: 2026-11-18T19:17:41.0354ZDocument fingerprint
a35fdc67c7d9802988dcfc1d3ff1198da327948d1db122ab7692ac201055ac56 - CVE ProgramConsulted: 2026-11-19T12:55:16.001ZArchived source JSON
Source publication: 2019-09-30T21:39:38.000Z
Source modification: 2024-08-05T01:24:48.330ZDocument fingerprint
75aa675c2cc075bbb5a1e10966d1819107c186f2b28d8f37b0a4845f495d9f9e - Ubuntu SecurityConsulted: 2026-11-19T12:49:39.961ZArchived source JSON
Source publication: 2019-09-30T22:15:00.000Z
Source modification: 2025-08-25T23:07:40.294ZDocument fingerprint
2ffb2df7f124656a86e81a91681f7b463935bf66a8dcd31eaf4211d1e4911f18 - FIRST EPSSConsulted: 2026-11-19T16:04:26.162ZArchived source JSON
Source publication: not supplied
Source modification: not suppliedDocument fingerprint
7abbe4ce06d2e8bb455f2bea7d1b0208d974d5b94326ea2519702209932a790f
Official status history
- UNKNOWN → PUBLISHED · · evidence