Skip to main content
← All vulnerabilities
CVE-2026-5222GHSA-P688-R7JV-FM6F

Cargo can be coerced to share credentials between registries

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.96.0, 0.97.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • cargo

    From 1.68.0 · fixed in 1.96.0

  • cargocrates.io

    fixed in 0.97.0

References 3

groups.google.com

blog.rust-lang.org

GitHub · rust-lang/cargo