MitM attack in Rust Cargo

Published: 2023-01-24
Risk Medium
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2022-46176
Exploitation vector Network
Public exploit N/A
Vulnerable software

Rust Programming Language
Universal components / Libraries / Programming Languages & Components

Vendor The Rust Programming Language
Rust Team

Security Bulletin

This security bulletin contains one medium risk vulnerability.

1) Improper Verification of Cryptographic Signature

EUVDB-ID: #VU71491

Risk: Medium


CVE-ID: CVE-2022-46176

CWE-ID: CWE-347 - Improper Verification of Cryptographic Signature

Exploit availability: No


The vulnerability allows a remote attacker to perform MitM attack.

The vulnerability exists due to Cargo does not perform SSH host key verification when cloning indexes and dependencies via SSH. A remote attacker can perform MitM attack.


Install updates from vendor's website.

Vulnerable software versions

Cargo: 0.0.1-pre - 0.67.0

Rust Programming Language: 1.0.0 - 1.66.0

CPE2.3 External links

Q & A

Can this vulnerability be exploited remotely?

Is there known malware, which exploits this vulnerability?