CVE-2026-5222

EUVD-2026-31654
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.
ProviderTypeBase ScoreAtk. VectorAtk. ComplexityPriv. RequiredVector
NISTPrimary
6.5 MEDIUM
NETWORK
LOW
LOW
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Base Score
CVSS 3.x
EPSS Score
Percentile: 39.08%
Affected Products (NVD)
VendorProductVersion
rust-langcargo
1.68.0 ≤
𝑥
< 1.96.0
𝑥
= Vulnerable software versions
Debian logo
Debian Releases
Debian Product
Codename
cargo
bookworm
no-dsa
bullseye
postponed
rust-cargo
bookworm
no-dsa
bullseye
postponed
forky
0.91.0-4
fixed
sid
0.91.0-5
fixed
trixie
no-dsa
rustc
bookworm
no-dsa
bullseye
postponed
forky
1.95.0+dfsg1-2
fixed
sid
1.95.0+dfsg1-2
fixed
trixie
no-dsa
Ubuntu logo
Ubuntu Releases
Ubuntu Product
Codename
rustc-1.85
jammy
needs-triage
noble
needs-triage
questing
ignored
resolute
dne
rustc-1.88
jammy
dne
noble
dne
questing
ignored
resolute
dne
rustc-1.91
jammy
needs-triage
noble
needs-triage
questing
ignored
resolute
needs-triage
cargo
bionic
needs-triage
focal
needs-triage
jammy
needs-triage
noble
dne
questing
dne
resolute
dne
rustc
bionic
needs-triage
focal
needs-triage
jammy
needs-triage
noble
needs-triage
questing
dne
resolute
dne
trusty
needs-triage
rustc-1.62
jammy
needs-triage
noble
dne
questing
dne
resolute
dne
rustc-1.74
jammy
dne
noble
needs-triage
questing
dne
resolute
dne
rustc-1.76
focal
needs-triage
jammy
needs-triage
noble
needs-triage
questing
dne
resolute
dne
rustc-1.77
focal
needs-triage
jammy
needs-triage
noble
needs-triage
questing
dne
resolute
dne
rustc-1.78
focal
needs-triage
jammy
needs-triage
noble
needs-triage
questing
dne
resolute
dne
rustc-1.79
focal
needs-triage
jammy
needs-triage
noble
needs-triage
questing
dne
resolute
dne
rustc-1.80
focal
needs-triage
jammy
needs-triage
noble
needs-triage
questing
dne
resolute
dne
rustc-1.81
jammy
needs-triage
noble
needs-triage
questing
dne
resolute
dne
rustc-1.82
jammy
needs-triage
noble
needs-triage
questing
dne
resolute
dne
rustc-1.83
jammy
needs-triage
noble
needs-triage
questing
dne
resolute
dne
rustc-1.84
jammy
needs-triage
noble
needs-triage
questing
dne
resolute
dne
rustc-1.89
jammy
needs-triage
noble
needs-triage
questing
dne
resolute
dne
rustc-1.92
jammy
dne
noble
dne
questing
dne
resolute
needs-triage
rustc-1.93
jammy
dne
noble
dne
questing
dne
resolute
needs-triage
Amazon Linux logo
Amazon Linux Releases
Amazon Package
Release
cargo-c
Amazon Linux 2023
0:0.10.19-1.amzn2023.0.3
fixed
cargo-c-debuginfo
Amazon Linux 2023
0:0.10.19-1.amzn2023.0.3
fixed
rust-cargo-c-debugsource
Amazon Linux 2023
0:0.10.19-1.amzn2023.0.3
fixed
Azure Linux logo
Azure Linux Releases
Azure Package
Release
rust
Azure Linux 3.0
0:1.75.0-30.azl3
fixed