Advisory

UBUNTU-CVE-2026-5222

Also known as: CVE-2026-5222

Summary

The record has no summary.

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.

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Dates

Published
2026-05-25 10:16 UTC
Modified
2026-06-03 07:15 UTC

Affected packages and fixes

34 affected packages; affected: introduced 0
PackageSystemFix
rustcDebian packages (deb) · Ubuntu 22.04No fixed version is listed.
rustc-1.62Debian packages (deb) · Ubuntu 22.04No fixed version is listed.
rustc-1.76Debian packages (deb) · Ubuntu 22.04No fixed version is listed.
rustc-1.77Debian packages (deb) · Ubuntu 22.04No fixed version is listed.
rustc-1.78Debian packages (deb) · Ubuntu 22.04No fixed version is listed.
rustc-1.79Debian packages (deb) · Ubuntu 22.04No fixed version is listed.
rustc-1.80Debian packages (deb) · Ubuntu 22.04No fixed version is listed.
rustc-1.81Debian packages (deb) · Ubuntu 22.04No fixed version is listed.
rustc-1.82Debian packages (deb) · Ubuntu 22.04No fixed version is listed.
rustc-1.83Debian packages (deb) · Ubuntu 22.04No fixed version is listed.
rustc-1.84Debian packages (deb) · Ubuntu 22.04No fixed version is listed.
rustc-1.85Debian packages (deb) · Ubuntu 22.04No fixed version is listed.
rustc-1.89Debian packages (deb) · Ubuntu 22.04No fixed version is listed.
rustc-1.91Debian packages (deb) · Ubuntu 22.04No fixed version is listed.
rustcDebian packages (deb) · Ubuntu 24.04No fixed version is listed.
rustc-1.74Debian packages (deb) · Ubuntu 24.04No fixed version is listed.
rustc-1.76Debian packages (deb) · Ubuntu 24.04No fixed version is listed.
rustc-1.77Debian packages (deb) · Ubuntu 24.04No fixed version is listed.
rustc-1.78Debian packages (deb) · Ubuntu 24.04No fixed version is listed.
rustc-1.79Debian packages (deb) · Ubuntu 24.04No fixed version is listed.
rustc-1.80Debian packages (deb) · Ubuntu 24.04No fixed version is listed.
rustc-1.81Debian packages (deb) · Ubuntu 24.04No fixed version is listed.
rustc-1.82Debian packages (deb) · Ubuntu 24.04No fixed version is listed.
rustc-1.83Debian packages (deb) · Ubuntu 24.04No fixed version is listed.
rustc-1.84Debian packages (deb) · Ubuntu 24.04No fixed version is listed.
rustc-1.85Debian packages (deb) · Ubuntu 24.04No fixed version is listed.
rustc-1.89Debian packages (deb) · Ubuntu 24.04No fixed version is listed.
rustc-1.91Debian packages (deb) · Ubuntu 24.04No fixed version is listed.
rustc-1.85Debian packages (deb) · Ubuntu 25.10No fixed version is listed.
rustc-1.88Debian packages (deb) · Ubuntu 25.10No fixed version is listed.
rustc-1.91Debian packages (deb) · Ubuntu 25.10No fixed version is listed.
rustc-1.91Debian packages (deb) · Ubuntu 26.04No fixed version is listed.
rustc-1.92Debian packages (deb) · Ubuntu 26.04No fixed version is listed.
rustc-1.93Debian packages (deb) · Ubuntu 26.04No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences