BreachSpiderVerified, not vibes

CVE-2019-16760 in Rust-Lang Rust

High 7.5

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 b...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.17.5
EPSS1.3%
EPSS percentile70th
FixUnknown

Remotely exploitable over the network, low complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Rust-Lang Rust < 1.26.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2019-16760
BreachSpider IDBS-2019-GLOBAL-136202-H
CVSS vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published2019-09-30
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-16: CWE-16

CWE-494: CWE-494

Related attack patterns (CAPEC)

CAPEC-187 Malicious Automated Software Update via Redirection via CWE-494

CAPEC-533 Malicious Manual Software Update via CWE-494

CAPEC-538 Open-Source Library Manipulation via CWE-494

CAPEC-657 Malicious Automated Software Update via Spoofing via CWE-494

CAPEC-692 Spoof Version Control System Commit Metadata via CWE-494

Show all 12

CAPEC-693 StarJacking via CWE-494

CAPEC-695 Repo Jacking via CWE-494

CAPEC-185 Malicious Software Download via CWE-494

CAPEC-186 Malicious Software Update via CWE-494

CAPEC-662 Adversary in the Browser (AiTB) via CWE-494

CAPEC-691 Spoof Open-Source Software Metadata via CWE-494

CAPEC-184 Software Integrity Attack via CWE-494

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

This vulnerability was disclosed in 2019. A high severity vulnerability affects Rust-Lang systems (CVE-2019-16760). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

Vulnerability details: 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 CVSS vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.

Questions

What is CVE-2019-16760?

This vulnerability was disclosed in 2019. A high severity vulnerability affects Rust-Lang systems (CVE-2019-16760). No public exploit code is currently available. Isolate affected systems if patching is not feasible.

What is the CVSS score for CVE-2019-16760?

CVE-2019-16760 has CVSS 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 1.3%.

Is CVE-2019-16760 actively exploited?

No confirmed active exploitation of CVE-2019-16760 as of 2026-09-25.

How do I remediate CVE-2019-16760?

Priority: MEDIUM.

What systems are affected by CVE-2019-16760?

CVE-2019-16760 affects Rust-Lang Rust.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Rust-Lang","product":"Rust","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.