CVE-2026-5223 — Cargo crates in cargo — CVE Details
Cargo crates in third party registries can override the cached source of other crates
Summary
Advisory Timeline
- First published June 26, 2026 (108 days ago).
- Last revised June 26, 2026 — 0 days after initial publication.
Remediation
Upgrade to the fixed version using your package manager.
cargo update -p cargo --precise 0.97.0
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (1)
Affects 1 ecosystem: crates.io (1).
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| cargo | crates.io | All versions | 0.97.0 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-61
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 9.6 score means for each attack dimension.
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
References
- https://github.com/rust-lang/cargo/security/advisories/GHSA-jq42-7mfv-hm57WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-5223ADVISORY
- https://github.com/rust-lang/cargo/pull/17031WEB
- https://blog.rust-lang.org/2026/05/25/cve-2026-5223WEB
- https://github.com/rust-lang/cargoPACKAGE
- https://groups.google.com/g/rustlang-security-announcements/c/IB74S7Yksg8WEB
Frequently Asked Questions
- What is CVE-2026-5223?
- Cargo crates in third party registries can override the cached source of other crates This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 9.6/10).
- How do I check if my project is affected by CVE-2026-5223?
- CVE-2026-5223 affects cargo. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-5223 and 200,000+ other known vulnerabilities.
Severity & Exploitability
Exploitation is straightforward and causes maximum impact. Patch immediately.
Also Known As
Related CVEs
- CVE-2019-16760HIGH
Cargo prior to Rust 1.26.0 may download the wrong dependency
- CVE-2023-38497HIGH
Cargo not respecting umask when extracting crate archives
- CVE-2026-102821MEDIUM
Russh: Unbounded memory exhaustion via CHANNEL_OPEN flood during a client-stalled rekey
- CVE-2026-102820MEDIUM
pageant: Out-of-bounds read / oversized allocation in `pageant` MemoryMap::read via a malicious Pageant agent (Windows)
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies