7.5

CVE-2019-16760: Cargo prior to Rust 1.26.0 may download the wrong dependency

Modified
AliasesALPINE-CVE-2019-16760DEBIAN-CVE-2019-16760GHSA-9f3p-wvj7-q82x
Published 30-09-2019Last modified 05-08-2024

Vulnerability summary

CVE-2019-16760 is a high (CVSS 7.5) Configuration vulnerability in rust-lang rust. EPSS estimates a 1.26% chance of exploitation in the next 30 days, higher than 70.6% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 4.6, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.5/10
010
High · v3.1 (NVD)
EPSS score
1.26%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Timeline

  1. 30-09-2019
    PublishedVulnerability first disclosed.
  2. 05-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

6 scores · 5 sources · 2 versions

EPSS trend

Probability

1.26%

Chance of exploitation in the next 30 days

Percentile

71%

Versus all other CVEs

30-day change

No change 0.00 pp

From 1.26% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Rust

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Alpine2 products
  • chromium-rust< 1.26.0-r0
  • rust< 1.26.0-r0
Crates.Io1 product
  • cargo< 0.27.0
Debian1 product
  • cargo< 0.27.0-1
Rust1 product
Rust-lang1 product

5 vendors · 6 products

References

8 links