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.
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Alpine Linux | — | Upgrade chromium-rustUpgrade rust | Aug 22, 2024 | Jan 11, 2023 |
| Amazon_linux_2023 | — | Upgrade rust-debuginfoUpgrade rust-lldbUpgrade rustfmtUpgrade cargo-debuginfoUpgrade rust-debugsourceUpgrade rust-std-static-wasm32-unknown-unknownUpgrade clippy-debuginfoUpgrade rustfmt-debuginfoUpgrade clippyUpgrade rust-docUpgrade rust-srcUpgrade rust-std-static-wasm32-wasiUpgrade rust-std-staticUpgrade rust-debugger-commonUpgrade cargoUpgrade rustUpgrade rust-analyzer-debuginfoUpgrade rust-analysisUpgrade rust-analyzerUpgrade rust-gdb | 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 cargo1.65Upgrade rust1.65Upgrade rust1.66 | 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 |
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