cve.bz

CVE-2022-46176 rust-lang cargo

5.9 mediumEPSS 0.7%Fix available

Medium (5.9) in rust-lang cargo. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in cargo 0.67.1.

On this page
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.

Severity

CVSS 3.1

5.9 medium
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 54th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2025-03-10. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-347 Improper Verification of Cryptographic Signature
OWASP Top 10
A04:2025 Cryptographic Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-46176 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-46176?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-46176?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-46176 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
rust-lang:cargothrough 0.67.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-r5w3-xm58-jv6jcrates.iocargo<0.67.10.67.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12cargo0.66.0+ds1-1DEBIAN-CVE-2022-46176
Debian12, 13, 14rust-cargo0.66.0-1DEBIAN-CVE-2022-46176
Ubuntu20.04:LTScargo0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2UBUNTU-CVE-2022-46176
Ubuntu22.04:LTScargo0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2UBUNTU-CVE-2022-46176
UbuntuPro:16.04:LTS, Pro:18.04:LTScargono fix listedUBUNTU-CVE-2022-46176
UbuntuPro:22.04:LTSrust-cargono fix listedUBUNTU-CVE-2022-46176
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-ESPOS, Linux Enterprise High Performance Computing 15 SP3-LTSS and 4 morerust1.651.65.0-150300.7.9.1SUSE-SU-2023:0133-1
SUSELinux Enterprise Module for Development Tools 15 SP4rust1.661.66.0-150400.9.9.1SUSE-SU-2023:0132-1
openSUSELeap 15.4rust1.651.65.0-150300.7.9.1SUSE-SU-2023:0133-1
openSUSELeap 15.4rust1.661.66.0-150400.9.9.1SUSE-SU-2023:0132-1
openSUSETumbleweedrust1.651.65.0-4.1openSUSE-SU-2024:12607-1
openSUSETumbleweedrust1.661.66.0-2.1openSUSE-SU-2024:12608-1
Alpinev3.18, v3.19, v3.20 and 3 morerust1.66.1-r0ALPINE-CVE-2022-46176
Alpinev3.24rust, chromium-rust1.66.1-r0ALPINE-CVE-2022-46176
Azure Linux2rust1.68.2-1AZL-12969

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8rust-toolsetNot affected
Red Hat Enterprise Linux 9rustNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-46176.

Attack patterns (CAPEC)

  • CAPEC-463 Padding Oracle Crypto Attack Severity: High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON