{"api_version":"1","generated_at":"2026-04-22T22:50:50+00:00","cve":"CVE-2022-46176","urls":{"html":"https://cve.report/CVE-2022-46176","api":"https://cve.report/api/cve/CVE-2022-46176.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-46176","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-46176"},"summary":{"title":"CVE-2022-46176","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.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2023-01-11 21:15:00","updated_at":"2023-11-07 03:55:00"},"problem_types":["CWE-347"],"metrics":[],"references":[{"url":"http://www.openwall.com/lists/oss-security/2023/11/06/5","name":"http://www.openwall.com/lists/oss-security/2023/11/06/5","refsource":"","tags":[],"title":"oss-security - Re: CVE-2022-46176: Cargo does not check SSH host keys","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"http://www.openwall.com/lists/oss-security/2023/11/05/6","name":"http://www.openwall.com/lists/oss-security/2023/11/05/6","refsource":"MISC","tags":[],"title":"oss-security - Re: CVE-2022-46176: Cargo does not check SSH host keys","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/rust-lang/cargo/security/advisories/GHSA-r5w3-xm58-jv6j","name":"https://github.com/rust-lang/cargo/security/advisories/GHSA-r5w3-xm58-jv6j","refsource":"MISC","tags":[],"title":"Cargo did not verify SSH host keys · Advisory · rust-lang/cargo · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2022-46176","name":"https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2022-46176","refsource":"MISC","tags":[],"title":"wg-security-response/patches/CVE-2022-46176 at main · rust-lang/wg-security-response · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-46176","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-46176","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"46176","vulnerable":"1","versionEndIncluding":"0.67.0","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"rust-lang","cpe5":"cargo","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"rust","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[{"cve":"CVE-2022-46176","qid":"182335","title":"Debian Security Update for cargorust-cargo (CVE-2022-46176)"},{"cve":"CVE-2022-46176","qid":"283602","title":"Fedora Security Update for rust (FEDORA-2023-19bcafe341)"},{"cve":"CVE-2022-46176","qid":"283620","title":"Fedora Security Update for rust (FEDORA-2023-575fcaf4bf)"},{"cve":"CVE-2022-46176","qid":"354709","title":"Amazon Linux Security Advisory for rust : ALAS2022-2023-278"},{"cve":"CVE-2022-46176","qid":"355226","title":"Amazon Linux Security Advisory for rust : ALAS2023-2023-109"},{"cve":"CVE-2022-46176","qid":"503264","title":"Alpine Linux Security Update for rust"},{"cve":"CVE-2022-46176","qid":"505932","title":"Alpine Linux Security Update for rust"},{"cve":"CVE-2022-46176","qid":"753555","title":"SUSE Enterprise Linux Security Update for rust1.65 (SUSE-SU-2023:0133-1)"},{"cve":"CVE-2022-46176","qid":"753557","title":"SUSE Enterprise Linux Security Update for rust1.66 (SUSE-SU-2023:0132-1)"},{"cve":"CVE-2022-46176","qid":"905198","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for rust (12967)"},{"cve":"CVE-2022-46176","qid":"905233","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for rust (12969)"},{"cve":"CVE-2022-46176","qid":"906755","title":"Common Base Linux Mariner (CBL-Mariner) Security Update for rust (12969-1)"}]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-46176","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"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. "}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-347: Improper Verification of Cryptographic Signature","cweId":"CWE-347"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"rust-lang","product":{"product_data":[{"product_name":"cargo","version":{"version_data":[{"version_affected":"=","version_value":"<= 0.67.0"}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/rust-lang/cargo/security/advisories/GHSA-r5w3-xm58-jv6j","refsource":"MISC","name":"https://github.com/rust-lang/cargo/security/advisories/GHSA-r5w3-xm58-jv6j"},{"url":"https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2022-46176","refsource":"MISC","name":"https://github.com/rust-lang/wg-security-response/tree/main/patches/CVE-2022-46176"},{"url":"http://www.openwall.com/lists/oss-security/2023/11/05/6","refsource":"MISC","name":"http://www.openwall.com/lists/oss-security/2023/11/05/6"},{"url":"http://www.openwall.com/lists/oss-security/2023/11/06/5","refsource":"MISC","name":"http://www.openwall.com/lists/oss-security/2023/11/06/5"}]},"source":{"advisory":"GHSA-r5w3-xm58-jv6j","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"NONE","baseScore":5.3,"baseSeverity":"MEDIUM","confidentialityImpact":"NONE","integrityImpact":"HIGH","privilegesRequired":"NONE","scope":"UNCHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.1"}]}},"nvd":{"publishedDate":"2023-01-11 21:15:00","lastModifiedDate":"2023-11-07 03:55:00","problem_types":["CWE-347"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N","attackVector":"NETWORK","attackComplexity":"HIGH","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"NONE","integrityImpact":"HIGH","availabilityImpact":"NONE","baseScore":5.9,"baseSeverity":"MEDIUM"},"exploitabilityScore":2.2,"impactScore":3.6}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:rust-lang:cargo:*:*:*:*:*:rust:*:*","versionEndIncluding":"0.67.0","cpe_name":[]}]}]}},"legacy_mitre":{"record":null,"notes":[]}}}