Live threats

All CVEs / Rust-lang

CVE-2026-5223Rust-lang Cargo

Medium 6.5 No auth needed

Priority
54
CVSS 4.0
6.5
EPSS
—
Auth required
No
Published
May 25, 2026
Updated
Jul 23, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-61
SSVC (CISA)
Exploitation: none · Automatable: no · Technical impact: partial
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/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

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Cargo.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io cargo < 0.97.0 0.97.0 cargo update -p cargo --precise 0.97.0

Per OSV / GitHub Advisories (GHSA-jq42-7mfv-hm57). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
rust-langcargo< 1.96.0

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.