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.
History

Mon, 01 Jun 2026 18:00:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:rust-lang:cargo:*:*:*:*:*:rust:*:*
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N'}


Wed, 27 May 2026 20:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Tue, 26 May 2026 13:30:00 +0000

Type Values Removed Values Added
First Time appeared Rust-lang
Rust-lang cargo
Vendors & Products Rust-lang
Rust-lang cargo

Mon, 25 May 2026 09:45:00 +0000

Type Values Removed Values Added
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.
Title Crates in third party registries can override the cached source of other crates
Weaknesses CWE-61
References
Metrics cvssV4_0

{'score': 6.5, '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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: rust

Published:

Updated: 2026-05-27T18:35:35.093Z

Reserved: 2026-03-31T12:07:41.420Z

Link: CVE-2026-5223

cve-icon Vulnrichment

Updated: 2026-05-26T14:36:35.401Z

cve-icon NVD

Status : Analyzed

Published: 2026-05-25T10:16:15.480

Modified: 2026-06-01T17:52:18.003

Link: CVE-2026-5223

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-26T13:01:00Z