CVE-2026-5222

6.5 MEDIUM
Published: May 25, 2026 Modified: June 01, 2026
View on NVD

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.

AI Explanation

Get an AI-powered plain-language explanation of this vulnerability and remediation steps.

Login to generate AI explanation

CVSS v3.x Details

0.0 Low Medium High Critical 10.0
Vector String
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

References to Advisories, Solutions, and Tools

Patch Vendor Advisory Exploit Third Party Advisory
https://blog.rust-lang.org/2026/05/25/cve-2026-5222/
Source: 986d4109-89ea-491f-99fd-a8e4803919bd
Vendor Advisory
https://github.com/rust-lang/cargo/pull/17031
Source: 986d4109-89ea-491f-99fd-a8e4803919bd
Issue Tracking Patch
https://groups.google.com/g/rustlang-security-announcements/c/SfUxOiIdY5s
Source: 986d4109-89ea-491f-99fd-a8e4803919bd
Third Party Advisory Mailing List

3 reference(s) from NVD

Quick Stats

CVSS v3 Score
6.5 / 10.0
EPSS (Exploit Probability)
0.4%
31th percentile
Exploitation Status
Not in CISA KEV

Weaknesses (CWE)

Affected Vendors

rust-lang