ADVISORIES

Vulnerability

CVE-2022-46176

Cargo is a Rust package manager. The Rust Security Response WG was notified that Cargo did not perform SSH host key verification when cloning indexes and dependencies via SSH. An attacker could exploit this to perform man-in-the-middle (MITM) attacks. This vulnerability has been assigned CVE-2022-46176. All Rust versions containing Cargo before 1.66.1 are vulnerable. Note that even if you don't explicitly use SSH for alternate registry indexes or crate dependencies, you might be affected by this vulnerability if you have configured git to replace HTTPS connections to GitHub with SSH (through git's [`url.<base>.insteadOf`][1] setting), as that'd cause you to clone the crates.io index through SSH. Rust 1.66.1 will ensure Cargo checks the SSH host key and abort the connection if the server's public key is not already trusted. We recommend everyone to upgrade as soon as possible.

13 advisories report this vulnerability, across 9 ecosystems.

Advisories

  • ALAS2023-2023-109

    Amazon Linux 2023 - ALAS2023-2023-109: Medium priority package update for rust

    Medium CVE-2022-36113CVE-2022-36114CVE-2022-46176 Amazon Linux Updated 15 February 2024
  • ALPINE-CVE-2022-46176

    Cargo is a Rust package manager. The Rust Security Response WG was notified that Cargo did not perform SSH host key verification when cloning indexes and dependencies via SSH. An attacker could exploit this to perform…

    CVE-2022-46176 Alpine Updated 20 November 2026
  • ALPINE-EDGE-CVE-2022-46176
    CVE-2022-46176 Alpine Updated 18 November 2026
  • AZL-12969

    CVE-2022-46176 affecting package rust for versions less than 1.68.2-1

    CVE-2022-46176 Azure Linux Updated 21 April 2026
  • DEBIAN-CVE-2022-46176

    Cargo is a Rust package manager. The Rust Security Response WG was notified that Cargo did not perform SSH host key verification when cloning indexes and dependencies via SSH. An attacker could exploit this to perform…

    CVE-2022-46176 Debian Updated 20 November 2026
  • GHSA-r5w3-xm58-jv6j

    Cargo did not verify SSH host keys

    Moderate CVE-2022-46176 crates.io Updated 8 November 2023
  • OESA-2025-1236

    rust security update

    High CVE-2022-46176CVE-2023-38497 openEuler Updated 18 August 2026
  • OESA-2025-1237

    rust security update

    High CVE-2022-46176CVE-2023-38497 openEuler Updated 18 August 2026
  • SUSE-SU-2023:0132-1

    Security update for rust1.66

    CVE-2022-46176 SUSEopenSUSE Updated 4 February 2026
  • SUSE-SU-2023:0133-1

    Security update for rust1.65

    CVE-2022-46176 SUSEopenSUSE Updated 4 February 2026
  • UBUNTU-CVE-2022-46176

    Cargo is a Rust package manager. The Rust Security Response WG was notified that Cargo did not perform SSH host key verification when cloning indexes and dependencies via SSH. An attacker could exploit this to perform…

    CVE-2022-46176 Ubuntu Updated 24 October 2025
  • openSUSE-SU-2024:12607-1

    cargo1.65-1.65.0-4.1 on GA media

    CVE-2022-46176 openSUSE Updated 4 February 2026
  • openSUSE-SU-2024:12608-1

    cargo1.66-1.66.0-2.1 on GA media

    CVE-2022-46176 openSUSE Updated 4 February 2026

References