CVE-2026-5223

MEDIUM

Crates in third party registries can override the cached source of other crates

Title source: cna
STIX 2.1

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.

References (3)

Core 3

Scores

CVSS v3 5.3
EPSS 0.0042
EPSS Percentile 33.0%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-61
Status published
Products (2)
Rust Project/Cargo 1.0.0 - 1.96.0
rust-lang/cargo < 1.96.0
Published May 25, 2026
Tracked Since May 25, 2026