Vulnerability
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.
11 advisories report this vulnerability, across 8 ecosystems.
Advisories
-
ALAS2023-2026-1872
Amazon Linux 2023 - ALAS2023-2026-1872: Medium priority package update for rust-cargo-c
-
ALPINE-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…
- ALPINE-EDGE-CVE-2026-5222
-
AZL-88275
CVE-2026-5222 affecting package rust for versions less than 1.75.0-30
-
AZL-88281
CVE-2026-5222 affecting package rust for versions less than 1.90.0-9
-
DEBIAN-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…
-
FEDORA-2026-77528477c2
rust-anstyle-hyperlink-1.0.2-1.fc44 rust-anstyle-progress-0.1.4-1.fc44 rust-cargo-0.98.0-1.fc44 rust-cargo-c-0.10.24-1.fc44 rust-cargo-credential-libsecret-0.5.8-1.fc44 rust-cargo-util-0.2.30-1.fc44…
-
FEDORA-2026-ce685f40fe
rust-anstyle-hyperlink-1.0.2-1.fc43 rust-anstyle-progress-0.1.4-1.fc43 rust-cargo-0.98.0-1.fc43 rust-cargo-c-0.10.24-2.fc43 rust-cargo-credential-libsecret-0.5.8-1.fc43 rust-cargo-util-0.2.30-1.fc43…
-
GHSA-p688-r7jv-fm6f
Cargo can be coerced to share credentials between registries
-
SUSEVEX-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…
-
UBUNTU-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…