5.9

CVE-2022-46176: Cargo did not verify SSH host keys

Modified
AliasesALPINE-CVE-2022-46176SUSE-SU-2023:0132-1SUSE-SU-2023:0133-1
Published 11-01-2023Last modified 10-03-2025

Vulnerability summary

CVE-2022-46176 is a medium (CVSS 5.9) vulnerability in rust-lang cargo. EPSS estimates a 0.70% chance of exploitation in the next 30 days, higher than 54.7% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.9/10
010
Medium · v3.1 (NVD)
EPSS score
0.70%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 11-01-2023
    PublishedVulnerability first disclosed.
  2. 10-03-2025
    Last modifiedVulnerability information updated.

Description

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.

CVSS metrics

6 scores · 6 sources · 1 version

EPSS trend

Probability

0.70%

Chance of exploitation in the next 30 days

Percentile

55%

Versus all other CVEs

30-day change

Increase +0.03 pp

From 0.68% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Suse8 products
  • rust1.65&distro=SUSE Enterprise Storage 7.1< 1.65.0-150300.7.9.1
  • rust1.65&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS< 1.65.0-150300.7.9.1
  • rust1.65&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS< 1.65.0-150300.7.9.1
  • rust1.65&distro=SUSE Linux Enterprise Module for Development Tools 15 SP4< 1.65.0-150300.7.9.1
  • rust1.65&distro=SUSE Linux Enterprise Real Time 15 SP3< 1.65.0-150300.7.9.1
Opensuse4 products
  • rust1.65&distro=openSUSE Leap 15.4< 1.65.0-150300.7.9.1
  • rust1.65&distro=openSUSE Tumbleweed< 1.65.0-4.1
  • rust1.66&distro=openSUSE Leap 15.4< 1.66.0-150400.9.9.1
  • rust1.66&distro=openSUSE Tumbleweed< 1.66.0-2.1
Alpine2 products
  • chromium-rust< 1.66.1-r0
  • rust< 1.66.1-r0
Debian2 products
  • cargo< 0.66.0+ds1-1
  • rust-cargo< 0.66.0-1
Ubuntu2 products
  • cargoAll versions (No fix recorded) | < 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2 | < 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2
  • rust-cargoAll versions (No fix recorded)
Crates.Io1 product
  • cargo< 0.67.1
Rust-lang1 product

7 vendors · 20 products

References

17 links
Show all 17 references