CVE-2026-5223 MEDIUM

CVE-2026-5223: Crates in third party registries can override the cached source of other crates

Vendor Rust Project
Product Cargo
Weakness CWE-61
Published May 25, 2026
Last update May 27, 2026

CVSS base score

6.5/10
Attack vector Network
Attack complexity Low
Privileges required None
User interaction
Confidentiality
Integrity

CVSS vector

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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

May 25, 2026 CVE published
May 27, 2026 Record updated