Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. cargo
  4. ›
  5. CVE-2022-46176

CVE-2022-46176: Cargo did not verify SSH host keys

January 10, 2023

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.

References

  • git-scm.com/docs/git-config
  • github.com/advisories/GHSA-r5w3-xm58-jv6j
  • github.com/rust-lang/cargo
  • github.com/rust-lang/cargo/security/advisories/GHSA-r5w3-xm58-jv6j
  • github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2022-46176
  • nvd.nist.gov/vuln/detail/CVE-2022-46176
  • www.rust-lang.org/policies/security

Code Behaviors & Features

Detect and mitigate CVE-2022-46176 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.67.1

Fixed versions

  • 0.67.1

Solution

Upgrade to version 0.67.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-347: Improper Verification of Cryptographic Signature

Source file

cargo/cargo/CVE-2022-46176.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:52 +0000.