CVE-2026-5223
MEDIUMCrates in third party registries can override the cached source of other crates
Title source: cnaDescription
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
Core References
Vendor Advisory vendor-advisory
mailing-list
https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8
Vendor Advisory vendor-advisory
https://blog.rust-lang.org/2026/05/25/cve-2026-5223/
Patch patch
https://github.com/rust-lang/cargo/pull/17031
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