Advisory

DEBIAN-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-10-01 03:03 UTC

Affected packages and fixes

cargo

Debian packages (deb) · Debian 12

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

rust-cargo

Debian packages (deb) · Debian 12

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

rust-cargo

Debian packages (deb) · Debian 13

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

rust-cargo

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 0.91.0-3 (ecosystem)

Fixed versions

0.91.0-3

Fix

  • Fixed version 0.91.0-3
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

rustc

Debian packages (deb) · Debian 12

Affected

  • introduced 0 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

rustc

Debian packages (deb) · Debian 13

Affected

  • introduced 0, fixed 1.85.1+dfsg1-1+deb13u1 (ecosystem)

Fixed versions

1.85.1+dfsg1-1+deb13u1

Fix

  • Fixed version 1.85.1+dfsg1-1+deb13u1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

rustc

Debian packages (deb) · Debian 14

Affected

  • introduced 0, fixed 1.95.0+dfsg1-2 (ecosystem)

Fixed versions

1.95.0+dfsg1-2

Fix

  • Fixed version 1.95.0+dfsg1-2
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

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: Debian Security Tracker (converted by OSV.dev)

Debian Security Tracker, converted to OSV by OSV.dev.

Sources & licences