CVE Explorer
CVE-2026-5222
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.
Known exploited
Not asserted
Disputed
No
Stale source
No
Conflicts
0
Affected products and versions
1 source assertion{"collectionURL":"https://crates.io","defaultStatus":"unaffected","modules":["sparse index"],"packageName":"cargo","product":"Cargo","repo":"https://github.com/rust-lang/cargo","vendor":"Rust","versions":[{"lessThan":"1.96.0","status":"affected","version":"1.68.0","versionType":"semver"}]}
- cve_program_cvelist_v5affectedurn:baitaphish:normalized-source-record:v2:2bf3db541b07478dc702b49527cffdda5ea9235806c28256b2b478d474b2535c · sha256:4d3e779d6078a334… · /containers/cna/affected/0
Provider-owned CVSS observations
1 source assertion{"metric":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":2.3,"baseSeverity":"LOW","exploitMaturity":"NOT_DEFINED","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"NONE","userInteraction":"PASSIVE","valueDensity":"NOT_DEFINED","vectorString":"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","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpac…
- cve_program_cvelist_v5cvssurn:baitaphish:normalized-source-record:v2:2bf3db541b07478dc702b49527cffdda5ea9235806c28256b2b478d474b2535c · sha256:4d3e779d6078a334… · /containers/cna/metrics/0/cvssV4_0
CWE assertions
1 source assertion{"cweId":"CWE-647","description":"CWE-647 Use of Non-Canonical URL paths for authorization decisions","lang":"en","type":"CWE"}
- cve_program_cvelist_v5cweurn:baitaphish:normalized-source-record:v2:2bf3db541b07478dc702b49527cffdda5ea9235806c28256b2b478d474b2535c · sha256:4d3e779d6078a334… · /containers/cna/problemTypes/0/descriptions/0
Source references
3 source assertions{"tags":["vendor-advisory"],"url":"https://blog.rust-lang.org/2026/05/25/cve-2026-5222/"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:2bf3db541b07478dc702b49527cffdda5ea9235806c28256b2b478d474b2535c · sha256:4d3e779d6078a334… · /containers/cna/references/1
{"tags":["patch"],"url":"https://github.com/rust-lang/cargo/pull/17031"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:2bf3db541b07478dc702b49527cffdda5ea9235806c28256b2b478d474b2535c · sha256:4d3e779d6078a334… · /containers/cna/references/2
{"tags":["vendor-advisory","mailing-list"],"url":"https://groups.google.com/g/rustlang-security-announcements/c/SfUxOiIdY5s"}
- cve_program_cvelist_v5referenceurn:baitaphish:normalized-source-record:v2:2bf3db541b07478dc702b49527cffdda5ea9235806c28256b2b478d474b2535c · sha256:4d3e779d6078a334… · /containers/cna/references/0
Attribution and limitations
- CVE Program CVEList V5: Reproduce the MITRE copyright designation and CVE license in copies. Source →
Provider severity values are preserved separately. Baitaphish does not convert them into a risk rating, infer affected products, or treat EPSS as observed exploitation.