Cargo did not verify SSH host keys
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..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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
cargocrates.io | < 0.67.1 | 0.67.1 |
Affected products
14- ghsa-coords13 versionspkg:cargo/cargopkg:rpm/opensuse/rust1.65&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/rust1.65&distro=openSUSE%20Tumbleweedpkg:rpm/opensuse/rust1.66&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/rust1.66&distro=openSUSE%20Tumbleweedpkg:rpm/suse/rust1.65&distro=SUSE%20Enterprise%20Storage%207.1pkg:rpm/suse/rust1.65&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOSpkg:rpm/suse/rust1.65&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSSpkg:rpm/suse/rust1.65&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4pkg:rpm/suse/rust1.65&distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP3pkg:rpm/suse/rust1.65&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSSpkg:rpm/suse/rust1.65&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3pkg:rpm/suse/rust1.66&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4
< 0.67.1+ 12 more
- (no CPE)range: < 0.67.1
- (no CPE)range: < 1.65.0-150300.7.9.1
- (no CPE)range: < 1.65.0-4.1
- (no CPE)range: < 1.66.0-150400.9.9.1
- (no CPE)range: < 1.66.0-2.1
- (no CPE)range: < 1.65.0-150300.7.9.1
- (no CPE)range: < 1.65.0-150300.7.9.1
- (no CPE)range: < 1.65.0-150300.7.9.1
- (no CPE)range: < 1.65.0-150300.7.9.1
- (no CPE)range: < 1.65.0-150300.7.9.1
- (no CPE)range: < 1.65.0-150300.7.9.1
- (no CPE)range: < 1.65.0-150300.7.9.1
- (no CPE)range: < 1.66.0-150400.9.9.1
- rust-lang/cargov5Range: <= 0.67.0
Patches
Vulnerability mechanics
References
8- github.com/advisories/GHSA-r5w3-xm58-jv6jghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2022-46176ghsaADVISORY
- www.openwall.com/lists/oss-security/2023/11/05/6ghsaWEB
- git-scm.com/docs/git-configghsaWEB
- github.com/rust-lang/cargo/security/advisories/GHSA-r5w3-xm58-jv6jghsax_refsource_CONFIRMWEB
- github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2022-46176ghsax_refsource_MISCWEB
- www.rust-lang.org/policies/securityghsaWEB
- www.openwall.com/lists/oss-security/2023/11/06/5mitre
News mentions
0No linked articles in our index yet.