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.
Problem types
CWE-61 UNIX symbolic link (symlink) following
Product status
1.0.0 (semver) before 1.96.0
References
groups.google.com/...ng-security-announcements/c/IB74S7Yksg8
blog.rust-lang.org/2026/05/25/cve-2026-5223/
github.com/rust-lang/cargo/pull/17031