CVE-2026-5222: Rustc · Cargo between 1.68 and 1.96 incorrectly normalized the URLs of third-party registries using the
Affects rustcSource GCVE Database
Not known to be exploited · CVSS 2.3 Low.
Data as of 24 Nov 2026, 20:12 UTC
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:L/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 25 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSrustc-1.91pkg:deb/ubuntu/rustc-1.91?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSrustc-1.92pkg:deb/ubuntu/rustc-1.92?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSrustc-1.93pkg:deb/ubuntu/rustc-1.93?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10rustc-1.85pkg:deb/ubuntu/rustc-1.85?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10rustc-1.88pkg:deb/ubuntu/rustc-1.88?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10rustc-1.91pkg:deb/ubuntu/rustc-1.91?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-5222 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-5222 (opens in a new tab)
- blog.rust-lang.org/2026/05/25/cve-2026-5222/ (opens in a new tab)
- github.com/rust-lang/cargo/pull/17031 (opens in a new tab)
- groups.google.com/g/rustlang-security-announcements/c/SfUxOiIdY5s (opens in a new tab)