CVE-2026-5223: Crates in third party registries can override the cached source of other crates
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 Software
Remediation
Information
Event History
Frequently Asked Questions
What is the severity of CVE-2026-5223?
The severity of CVE-2026-5223 is medium for users of third-party registries.
How do I fix CVE-2026-5223?
To fix CVE-2026-5223, update to Rust 1.96.0 or later, which will reject any symlink in crate tarballs.
What is the impact of CVE-2026-5223?
CVE-2026-5223 allows a malicious crate to override the source code of another crate from the same third-party registry.
Which software is affected by CVE-2026-5223?
CVE-2026-5223 affects Rust Cargo, particularly when using third-party registries.
When was CVE-2026-5223 published?
CVE-2026-5223 was published on May 25, 2026.