
CVE catalog
CVE-2022-46176
cargo: CVE-2022-46176
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.68% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | cargo | bookworm | 0.66.0+ds1-1 | fixed |
| Debian | rust-cargo | sid | 0.99.0-1 | fixed |
| Debian | rust-cargo | forky | 0.99.0-1 | fixed |
| Debian | rust-cargo | trixie | 0.86.0-2 | fixed |
| Debian | rust-cargo | bookworm | 0.66.0-1 | fixed |
| Suse | rust1.66 | linux enterprise module for development tools 15 sp4 | 1.66.0-150400.9.9.1 | fixed |
| Opensuse | rust1.66 | leap 15.4 | 1.66.0-150400.9.9.1 | fixed |
| Opensuse | rust1.66 | tumbleweed | 1.66.0-2.1 | fixed |
| Opensuse | rust1.65 | tumbleweed | 1.65.0-4.1 | fixed |
| Suse | rust1.65 | linux enterprise module for development tools 15 sp4 | 1.65.0-150300.7.9.1 | fixed |
| Suse | rust1.65 | linux enterprise high performance computing 15 sp3-espos | 1.65.0-150300.7.9.1 | fixed |
| Suse | rust1.65 | linux enterprise high performance computing 15 sp3-ltss | 1.65.0-150300.7.9.1 | fixed |
| Suse | rust1.65 | linux enterprise real time 15 sp3 | 1.65.0-150300.7.9.1 | fixed |
| Suse | rust1.65 | linux enterprise server 15 sp3-ltss | 1.65.0-150300.7.9.1 | fixed |
| Suse | rust1.65 | linux enterprise server for sap applications 15 sp3 | 1.65.0-150300.7.9.1 | fixed |
| Suse | rust1.65 | enterprise storage 7.1 | 1.65.0-150300.7.9.1 | fixed |
| Opensuse | rust1.65 | leap 15.4 | 1.65.0-150300.7.9.1 | fixed |
| Ubuntu | cargo | pro | 0.19.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | pro | 0.22.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | pro | 0.22.0-0ubuntu2 | vulnerable |
| Ubuntu | cargo | pro | 0.23.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | pro | 0.24.0-1ubuntu1 | vulnerable |
| Ubuntu | cargo | pro | 0.25.0-1ubuntu1 | vulnerable |
| Ubuntu | cargo | pro | 0.26.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | pro | 0.26.0-0ubuntu2 | vulnerable |
| Ubuntu | cargo | pro | 0.29.0-1ubuntu1~18.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.31.0-3ubuntu1~18.04.4 | vulnerable |
| Ubuntu | cargo | pro | 0.32.0-1~exp1ubuntu1~18.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.33.0-1ubuntu1~18.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.35.0-0ubuntu1~18.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.36.0-0ubuntu1~18.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.37.0-3ubuntu1~18.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.38.0-0ubuntu1~18.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.40.0-3ubuntu1~18.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.42.0-0ubuntu1~18.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.44.1-0ubuntu1~18.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.47.0-1~exp1ubuntu1~18.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.52.0-0ubuntu1~18.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.54.0-0ubuntu1~18.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.58.0-0ubuntu1~18.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.60.0ubuntu1-0ubuntu1~18.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.62.0ubuntu0libgit2-0ubuntu0.18.04.1 | vulnerable |
| Ubuntu | cargo | pro | 0.66.0+ds0ubuntu0.libgit2-0ubuntu0.18.04 | vulnerable |
| Ubuntu | cargo | pro | 0.66.0+ds0ubuntu0.libgit2-0ubuntu0.18.04.1~esm1 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.37.0-3ubuntu2 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.38.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.39.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.39.0+really0.38.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.39.0+really0.39.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.40.0-3ubuntu1 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.40.0-3ubuntu2 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.41.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.42.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.44.1-0ubuntu1~20.04.1 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.47.0-1~exp1ubuntu1~20.04.1 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.52.0-0ubuntu1~20.04.1 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.54.0-0ubuntu1~20.04.1 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.58.0-0ubuntu1~20.04.1 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.60.0ubuntu1-0ubuntu1~20.04.1 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.62.0ubuntu0libgit2-0ubuntu0.20.04.1 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.66.0+ds0ubuntu0.libgit2-0ubuntu0.20.04 | vulnerable |
| Ubuntu | cargo | 20.04 | 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2 | fixed |
| Ubuntu | cargo | 22.04 | 0.52.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | 22.04 | 0.53.0-0ubuntu2 | vulnerable |
| Ubuntu | cargo | 22.04 | 0.54.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | 22.04 | 0.54.0-0ubuntu2 | vulnerable |
| Ubuntu | cargo | 22.04 | 0.57.0+ubuntu-0ubuntu1 | vulnerable |
| Ubuntu | cargo | 22.04 | 0.58.0-0ubuntu1 | vulnerable |
| Ubuntu | cargo | 22.04 | 0.60.0ubuntu1-0ubuntu1~22.04.1 | vulnerable |
| Ubuntu | cargo | 22.04 | 0.62.0ubuntu0libgit2-0ubuntu0.22.04.1 | vulnerable |
| Ubuntu | cargo | 22.04 | 0.66.0+ds0ubuntu0.libgit2-0ubuntu0.22.04 | vulnerable |
| Ubuntu | cargo | 22.04 | 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2 | fixed |
| Ubuntu | rust-cargo | pro | 0.43.1-4 | vulnerable |
| Ubuntu | rust-cargo | pro | 0.57.0-1 | vulnerable |
| Ubuntu | rust-cargo | pro | 0.57.0-1ubuntu0.1~esm1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | cargo | source | bookworm | 0.66.0+ds1-1 | not yet assigned | Not reported | Not reported |
| Debian | rust-cargo | source | sid | 0.66.0-1 | not yet assigned | Not reported | Not reported |
| Debian | rust-cargo | source | forky | 0.66.0-1 | not yet assigned | Not reported | Not reported |
| Debian | rust-cargo | source | trixie | 0.66.0-1 | not yet assigned | Not reported | Not reported |
| Debian | rust-cargo | source | bookworm | 0.66.0-1 | not yet assigned | Not reported | Not reported |
| Suse | rust1.66 | rpm | linux enterprise module for development tools 15 sp4 | 1.66.0-150400.9.9.1 | Not reported | SUSE-SU-2023:0132-1 | Not reported |
| Opensuse | rust1.66 | rpm | leap 15.4 | 1.66.0-150400.9.9.1 | Not reported | SUSE-SU-2023:0132-1 | Not reported |
| Opensuse | rust1.66 | rpm | tumbleweed | 1.66.0-2.1 | Not reported | OPENSUSE-SU-2024:12608-1 | Not reported |
| Opensuse | rust1.65 | rpm | tumbleweed | 1.65.0-4.1 | Not reported | OPENSUSE-SU-2024:12607-1 | Not reported |
| Suse | rust1.65 | rpm | linux enterprise module for development tools 15 sp4 | 1.65.0-150300.7.9.1 | Not reported | SUSE-SU-2023:0133-1 | Not reported |
| Suse | rust1.65 | rpm | linux enterprise high performance computing 15 sp3-espos | 1.65.0-150300.7.9.1 | Not reported | SUSE-SU-2023:0133-1 | Not reported |
| Suse | rust1.65 | rpm | linux enterprise high performance computing 15 sp3-ltss | 1.65.0-150300.7.9.1 | Not reported | SUSE-SU-2023:0133-1 | Not reported |
| Suse | rust1.65 | rpm | linux enterprise real time 15 sp3 | 1.65.0-150300.7.9.1 | Not reported | SUSE-SU-2023:0133-1 | Not reported |
| Suse | rust1.65 | rpm | linux enterprise server 15 sp3-ltss | 1.65.0-150300.7.9.1 | Not reported | SUSE-SU-2023:0133-1 | Not reported |
| Suse | rust1.65 | rpm | linux enterprise server for sap applications 15 sp3 | 1.65.0-150300.7.9.1 | Not reported | SUSE-SU-2023:0133-1 | Not reported |
| Suse | rust1.65 | rpm | enterprise storage 7.1 | 1.65.0-150300.7.9.1 | Not reported | SUSE-SU-2023:0133-1 | Not reported |
| Opensuse | rust1.65 | rpm | leap 15.4 | 1.65.0-150300.7.9.1 | Not reported | SUSE-SU-2023:0133-1 | Not reported |
| Ubuntu | cargo | deb | 20.04 | 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2 | Not reported | UBUNTU-CVE-2022-46176 | Not reported |
| Ubuntu | cargo | deb | 22.04 | 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2 | Not reported | UBUNTU-CVE-2022-46176 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [cargo]Fixed
Details (2)
0.66.0+ds1-1· amd64 · bookwormFixed · Fixed:
0.66.0+ds1-1dsa · cargo · debian · bookworm
0.66.0+ds1-1· arm64 · bookwormFixed · Fixed:
0.66.0+ds1-1dsa · cargo · debian · bookworm
- [cargo-doc]Fixed
Source package: [cargo]
Details (2)
0.66.0+ds1-1· all · bookwormFixed · Fixed:
0.66.0+ds1-1dsa · cargo · debian · bookworm
0.66.0+ds1-1· all · bookwormFixed · Fixed:
0.66.0+ds1-1dsa · cargo · debian · bookworm
- [librust-cargo-dev]Fixed
Source package: [rust-cargo]
Details (2)
0.66.0-1· amd64 · bookwormFixed · Fixed:
0.66.0-1dsa · rust-cargo · debian · bookworm
0.66.0-1· arm64 · bookwormFixed · Fixed:
0.66.0-1dsa · rust-cargo · debian · bookworm
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2023_0132-1.json]
- [https://osv.dev/vulnerability/SUSE-SU-2023:0132-1]
- [https://osv.dev/vulnerability/SUSE-SU-2023:0133-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2022-46176]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:12607-1]
- [https://osv.dev/vulnerability/openSUSE-SU-2024:12608-1]
- [https://security-tracker.debian.org/tracker/CVE-2022-46176]
- [https://security.access.redhat.com/data/csaf/v2/vex/2022/cve-2022-46176.json]
[Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]