5.9
MEDIUM CVSS 3.1
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. 21, 2024, 7:30 a.m.

Remotely Exploit :

Yes !
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
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 MEDIUM [email protected]
CVSS 3.1 MEDIUM [email protected]
Solution
Update the Rust and Cargo packages to address the SSH host key verification bypass.
  • Update the affected rust packages to the latest version.
  • Update the affected cargo packages to the latest version.
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.

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 af854a3a-2127-422b-91ae-364da2661108

    Nov. 21, 2024

    Action Type Old Value New Value
    Added Reference http://www.openwall.com/lists/oss-security/2023/11/05/6
    Added Reference http://www.openwall.com/lists/oss-security/2023/11/06/5
    Added Reference https://github.com/rust-lang/cargo/security/advisories/GHSA-r5w3-xm58-jv6j
    Added Reference https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2022-46176
  • 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.
Vulnerability Scoring Details
Base CVSS Score: 5.9
Attack Vector
Attack Complexity
Privileges Required
User Interaction
Scope
Confidentiality Impact
Integrity Impact
Availability Impact
Exploit Prediction

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

0.13 }} 0.04%

score

0.32783

percentile