5.9
MEDIUM
CVE-2022-46176
"Cargo SSH Host Key Verification Bypass Vulnerability"
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.

INFO

Published Date :

Jan. 11, 2023, 9:15 p.m.

Last Modified :

Nov. 7, 2023, 3:55 a.m.

Remotely Exploitable :

Yes !

Impact Score :

3.6

Exploitability Score :

2.2
Affected Products

The following products are affected by CVE-2022-46176 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Rust-lang cargo
2 Rust-lang rust
References to Advisories, Solutions, and Tools

Here, you will find a curated list of external links that provide in-depth information, practical solutions, and valuable tools related to CVE-2022-46176.

URL Resource
http://www.openwall.com/lists/oss-security/2023/11/05/6
http://www.openwall.com/lists/oss-security/2023/11/06/5
https://github.com/rust-lang/cargo/security/advisories/GHSA-r5w3-xm58-jv6j Mitigation Third Party Advisory
https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2022-46176 Patch Third Party Advisory

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2022-46176 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2022-46176 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • CVE Modified by [email protected]

    May. 14, 2024

    Action Type Old Value New Value
  • CVE Modified by [email protected]

    Nov. 07, 2023

    Action Type Old Value New Value
    Added Reference GitHub, Inc. http://www.openwall.com/lists/oss-security/2023/11/06/5 [No types assigned]
  • CVE Modified by [email protected]

    Nov. 06, 2023

    Action Type Old Value New Value
    Added Reference http://www.openwall.com/lists/oss-security/2023/11/05/6 [No Types Assigned]
  • Initial Analysis by [email protected]

    Jan. 19, 2023

    Action Type Old Value New Value
    Added CVSS V3.1 NIST AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
    Changed Reference Type https://github.com/rust-lang/cargo/security/advisories/GHSA-r5w3-xm58-jv6j No Types Assigned https://github.com/rust-lang/cargo/security/advisories/GHSA-r5w3-xm58-jv6j Mitigation, Third Party Advisory
    Changed Reference Type https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2022-46176 No Types Assigned https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2022-46176 Patch, Third Party Advisory
    Added CPE Configuration OR *cpe:2.3:a:rust-lang:cargo:*:*:*:*:*:rust:*:* versions up to (including) 0.67.0
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2022-46176 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2022-46176 weaknesses.

Exploit Prediction

EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.

0.09 }} -0.00%

score

0.38498

percentile

CVSS31 - Vulnerability Scoring System
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality
Integrity
Availability