CVE-2026-5223

Crates in third party registries can override the cached source of other crates

State
Published
Severity
6.5 Medium
Published
May 25, 2026
Updated
May 27, 2026
Reserved
Mar 31, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.06.5 MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:H/SI:H/SA:Hrust

Weaknesses

  • CWE-61 UNIX symbolic link (symlink) following

Affected Products

ProductVersions
CargoRust Project
  • 1.0.0 to before 1.96.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.