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-analyzerUpgrade rust-std-staticUpgrade rust-analysisUpgrade rust-srcUpgrade rustfmt-debuginfoUpgrade rust-analyzer-debuginfoUpgrade rust-docUpgrade rust-gdbUpgrade clippyUpgrade cargoUpgrade rustUpgrade rust-std-static-wasm32-wasiUpgrade rust-debugger-commonUpgrade rustfmtUpgrade clippy-debuginfoUpgrade rust-debuginfoUpgrade rust-std-static-wasm32-unknown-unknownUpgrade cargo-debuginfoUpgrade 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.Upgrade dev-lang/rust-bin. | Sep 23, 2024 | Jan 11, 2023 |
| Suse | — | Upgrade rust1.66Upgrade rust1.65Upgrade 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