ADVISORIES

Debian Security Tracker

DEBIAN-CVE-2026-5222

Details

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.

Affected packages

EcosystemPackageAffected versions
Debian:12cargo
All versions, no fix listed
Debian:12rust-cargo
All versions, no fix listed
Debian:13rust-cargo
All versions, no fix listed
Debian:14rust-cargo
All versions before 0.91.0-3 (fixed in 0.91.0-3)
Debian:12rustc
All versions, no fix listed
Debian:13rustc
All versions before 1.85.1+dfsg1-1+deb13u1 (fixed in 1.85.1+dfsg1-1+deb13u1)
Debian:14rustc
All versions before 1.95.0+dfsg1-2 (fixed in 1.95.0+dfsg1-2)

References