Home

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.

PUBLISHED Reserved 2026-03-31 | Published 2026-05-25 | Updated 2026-05-27 | Assigner rust




MEDIUM: 6.5CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:H/SI:H/SA:H

Problem types

CWE-61 UNIX symbolic link (symlink) following

Product status

Default status
unaffected

1.0.0 (semver) before 1.96.0
affected

References

groups.google.com/...ng-security-announcements/c/IB74S7Yksg8 vendor-advisory mailing-list

blog.rust-lang.org/2026/05/25/cve-2026-5223/ vendor-advisory

github.com/rust-lang/cargo/pull/17031 patch

cve.org (CVE-2026-5223)

nvd.nist.gov (CVE-2026-5223)

Download JSON