CVE-2022-46176
published medium CVSS 3.1 · 5.3Cargo did not verify SSH host keys
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| rust-lang | — | cargo<= 0.67.0 | Affected | Not stated | GitHub_M |
| Amazon Linux | AL2 | Release evaluation | Pending Fix; No Fix Planned | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2023-109 | Fixed | Not stated | Amazon Linux assessment |
| Alpine Linux | edge | rust | Fixed | 1.66.1-r0 | Package fix record |
| SUSE / openSUSE | SLE-15-SP3 | cargo1.65aarch64 | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| Amazon Linux | AL2023 | rustaarch64 | Listed in advisory | Not stated | ALAS2023-2023-109 |
| Alpine Linux | v3.18 | rust | Fixed | 1.66.1-r0 | Package fix record |
| Alpine Linux | v3.19 | rust | Fixed | 1.66.1-r0 | Package fix record |
Show 64 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.20 | rust | Fixed | 1.66.1-r0 | Package fix record |
| Alpine Linux | v3.21 | rust | Fixed | 1.66.1-r0 | Package fix record |
| Alpine Linux | v3.22 | rust | Fixed | 1.66.1-r0 | Package fix record |
| Alpine Linux | v3.23 | rust | Fixed | 1.66.1-r0 | Package fix record |
| Alpine Linux | v3.24 | chromium-rust | Fixed | 1.66.1-r0 | Package fix record |
| Alpine Linux | v3.24 | rust | Fixed | 1.66.1-r0 | Package fix record |
| SUSE / openSUSE | SLE-15-SP3 | cargo1.65ppc64le | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | SLE-15-SP3 | cargo1.65s390x | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | SLE-15-SP3 | cargo1.65x86_64 | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | SLE-15-SP3 | rust1.65aarch64 | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | SLE-15-SP3 | rust1.65ppc64le | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | SLE-15-SP3 | rust1.65s390x | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | SLE-15-SP3 | rust1.65x86_64 | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | SLE-15-SP4 | cargo1.65aarch64 | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | SLE-15-SP4 | cargo1.65ppc64le | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | SLE-15-SP4 | cargo1.65s390x | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | SLE-15-SP4 | cargo1.65x86_64 | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | SLE-15-SP4 | cargo1.66aarch64 | Advisory build | 1.66.0-150400.9.9.1 | SUSE-SU-2023:0132-1 |
| SUSE / openSUSE | SLE-15-SP4 | cargo1.66ppc64le | Advisory build | 1.66.0-150400.9.9.1 | SUSE-SU-2023:0132-1 |
| SUSE / openSUSE | SLE-15-SP4 | cargo1.66s390x | Advisory build | 1.66.0-150400.9.9.1 | SUSE-SU-2023:0132-1 |
| SUSE / openSUSE | SLE-15-SP4 | cargo1.66x86_64 | Advisory build | 1.66.0-150400.9.9.1 | SUSE-SU-2023:0132-1 |
| SUSE / openSUSE | SLE-15-SP4 | rust1.65aarch64 | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | SLE-15-SP4 | rust1.65ppc64le | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | SLE-15-SP4 | rust1.65s390x | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | SLE-15-SP4 | rust1.65x86_64 | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | SLE-15-SP4 | rust1.66aarch64 | Advisory build | 1.66.0-150400.9.9.1 | SUSE-SU-2023:0132-1 |
| SUSE / openSUSE | SLE-15-SP4 | rust1.66ppc64le | Advisory build | 1.66.0-150400.9.9.1 | SUSE-SU-2023:0132-1 |
| SUSE / openSUSE | SLE-15-SP4 | rust1.66s390x | Advisory build | 1.66.0-150400.9.9.1 | SUSE-SU-2023:0132-1 |
| SUSE / openSUSE | SLE-15-SP4 | rust1.66x86_64 | Advisory build | 1.66.0-150400.9.9.1 | SUSE-SU-2023:0132-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cargo1.65aarch64 | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cargo1.65ppc64le | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cargo1.65s390x | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cargo1.65x86_64 | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cargo1.66aarch64 | Advisory build | 1.66.0-150400.9.9.1 | SUSE-SU-2023:0132-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cargo1.66ppc64le | Advisory build | 1.66.0-150400.9.9.1 | SUSE-SU-2023:0132-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cargo1.66s390x | Advisory build | 1.66.0-150400.9.9.1 | SUSE-SU-2023:0132-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | cargo1.66x86_64 | Advisory build | 1.66.0-150400.9.9.1 | SUSE-SU-2023:0132-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | rust1.65aarch64 | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | rust1.65ppc64le | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | rust1.65s390x | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | rust1.65x86_64 | Advisory build | 1.65.0-150300.7.9.1 | SUSE-SU-2023:0133-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | rust1.66aarch64 | Advisory build | 1.66.0-150400.9.9.1 | SUSE-SU-2023:0132-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | rust1.66ppc64le | Advisory build | 1.66.0-150400.9.9.1 | SUSE-SU-2023:0132-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | rust1.66s390x | Advisory build | 1.66.0-150400.9.9.1 | SUSE-SU-2023:0132-1 |
| SUSE / openSUSE | openSUSE-Leap-15.4 | rust1.66x86_64 | Advisory build | 1.66.0-150400.9.9.1 | SUSE-SU-2023:0132-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo1.65aarch64 | Advisory build | 1.65.0-4.1 | OPENSUSE-SU-2024:12607-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo1.65ppc64le | Advisory build | 1.65.0-4.1 | OPENSUSE-SU-2024:12607-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo1.65s390x | Advisory build | 1.65.0-4.1 | OPENSUSE-SU-2024:12607-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo1.65x86_64 | Advisory build | 1.65.0-4.1 | OPENSUSE-SU-2024:12607-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo1.66aarch64 | Advisory build | 1.66.0-2.1 | OPENSUSE-SU-2024:12608-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo1.66ppc64le | Advisory build | 1.66.0-2.1 | OPENSUSE-SU-2024:12608-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo1.66s390x | Advisory build | 1.66.0-2.1 | OPENSUSE-SU-2024:12608-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | cargo1.66x86_64 | Advisory build | 1.66.0-2.1 | OPENSUSE-SU-2024:12608-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rust1.65aarch64 | Advisory build | 1.65.0-4.1 | OPENSUSE-SU-2024:12607-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rust1.65ppc64le | Advisory build | 1.65.0-4.1 | OPENSUSE-SU-2024:12607-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rust1.65s390x | Advisory build | 1.65.0-4.1 | OPENSUSE-SU-2024:12607-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rust1.65x86_64 | Advisory build | 1.65.0-4.1 | OPENSUSE-SU-2024:12607-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rust1.66aarch64 | Advisory build | 1.66.0-2.1 | OPENSUSE-SU-2024:12608-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rust1.66ppc64le | Advisory build | 1.66.0-2.1 | OPENSUSE-SU-2024:12608-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rust1.66s390x | Advisory build | 1.66.0-2.1 | OPENSUSE-SU-2024:12608-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | rust1.66x86_64 | Advisory build | 1.66.0-2.1 | OPENSUSE-SU-2024:12608-1 |
| Amazon Linux | AL2023 | rustnoarch | Listed in advisory | Not stated | ALAS2023-2023-109 |
| Amazon Linux | AL2023 | rustsrc | Listed in advisory | Not stated | ALAS2023-2023-109 |
| Amazon Linux | AL2023 | rustx86_64 | Listed in advisory | Not stated | ALAS2023-2023-109 |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 5.3 / 10
- Severity
- medium
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| rust-lang | cargo | <= 0.67.0 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-347 CWE-347: Improper Verification of Cryptographic Signature
References
4Provider assertions
3GitHub_M · cna
Cargo did not verify SSH host keys
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- f5a357a243598f2f41f2cd3688b568d2b466962a2544b9f442322bbb3a4dcc87
- Ingested
- 23 Sep 2026, 08:03:28 UTC
- Source record
- Official CVE record