CWE
347
Advisory Published
CVE Published
Updated

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

First published: Tue Jan 10 2023(Updated: )

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.

Credit: security-advisories@github.com security-advisories@github.com security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Rust-lang Cargo<=0.67.0
rust/cargo<=0.67.0
0.67.1

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2022-46176?

    CVE-2022-46176 is a vulnerability in Cargo, a Rust package manager, that allows for man-in-the-middle attacks during SSH cloning.

  • How severe is CVE-2022-46176?

    CVE-2022-46176 has a severity rating of medium with a CVSS score of 5.9.

  • Which software is affected by CVE-2022-46176?

    The affected software is Rust-lang Cargo versions up to and including 0.67.0.

  • How can an attacker exploit CVE-2022-46176?

    An attacker can exploit CVE-2022-46176 to perform man-in-the-middle (MITM) attacks during SSH cloning.

  • Is there a patch available for CVE-2022-46176?

    Yes, patches for CVE-2022-46176 are available in the Rust Security Response WG advisory.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203