6.5

CVE-2026-5222: Cargo can be coerced to share credentials between registries

Analyzed
AliasesALPINE-CVE-2026-5222UBUNTU-CVE-2026-5222DEBIAN-CVE-2026-5222
Published 25-05-2026Last modified 26-05-2026

Vulnerability summary

CVE-2026-5222 is a medium (CVSS 6.5) vulnerability in rust-lang cargo. EPSS estimates a 0.48% chance of exploitation in the next 30 days, higher than 42.8% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 2.3, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
6.5/10
010
Medium · v3.1 (NVD)
EPSS score
0.48%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 25-05-2026
    PublishedVulnerability first disclosed.
  2. 26-05-2026
    Last modifiedVulnerability information updated.

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 metrics

8 scores · 6 sources · 2 versions

EPSS trend

Probability

0.48%

Chance of exploitation in the next 30 days

Percentile

43%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.48% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu19 products
  • cargoAll versions (No fix recorded)
  • rustcAll versions (No fix recorded)
  • rustc-1.62All versions (No fix recorded)
  • rustc-1.74All versions (No fix recorded)
  • rustc-1.76All versions (No fix recorded)
Debian3 products
  • cargoAll versions (No fix recorded)
  • rust-cargoAll versions (No fix recorded) | < 0.91.0-3
  • rustcAll versions (No fix recorded) | < 1.85.1+dfsg1-1+deb13u1 | < 1.95.0+dfsg1-2
Alpine2 products
  • chromium-rust< 1.96.0-r0
  • rust< 1.91.1-r2 | < 1.96.0-r0
Crates.Io1 product
  • cargo< 0.97.0
Rust1 product
  • cargo≥ 1.68.0, < 1.96.0
Rust-lang1 product
  • cargo≥ 1.68.0, < 1.96.0

6 vendors · 27 products

References

11 links
Show all 11 references