BreachSpiderVerified, not vibes

CVE-2022-46176 in Rust-Lang Cargo

Medium 5.9

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 ver...

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.15.9
EPSS0.7%
EPSS percentile47th
FixUnknown

Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component, no confidentiality impact, full integrity impact, no availability impact.

Affected products and versions

VendorProductAffected versions
Rust-Lang Cargo ≤ 0.67.0

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

Official 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.

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2022-46176
BreachSpider IDBS-2023-GLOBAL-062831-M
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
Published2023-01-11
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-347: CWE-347

Related attack patterns (CAPEC)

CAPEC-463 Padding Oracle Crypto Attack via CWE-347

CAPEC-475 Signature Spoofing by Improper Validation via CWE-347

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

CVE-2022-46176 affects Cargo, the Rust package manager, by not performing SSH host key verification when cloning indexes and dependencies via SSH, allowing for potential man-in-the-middle attacks.

An attacker could exploit this vulnerability to perform man-in-the-middle (MITM) attacks, intercepting and potentially altering data during the cloning process of indexes and dependencies via SSH.

Questions

What is CVE-2022-46176?

CVE-2022-46176 affects Cargo, the Rust package manager, by not performing SSH host key verification when cloning indexes and dependencies via SSH, allowing for potential man-in-the-middle attacks.

What is the CVSS score for CVE-2022-46176?

CVE-2022-46176 has CVSS 5.9 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N. EPSS: 0.7%.

Is CVE-2022-46176 actively exploited?

No confirmed active exploitation of CVE-2022-46176 as of 2026-09-25.

How do I remediate CVE-2022-46176?

Priority: HIGH.

What systems are affected by CVE-2022-46176?

CVE-2022-46176 affects Rust-Lang Cargo.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Rust-Lang","product":"Cargo","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.