CVE-2026-5223Crates in third party registries can override the cached source of other crates
Updated under an hour ago ()
Does this affect you?
It affects Rust Project Cargo and 1 other product. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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.
- CVSS
- 6.5 MEDIUM (v4.0, CNA)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
- Weakness (CWE)
- CWE-61
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- rust
- NVD analysis
- Analyzed
- Record last updated
- May 27, 2026
- First seen by InfoSec Signals
- Oct 9, 2026
Affected products
Rust Project Cargo rust_project:cargo (from the name) | from 1.0.0 before 1.96.0 | CNA record |
rust-lang cargo rust-lang:cargo | before 1.96.0 | NVD |
References
- https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8vendor-advisory, mailing-list, third-party-advisory
- https://blog.rust-lang.org/2026/05/25/cve-2026-5223/vendor-advisory, mitigation
- https://github.com/rust-lang/cargo/pull/17031patch, issue-tracking
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.