Home / rust-lang / cargo / CVE-2022-46176
CVE-2022-46176: is it exploited, and which versions of rust-lang cargo are affected and fixed?
CVE-2022-46176 is a cryptographic signature not verified vulnerability in rust-lang cargo. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:08 UTC). Affected: cargo before 0.67.1 (GitHub advisory GHSA-r5w3-xm58-jv6j). Fixed in 0.67.1 (GitHub advisory GHSA-r5w3-xm58-jv6j). Severity: Medium (5.3, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:08 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:42 UTC.
What is CVE-2022-46176?
Cargo did not verify SSH host keys
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.
From the CVE record by GitHub_M, last updated March 10, 2025, 21:30 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| rust-lang | cargo | <= 0.67.0 |
As the CVE record by GitHub_M states it, last updated March 10, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| crates.io | cargo | < 0.67.1 | 0.67.1 | GHSA-r5w3-xm58-jv6j |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated January 10, 2023. Summary: Cargo did not verify SSH host keys.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| rust-lang | cargo | through 0.67.0 | application |
NVD analysis (status Modified), last modified June 17, 2026, 05:11 UTC.
How severe is CVE-2022-46176?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 5.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N | GitHub_M |
| Medium 5.9 | CVSS 3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2022-46176 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, March 10, 2025)
- EPSS
- 0.70% probability of exploitation activity in the next 30 days, percentile 54.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-347 Improper Verification of Cryptographic Signature
Where are the vendor advisories and references?
- https://github.com/rust-lang/cargo/security/advisories/GHSA-r5w3-xm58-jv6j x_refsource_CONFIRM
- https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2022-46176 x_refsource_MISC
- http://www.openwall.com/lists/oss-security/2023/11/05/6
- http://www.openwall.com/lists/oss-security/2023/11/06/5
When was it published, and where is the official record?
- Reserved
- November 28, 2022
- Published
- January 11, 2023, 20:07 UTC
- CVE record updated
- March 10, 2025, 21:30 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 05:11 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:42 UTC; KEV December 3, 2026, 12:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect cargo?
- Aug 24, 2023CVE-2023-40030 rust-lang cargo: cross-site scripting (XSS)
- Aug 4, 2023CVE-2023-38497 rust-lang cargo: insecure Preserved Inherited Permissions
- Sep 14, 2022CVE-2022-36114 rust-lang cargo: denial of service (uncontrolled resource consumption)
- Sep 14, 2022CVE-2022-36113 rust-lang cargo: path traversal (reading or writing files outside the intended folder)
Questions about CVE-2022-46176
Is CVE-2022-46176 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:08 UTC. FIRST's EPSS gives it a 0.70% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of rust-lang cargo are affected by CVE-2022-46176?
cargo before 0.67.1, per the GitHub advisory GHSA-r5w3-xm58-jv6j. The tables above give every range the sources list.
Which version fixes CVE-2022-46176?
0.67.1, per the GitHub advisory GHSA-r5w3-xm58-jv6j. Check the vendor's advisory before you rely on it.
How severe is CVE-2022-46176?
Medium (5.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2022-46176?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.