# CVE-2022-46176: Cargo did not verify SSH host keys

- Priority: **Routine**
- Reason: Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-01-11 · Modified: 2025-03-10
- Aliases: ALPINE-CVE-2022-46176, SUSE-SU-2023:0132-1, SUSE-SU-2023:0133-1, UBUNTU-CVE-2022-46176, DEBIAN-CVE-2022-46176, openSUSE-SU-2024:12607-1, openSUSE-SU-2024:12608-1, GHSA-r5w3-xm58-jv6j
- Record: https://cvemate.com/vulnerability/CVE-2022-46176 · JSON: https://cvemate.com/vulnerability/CVE-2022-46176/json

## Description

```text
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.
```

## Signals

- CVSS: 5.9 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
- EPSS: 0.705%, percentile 54.705%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- alpine chromium-rust (Alpine Linux): \< 1.66.1-r0
- alpine rust (Alpine Linux): \< 1.66.1-r0
- Crates.Io cargo (Crates.Io): \< 0.67.1
- debian cargo (Debian): \< 0.66.0+ds1-1
- debian rust-cargo (Debian): \< 0.66.0-1
- ubuntu cargo (Ubuntu): All versions (No fix recorded) \| \< 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2 \| \< 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2
- ubuntu rust-cargo (Ubuntu): All versions (No fix recorded)
- opensuse rust1.65&distro=openSUSE Leap 15.4 (openSUSE): \< 1.65.0-150300.7.9.1
- opensuse rust1.65&distro=openSUSE Tumbleweed (openSUSE): \< 1.65.0-4.1
- opensuse rust1.66&distro=openSUSE Leap 15.4 (openSUSE): \< 1.66.0-150400.9.9.1
- opensuse rust1.66&distro=openSUSE Tumbleweed (openSUSE): \< 1.66.0-2.1
- suse rust1.65&distro=SUSE Enterprise Storage 7.1 (SUSE Linux Enterprise): \< 1.65.0-150300.7.9.1
- suse rust1.65&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS (SUSE Linux Enterprise): \< 1.65.0-150300.7.9.1
- suse rust1.65&distro=SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS (SUSE Linux Enterprise): \< 1.65.0-150300.7.9.1
- suse rust1.65&distro=SUSE Linux Enterprise Module for Development Tools 15 SP4 (SUSE Linux Enterprise): \< 1.65.0-150300.7.9.1
- suse rust1.65&distro=SUSE Linux Enterprise Real Time 15 SP3 (SUSE Linux Enterprise): \< 1.65.0-150300.7.9.1
- suse rust1.65&distro=SUSE Linux Enterprise Server 15 SP3-LTSS (SUSE Linux Enterprise): \< 1.65.0-150300.7.9.1
- suse rust1.65&distro=SUSE Linux Enterprise Server for SAP Applications 15 SP3 (SUSE Linux Enterprise): \< 1.65.0-150300.7.9.1
- suse rust1.66&distro=SUSE Linux Enterprise Module for Development Tools 15 SP4 (SUSE Linux Enterprise): \< 1.66.0-150400.9.9.1
- rust-lang cargo: ≤ 0.67.0

## References

- <https://github.com/rust-lang/cargo/security/advisories/GHSA-r5w3-xm58-jv6j>
- <https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2022-46176>
- <http://www.openwall.com/lists/oss-security/2023/11/05/6>
- <http://www.openwall.com/lists/oss-security/2023/11/06/5>
- <https://security.alpinelinux.org/vuln/CVE-2022-46176>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20230132-1/>
- <https://bugzilla.suse.com/1206930>
- <https://www.suse.com/security/cve/CVE-2022-46176>
- <https://www.suse.com/support/update/announcement/2023/suse-su-20230133-1/>
- <https://ubuntu.com/security/CVE-2022-46176>
- <https://www.openwall.com/lists/oss-security/2023/01/10/3>
- <https://www.cve.org/CVERecord?id=CVE-2022-46176>
- <https://security-tracker.debian.org/tracker/CVE-2022-46176>
- <https://nvd.nist.gov/vuln/detail/CVE-2022-46176>
- <https://git-scm.com/docs/git-config#Documentation/git-config.txt-urlltbasegtinsteadOf>
- <https://github.com/rust-lang/cargo>
- <https://www.rust-lang.org/policies/security>

---

Data as of 2026-12-05T10:24:27.626Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
