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-analysisUpgrade rustUpgrade rust-analyzerUpgrade rust-srcUpgrade rust-std-static-wasm32-wasiUpgrade rust-gdbUpgrade rust-docUpgrade clippyUpgrade rust-analyzer-debuginfoUpgrade rust-std-staticUpgrade rust-debugger-commonUpgrade rustfmt-debuginfoUpgrade cargoUpgrade cargo-debuginfoUpgrade rust-debugsourceUpgrade rust-debuginfoUpgrade clippy-debuginfoUpgrade rust-lldbUpgrade rustfmtUpgrade rust-std-static-wasm32-unknown-unknown | Feb 17, 2025 | Jan 10, 2023 |
| Debian | — | Upgrade cargoUpgrade rust-cargo | Jul 30, 2024 | Jan 11, 2023 |
| Gentoo Linux | — | Upgrade dev-lang/rust.Upgrade dev-lang/rust-bin. | Sep 23, 2024 | Jan 11, 2023 |
| Suse | — | Upgrade rust1.65Upgrade rust1.66Upgrade cargo1.65Upgrade cargo1.66 | Jan 25, 2023 | Jan 11, 2023 |
| Ubuntu | — | Upgrade rust-cargoUpgrade 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