CVE-2026-5222 Affecting rust-cargo-c-debugsource package, versions <0:0.10.19-1.amzn2023.0.3


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.48% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-RUSTCARGOCDEBUGSOURCE-17416881
  • published23 Jun 2026
  • disclosed25 May 2026

Introduced: 25 May 2026

CVE-2026-5222  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 rust-cargo-c-debugsource to version 0:0.10.19-1.amzn2023.0.3 or higher.
This issue was patched in ALAS2023-2026-1872.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rust-cargo-c-debugsource package and not the rust-cargo-c-debugsource package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1