CVE-2026-5222
LOW EPSS 24.6%
Published May 25, 20261mo ago · Modified Jun 17, 20262w ago
2.3 CVSS 4.0
Published May 25, 2026 1mo ago
Last Modified Jun 17, 2026 2w ago
Description
Cargo between 1.68 and 1.96 incorrectly normalized the URLs of third-party registries using the sparse index protocol. If a hosting provider allowed multiple registries to be hosted with arbitrary names within the same domain, an attacker able to publish crates in a registry could obtain the credentials of others users of the same registry. The severity of the vulnerability is **low**, due to the extremely niche requirements needed to achieve the attack.
CVSS Details
Base Score
Exploitability
Impact
Vector string
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N/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 Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction P
Scope X
Threat Intelligence
EPSS Exploit Probability
24.6% percentile
Exploit & Patch Status
No Known Exploit
Patch Available
Weaknesses 1
CWE-647
Affected Products 1
| Vendor | Product | Version | Range |
|---|---|---|---|
| rust-lang | cargo | * | ≥1.68.0 – <1.96.0 |
References 3
- blog.rust-lang.org https://blog.rust-lang.org/2026/05/25/cve-2026-5222/
- github.com https://github.com/rust-lang/cargo/pull/17031
- groups.google.com https://groups.google.com/g/rustlang-security-announcements/c/SfUxOiIdY5s
Remediation
- github.com https://github.com/rust-lang/cargo/pull/17031