CVE-2026-5222

Cargo can be coerced to share credentials between registries

State
Published
Severity
2.3 Low
Published
May 25, 2026
Updated
May 26, 2026
Reserved
Mar 31, 2026

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
4.02.3 LowCVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:L/SI:N/SA:Nrust

Weaknesses

  • CWE-647 Use of Non-Canonical URL paths for authorization decisions

Affected Products

ProductVersions
CargoRust
  • 1.68.0 to before 1.96.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.