medium5.3
CVE-2026-5223
Cargo incorrectly handled symlinks inside of crate tarballs downloaded from third-party registries, allowing a malicious crate to override the source code of a…
Impact
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.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rust | cargo | < 0.97.0 | 0.97.0 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Rust-Lang | Cargo | before 1.96.0 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/advisories/GHSA-jq42-7mfv-hm57
- https://github.com/rust-lang/cargo/security/advisories/GHSA-jq42-7mfv-hm57
- https://nvd.nist.gov/vuln/detail/CVE-2026-5223
- https://github.com/rust-lang/cargo/pull/17031
- https://blog.rust-lang.org/2026/05/25/cve-2026-5223
- https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8
- https://blog.rust-lang.org/2026/05/25/cve-2026-5223/