6.5Medium

CVE-2026-5223Crates in third party registries can override the cached source of other crates

Rust Project Cargo Published: (5 months ago)

Description

Cargo incorrectly handled symlinks inside of crate tarballs downloaded from third-party registries, allowing a malicious crate to override the source code of another crate from the same registry. The severity of the vulnerability is **medium** for users of third-party registries. Users of crates.io are **not affected**, as crates.io forbids uploading crates containing any symlink.

Weakness (CWE): CWE-61

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Rust Project Cargo 1.0.0 – < 1.96.0
rust-lang cargo < 1.96.0

References and patches

CPE matches (NVD) (1)

  • cpe:2.3:a:rust-lang:cargo:*:*:*:*:*:rust:*:* < 1.96.0