CVEvulnerability

CVE-2026-5223

6.5 MEDIUM Published 2026-05-25 Modified 2026-07-23 Official page ↗
Status
Analyzed
Published
2026-05-25
Last modified
2026-07-23
Assigner
986d4109-89ea-491f-99fd-a8e4803919bd
CVSS 4.0 (986d4109-89ea-491f-99fd-a8e4803919bd)
6.5 MEDIUM — 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
CVSS 3.1 ([email protected])
5.3 MEDIUM — CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N
Weaknesses
CWE-61

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.

Affected configurations

• rust-lang cargo (< 1.96.0)

Related

Weakness · CWE (1)

  • CWE-61 UNIX Symbolic Link (Symlink) Following weakness

References