cve.bz

CVE-2019-16760 rust-lang rust: Download of Code Without Integrity Check

7.5 highExploit referenceEPSS 1.3%Fix available

High (7.5) in rust-lang rust. EPSS 1.3% estimated probability of exploitation activity in the next 30 days. Fixed in cargo 0.27.0.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
1.3% (unchanged from 1.3% a week ago; 1.3% 30 days ago) estimated probability of exploitation activity in the next 30 days; 70th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-494 Download of Code Without Integrity Check
CWE-16 Configuration
OWASP Top 10
A02:2025 Security Misconfiguration, A08:2025 Software or Data Integrity Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2019-16760 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2019-16760?via=ask-ai-copy and https://cve.bz/cve/CVE-2019-16760?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2019-16760 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
rust cargofrom 1.0.0 before 1.26.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-9f3p-wvj7-q82xcrates.iocargo<0.27.00.27.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12cargo0.27.0-1DEBIAN-CVE-2019-16760
Alpinev3.11, v3.12, v3.13 and 10 morerust1.26.0-r0ALPINE-CVE-2019-16760
Alpinev3.24rust, chromium-rust1.26.0-r0ALPINE-CVE-2019-16760

From the distributions' data via OSV.dev: the Debian Security Tracker; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8rust-toolset:rhel8/rustNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2019-16760.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-494 (12).

References

Check your stackJSON