cve.bz

CVE-2026-5222 rust-lang cargo

2.3 lowEPSS 0.5%Fix available

Low (2.3) in rust-lang cargo. EPSS 0.5% estimated probability of exploitation activity in the next 30 days. Fixed in cargo 0.97.0.

On this page
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.

Severity

CVSS 4.0

2.3 low
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

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
0.5% (unchanged from 0.5% a week ago; 0.5% 30 days ago) estimated probability of exploitation activity in the next 30 days; 42nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-05-26. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-647 Use of Non-Canonical URL Paths for Authorization Decisions
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-5222 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-5222?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-5222?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-5222 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Rust Cargofrom 1.68.0 before 1.96.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-p688-r7jv-fm6fcrates.iocargo<0.97.00.97.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12cargo, rustc, rust-cargono fix listedDEBIAN-CVE-2026-5222
Debian13rust-cargono fix listedDEBIAN-CVE-2026-5222
Debian13rustc1.85.1+dfsg1-1+deb13u1DEBIAN-CVE-2026-5222
Debian14rust-cargo0.91.0-3DEBIAN-CVE-2026-5222
Debian14rustc1.95.0+dfsg1-2DEBIAN-CVE-2026-5222
Ubuntu22.04:LTSrustc, rustc-1.62, rustc-1.76 and 11 moreno fix listedUBUNTU-CVE-2026-5222
Ubuntu24.04:LTSrustc, rustc-1.74, rustc-1.76 and 11 moreno fix listedUBUNTU-CVE-2026-5222
Ubuntu25.10rustc-1.85, rustc-1.88, rustc-1.91no fix listedUBUNTU-CVE-2026-5222
Ubuntu26.04:LTSrustc-1.91, rustc-1.92, rustc-1.93no fix listedUBUNTU-CVE-2026-5222
UbuntuPro:14.04:LTSrustcno fix listedUBUNTU-CVE-2026-5222
UbuntuPro:16.04:LTS, Pro:18.04:LTScargo, rustcno fix listedUBUNTU-CVE-2026-5222
UbuntuPro:20.04:LTScargo, rustc, rustc-1.76 and 4 moreno fix listedUBUNTU-CVE-2026-5222
UbuntuPro:22.04:LTScargono fix listedUBUNTU-CVE-2026-5222
Alpinev3.23rust1.91.1-r2ALPINE-CVE-2026-5222
Alpinev3.24rust, chromium-rust1.96.0-r0ALPINE-CVE-2026-5222
Azure Linux3rust1.75.0-30AZL-88275
Azure Linux3rust1.90.0-9AZL-88281
Alpaquita23rust1.64.0-r4BELL-CVE-2026-5222
Alpaquita25rust1.87.0-r3BELL-CVE-2026-5222
Alpaquitastreamrust1.96.0-r0BELL-CVE-2026-5222

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine · Alpaquita.

References

Check your stackJSON