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 rustUpgrade chromium-rust | Aug 22, 2024 | Jan 11, 2023 |
| Amazon_linux_2023 | — | Upgrade clippy-debuginfoUpgrade rustfmtUpgrade rust-std-static-wasm32-unknown-unknownUpgrade rust-lldbUpgrade rust-debuginfoUpgrade rust-debugsourceUpgrade cargo-debuginfoUpgrade rust-docUpgrade rust-gdbUpgrade rust-std-static-wasm32-wasiUpgrade clippyUpgrade rustUpgrade rust-debugger-commonUpgrade cargoUpgrade rust-analyzerUpgrade rust-std-staticUpgrade rust-srcUpgrade rust-analysisUpgrade rust-analyzer-debuginfoUpgrade rustfmt-debuginfo | Feb 17, 2025 | Jan 10, 2023 |
| Debian | — | Upgrade rust-cargoUpgrade 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.65Upgrade rust1.65Upgrade rust1.66Upgrade 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