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.
Conclusion & alert: CVE-2026-5222 is rated Low Risk (12.7/100): CVSS Low severity, with low exploitation likelihood (EPSS 0.03%). Mandatory action: Low composite risk—no urgent action required; patch on your normal maintenance cycle and revisit priority if CVSS or EPSS increases.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-02 | 0.05% | 0.03% | -0.02% |
| 2 | 2026-05-31 | 0.04% | 0.05% | +0.01% |
| 3 | 2026-05-25 | — | 0.04% | — |
Full EPSS history (3 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 2.3 | 4.0 | LOW |
|
— | — | 986d4109-89ea-491f-99fd-a8e4803919bd |
| 6.5 | 3.1 | MEDIUM |
|
2.8 | 3.6 | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
debian
|
not yet assigned | CVE-2026-5222 not yet assigned priority: Debian including 3 source packages (cargo, rust-cargo, rustc), 12 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): open 8, resolved 4. | https://security-tracker.debian.org/tracker/CVE-2026-5222 |
suse
|
low | — | https://www.suse.com/security/cve/CVE-2026-5222/ |
ubuntu
|
medium | CVE-2026-5222 medium priority: Ubuntu including 19 source packages (cargo, rustc, …), 105 status rows across 8 suites (bionic, focal, jammy, noble, questing, resolute, trusty, upstream): needs-triage 64, DNE 41. | https://ubuntu.com/security/CVE-2026-5222 |
| URL | Tags |
|---|---|
| https://blog.rust-lang.org/2026/05/25/cve-2026-5222/ | Vendor Advisory |
| https://github.com/rust-lang/cargo/pull/17031 | Issue Tracking Patch |
| https://groups.google.com/g/rustlang-security-announcements/c/SfUxOiIdY5s | Third Party Advisory Mailing List |