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
| Link | Resource |
|---|---|
| https://blog.rust-lang.org/2026/05/25/cve-2026-5223/ | Mitigation Vendor Advisory |
| https://github.com/rust-lang/cargo/pull/17031 | Issue Tracking Patch |
| https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8 | Mailing List Third Party Advisory |
Configurations
History
No history.
Information
Published : 2026-05-25 10:16
Updated : 2026-07-23 17:10
NVD link : CVE-2026-5223
Mitre link : CVE-2026-5223
CVE.ORG link : CVE-2026-5223
JSON object : View
Products Affected
rust-lang
- cargo
CWE
CWE-61
UNIX Symbolic Link (Symlink) Following
