CVE-2026-5223

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

Configuration 1 (hide)

cpe:2.3:a:rust-lang:cargo:*:*:*:*:*:rust:*:*

History

23 Jul 2026, 17:10

Type Values Removed Values Added
Summary
  • (es) Cargo gestionó incorrectamente los enlaces simbólicos dentro de los tarballs de crates descargados de registros de terceros, permitiendo que un crate malicioso sobrescribiera el código fuente de otro crate del mismo registro. La gravedad de la vulnerabilidad es media para los usuarios de registros de terceros. Los usuarios de crates.io no se ven afectados, ya que crates.io prohíbe subir crates que contengan enlaces simbólicos.

17 Jun 2026, 10:58

Type Values Removed Values Added
References () https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8 - Third Party Advisory, Mailing List () https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8 - Mailing List, Third Party Advisory

01 Jun 2026, 17:52

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.3
CPE cpe:2.3:a:rust-lang:cargo:*:*:*:*:*:rust:*:*
First Time Rust-lang
Rust-lang cargo
References () https://blog.rust-lang.org/2026/05/25/cve-2026-5223/ - () https://blog.rust-lang.org/2026/05/25/cve-2026-5223/ - Mitigation, Vendor Advisory
References () https://github.com/rust-lang/cargo/pull/17031 - () https://github.com/rust-lang/cargo/pull/17031 - Issue Tracking, Patch
References () https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8 - () https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8 - Third Party Advisory, Mailing List

25 May 2026, 10:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-05-25 10:16

Updated : 2026-07-23 17:10


NVD link : CVE-2026-5223

Mitre link : CVE-2026-5223

CVE.ORG link : CVE-2026-5223


JSON object : View

Products Affected

rust-lang

  • cargo
CWE
CWE-61

UNIX Symbolic Link (Symlink) Following