First published: Tue Jan 10 2023(Updated: )
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.
Credit: security-advisories@github.com security-advisories@github.com security-advisories@github.com
Affected Software | Affected Version | How to fix |
---|---|---|
Rust-lang Cargo | <=0.67.0 | |
rust/cargo | <=0.67.0 | 0.67.1 |
Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.
CVE-2022-46176 is a vulnerability in Cargo, a Rust package manager, that allows for man-in-the-middle attacks during SSH cloning.
CVE-2022-46176 has a severity rating of medium with a CVSS score of 5.9.
The affected software is Rust-lang Cargo versions up to and including 0.67.0.
An attacker can exploit CVE-2022-46176 to perform man-in-the-middle (MITM) attacks during SSH cloning.
Yes, patches for CVE-2022-46176 are available in the Rust Security Response WG advisory.