CVE-2026-5223
Crates in third party registries can override the cached source of other crates
- State
- Published
- Severity
- 6.5 Medium
- Published
- May 25, 2026
- Updated
- May 27, 2026
- Reserved
- Mar 31, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 6.5 Medium | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:H/SI:H/SA:H | rust |
Weaknesses
- CWE-61 UNIX symbolic link (symlink) following
Affected Products
| Product | Versions |
|---|---|
CargoRust Project |
|
References
- https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8vendor-advisorymailing-list
- https://blog.rust-lang.org/2026/05/25/cve-2026-5223/vendor-advisory
- https://github.com/rust-lang/cargo/pull/17031patch
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.