CVE-2026-5223
MEDIUM EPSS 21.1%
Published May 25, 20261mo ago · Modified Jun 17, 20262w ago
6.5 CVSS 4.0
Published May 25, 2026 1mo ago
Last Modified Jun 17, 2026 2w ago
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.
CVSS Details
Base Score
Exploitability
Impact
Vector string
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction P
Scope X
Threat Intelligence
EPSS Exploit Probability
21.1% percentile
Exploit & Patch Status
No Known Exploit
Patch Available
Weaknesses 1
CWE-61
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| rust-lang | cargo | * | <1.96.0 |
References 3
- blog.rust-lang.org https://blog.rust-lang.org/2026/05/25/cve-2026-5223/
- github.com https://github.com/rust-lang/cargo/pull/17031
- groups.google.com https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8
Remediation
- github.com https://github.com/rust-lang/cargo/pull/17031