Vulnerability
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 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.
10 advisories report this vulnerability, across 7 ecosystems.
Advisories in Red Hat
-
RHSA-2026:42923
Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
-
RHVEX-CVE-2026-5223
cargo: Cargo: Source code overwrite due to symlink mishandling in third-party registries