Skip to content
Fencer Vulns
medium 6.5

CVE-2026-5222 json

Cargo can be coerced to share credentials between registries

published 2026-05-25 5 mo ago modified 2026-07-23 3 mo ago also GHSA-p688-r7jv-fm6f , EUVD-2026-31654

cvss
6.5
version 3.1, NVD
cisa kev
Not listed
not in CISA's catalog
epss
0.5%
EPSS 0.5% chance of exploitation in 30 days, percentile 41%
public exploits
0
none known

Summary

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.

Patch / fix

  • crates.io cargo 0.97.0
  • Rust Cargo 1.96.0
  • rustc Debian 13 1.85.1+dfsg1-1+deb13u1
  • rustc Debian 14 1.95.0+dfsg1-2
  • rust-cargo Debian 14 0.91.0-3

debian advisories DEBIAN-CVE-2026-5222

  • rust Alpine 3.23 1.91.1-r2
  • rust Alpine 3.24 1.96.0-r0
  • chromium-rust Alpine 3.24 1.96.0-r0

alpine advisories ALPINE-CVE-2026-5222

Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • rust Azure Linux 3.0 1.75.0-30
  • rust Azure Linux 3.0 1.90.0-9

azure linux advisories AZL-88275AZL-88281

Azure Linux vulnerability data, Copyright (c) Microsoft Corporation, from https://github.com/microsoft/AzureLinuxVulnerabilityData via OSV, under the MIT licence; changed: normalised to fixed package versions per release. MIT

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-5222 updated cvss 5.3

rust-cargo: rust-cargo: Information disclosure due to URL normalization flaw

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
5 mo ago

Exploit prediction

0.48% chance of exploitation in the next 30 days, higher than 41% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 4.0 2.3 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
CNA 4.0 2.3 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
NVD 3.1 6.5 CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Affected packages

ecosystem package affected fixed in
crates.io cargo
<0.97.0
0.97.0

Affected products

  • Rust Cargo

Classification

Weakness
  • CWE-647 Use of Non-Canonical URL Paths for Authorization Decisions

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.