Symlink Handling Issue in Cargo from Rust Language
CVE-2026-5223
6.5MEDIUM
What is CVE-2026-5223?
The vulnerability arises from Cargo's improper management of symlinks in crate tarballs sourced from third-party registries. This flaw could permit a malicious crate to replace the source code of another crate within the same registry, posing a significant risk for users who rely on these external sources. Notably, users of crates.io are safeguarded against this issue, as the platform prohibits the upload of crates containing symlinks. It is crucial for developers utilizing Cargo from third-party registries to remain vigilant and ensure their environments are secure against potential exploitation.
Affected Version(s)
Cargo 1.0.0 < 1.96.0
