Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2026-5222 on Ubuntu — cargo

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

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.

Distribution advisory

This page covers CVE-2026-5222 as tracked by Ubuntu, for the package cargo. No fixed version has been recorded for this distribution yet.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is low, an attacker needs low-level privileges on the target. No user interaction is required. The scope is unchanged, so the impact stays within the vulnerable component. Rated impact: confidentiality high, integrity none, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: Low — the attack works reliably, with no preparation.
  • Privileges required: Low — an ordinary user account is enough.
  • User interaction: None — nobody has to be tricked into anything.
  • Scope: Unchanged — the damage stays inside the vulnerable component.
  • Confidentiality impact: High — total loss, or loss the attacker controls.
  • Integrity impact: None.
  • Availability impact: None.

Weakness class

UBUNTU-CVE-2026-5222 is classified as CWE-647: Use of Non-Canonical URL Paths for Authorization Decisions. The product defines policy namespaces and makes authorization decisions based on the assumption that a URL is canonical. This can allow a non-canonical URL to bypass the authorization.

Affected software

UBUNTU-CVE-2026-5222 is recorded against 19 packages.

  • cargo
  • rustc
  • rustc-1.62
  • rustc-1.74
  • rustc-1.76
  • rustc-1.77
  • rustc-1.78
  • rustc-1.79
  • rustc-1.80
  • rustc-1.81
  • rustc-1.82
  • rustc-1.83
  • rustc-1.84
  • rustc-1.85
  • rustc-1.88
  • rustc-1.89
  • rustc-1.91
  • rustc-1.92
  • rustc-1.93

Timeline and source

Published on 25 May 2026 and last revised on 3 June 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

ubuntu.com (Report)
www.cve.org (Report)
blog.rust-lang.org (Report)
github.com (Report)
groups.google.com (Report)

Other advisories for this package

cargo has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-647: Use of Non-Canonical URL Paths for Authorization Decisions) in other software:

CVE-2026-5222 on other distributions

Each distribution ships its own build and its own fixed version. Pick the one you run:

Details

Severity Unknown
CVSS Score N/A
CVSS Vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2026-05-25
Updated 2026-08-20
Modified 2026-06-03
Fix URL N/A

Affected Packages

Software From version Fixed in
cargo — —
rustc — —
rustc-1.62 — —
rustc-1.74 — —
rustc-1.76 — —
rustc-1.77 — —
rustc-1.78 — —
rustc-1.79 — —
rustc-1.80 — —
rustc-1.81 — —
rustc-1.82 — —
rustc-1.83 — —
rustc-1.84 — —
rustc-1.85 — —
rustc-1.88 — —
rustc-1.89 — —
rustc-1.91 — —
rustc-1.92 — —
rustc-1.93 — —

Similar Threats

Free Vulnerability Check

Is your site affected by UBUNTU-CVE-2026-5222?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against UBUNTU-CVE-2026-5222 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesUbuntuUbuntu 2026
✓