CVE-2026-5222
published low CVSS 4.0 · 2.3Cargo can be coerced to share credentials between registries
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Rust | — | cargoCargo · 1.68.0 to < 1.96.0 · Other versions: unaffected | Affected | Not stated | rust |
| Amazon Linux | AL2 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1872 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | rust | Fixed | 1.96.0-r0 | Package fix record |
| Amazon Linux | AL2023 | rust-cargo-caarch64 | Listed in advisory | Not stated | ALAS2023-2026-1872 |
| Alpine Linux | v3.23 | rust | Fixed | 1.91.1-r2 | Package fix record |
| Alpine Linux | v3.24 | chromium-rust | Fixed | 1.96.0-r0 | Package fix record |
Show 3 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.24 | rust | Fixed | 1.96.0-r0 | Package fix record |
| Amazon Linux | AL2023 | rust-cargo-csrc | Listed in advisory | Not stated | ALAS2023-2026-1872 |
| Amazon Linux | AL2023 | rust-cargo-cx86_64 | Listed in advisory | Not stated | ALAS2023-2026-1872 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 2.3 / 10
- Severity
- low
- Provider
- rust · cna
- Vector string
- CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:L/VI:N/VA:N/SC:L/SI:N/SA:N
- Scenarios
- en: GENERAL
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Rust | Cargo | 1.68.0 to < 1.96.0 (affected · semver)Default: unaffected | rust · cna |
Weaknesses
1- CWE-647 CWE-647 Use of Non-Canonical URL paths for authorization decisions
References
3Provider assertions
2rust · cna
Cargo can be coerced to share credentials between registries
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5db6c538ada06387e6d402db731c7f2a3ec2617a3c2b86c512f1b8bed134d621
- Ingested
- 23 Sep 2026, 09:23:13 UTC
- Source record
- Official CVE record