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 Details
- CVSS 3.1 Base Score: 5.3
- CVSS 3.1 Vector: (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N)
Covered by Rapid7
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade rust | Aug 22, 2024 | Jan 11, 2023 |
| Amazon_linux_2023 | — | Upgrade rust-analysisUpgrade rust-analyzerUpgrade rust-gdbUpgrade clippyUpgrade rust-std-static-wasm32-wasiUpgrade rustUpgrade rust-analyzer-debuginfoUpgrade rust-srcUpgrade rust-std-staticUpgrade cargoUpgrade rustfmt-debuginfoUpgrade rust-docUpgrade rust-debugger-commonUpgrade clippy-debuginfoUpgrade cargo-debuginfoUpgrade rustfmtUpgrade rust-debuginfoUpgrade rust-std-static-wasm32-unknown-unknownUpgrade rust-debugsourceUpgrade rust-lldb | Feb 17, 2025 | Jan 10, 2023 |
| Debian | — | Upgrade cargoUpgrade rust-cargo | Jul 30, 2024 | Jan 11, 2023 |
| Gentoo Linux | — | Upgrade dev-lang/rust-bin.Upgrade dev-lang/rust. | Sep 23, 2024 | Jan 11, 2023 |
| Suse | — | Upgrade cargo1.66Upgrade rust1.65Upgrade rust1.66Upgrade cargo1.65 | Jan 25, 2023 | Jan 11, 2023 |
| Ubuntu | — | Upgrade cargoUpgrade rust-cargo | Nov 19, 2024 | Jan 11, 2023 |
| Vmware Photon_os | — | Use 'tdnf update' to upgrade all packages to the latest version. | Jan 20, 2025 | Jan 11, 2023 |
Prioritise with Active Threat Intelligence
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub