{"answers":{"affected":"2 open source packages ship an affected version, including cargo. It affects 1 product.","exploited":"There is no known exploitation of CVE-2022-46176 in the wild and no public exploit code.","fix":"Upgrade cargo to 0.67.1 or later.","what":"CVE-2022-46176 is a medium-severity vulnerability in rust-lang cargo, published on 11 Jan 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2022-46176 and fix it if it is affected.\n\nWhat it is: CVE-2022-46176 is a medium-severity vulnerability in rust-lang cargo, published on 11 Jan 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2022-46176 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- cargo (crates.io): affected all versions; fixed in 0.67.1\n- cargo (crates.io): affected all versions; fixed in 0.67.1\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2022-46176/ (Markdown: https://insights.sbomify.com/CVE-2022-46176/index.md)","id":"CVE-2022-46176","markdown":"https://insights.sbomify.com/CVE-2022-46176/index.md","name":"CVE-2022-46176","record":{"aliases":["ALPINE-CVE-2022-46176","AZL-12969","CLEANSTART-2026-KA82053","DEBIAN-CVE-2022-46176","GHSA-r5w3-xm58-jv6j","SUSE-SU-2023:0132-1","SUSE-SU-2023:0133-1","UBUNTU-CVE-2022-46176","openSUSE-SU-2024:12607-1","openSUSE-SU-2024:12608-1"],"analysis":{"component_type":"developer_tool","fix_type":"upgrade","impacts":["code_execution","security_bypass"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust package manager","requires_auth":"none","summary":"Cargo failed to verify SSH host keys, allowing attackers to perform man-in-the-middle attacks and potentially inject malicious code during dependency cloning.","user_interaction":"required","vuln_class":"security_feature_bypass"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"cargo","vendor":"rust-lang"}],"cvss":{"score":5.3,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-347","name":"Improper Verification of Cryptographic Signature"}],"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.\u003cbase\u003e.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.","ecosystems":["SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise Module for Development Tools 15 SP4","SUSE:Linux Enterprise Real Time 15 SP3","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","crates.io","openSUSE:Leap 15.4","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Cargo did not verify SSH host keys","id":"CVE-2022-46176","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"security_feature_bypass","year":"2022"},"n_packages":14,"n_references":4,"next":{"headline":"Discourse password reset link can lead to in account takeover if user changes to a new email","id":"CVE-2022-46177"},"packages":[{"ecosystem":"crates.io","fixed":["0.67.1"],"introduced":["0"],"last_affected":[],"package":"cargo","purl":null,"source":"GHSA-r5w3-xm58-jv6j"},{"ecosystem":"crates.io","fixed":["0.67.1"],"introduced":["0"],"last_affected":[],"package":"cargo","purl":"pkg:cargo/cargo","source":"GHSA-r5w3-xm58-jv6j"},{"ecosystem":"SUSE:Enterprise Storage 7.1","fixed":["1.65.0-150300.7.9.1"],"introduced":["0"],"last_affected":[],"package":"rust1.65","purl":"pkg:rpm/suse/rust1.65\u0026distro=SUSE%20Enterprise%20Storage%207.1","source":"SUSE-SU-2023:0133-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-ESPOS","fixed":["1.65.0-150300.7.9.1"],"introduced":["0"],"last_affected":[],"package":"rust1.65","purl":"pkg:rpm/suse/rust1.65\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-ESPOS","source":"SUSE-SU-2023:0133-1"},{"ecosystem":"SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","fixed":["1.65.0-150300.7.9.1"],"introduced":["0"],"last_affected":[],"package":"rust1.65","purl":"pkg:rpm/suse/rust1.65\u0026distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP3-LTSS","source":"SUSE-SU-2023:0133-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP4","fixed":["1.65.0-150300.7.9.1"],"introduced":["0"],"last_affected":[],"package":"rust1.65","purl":"pkg:rpm/suse/rust1.65\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4","source":"SUSE-SU-2023:0133-1"},{"ecosystem":"SUSE:Linux Enterprise Module for Development Tools 15 SP4","fixed":["1.66.0-150400.9.9.1"],"introduced":["0"],"last_affected":[],"package":"rust1.66","purl":"pkg:rpm/suse/rust1.66\u0026distro=SUSE%20Linux%20Enterprise%20Module%20for%20Development%20Tools%2015%20SP4","source":"SUSE-SU-2023:0132-1"},{"ecosystem":"SUSE:Linux Enterprise Real Time 15 SP3","fixed":["1.65.0-150300.7.9.1"],"introduced":["0"],"last_affected":[],"package":"rust1.65","purl":"pkg:rpm/suse/rust1.65\u0026distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP3","source":"SUSE-SU-2023:0133-1"},{"ecosystem":"SUSE:Linux Enterprise Server 15 SP3-LTSS","fixed":["1.65.0-150300.7.9.1"],"introduced":["0"],"last_affected":[],"package":"rust1.65","purl":"pkg:rpm/suse/rust1.65\u0026distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP3-LTSS","source":"SUSE-SU-2023:0133-1"},{"ecosystem":"SUSE:Linux Enterprise Server for SAP Applications 15 SP3","fixed":["1.65.0-150300.7.9.1"],"introduced":["0"],"last_affected":[],"package":"rust1.65","purl":"pkg:rpm/suse/rust1.65\u0026distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP3","source":"SUSE-SU-2023:0133-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["1.65.0-150300.7.9.1"],"introduced":["0"],"last_affected":[],"package":"rust1.65","purl":"pkg:rpm/opensuse/rust1.65\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:0133-1"},{"ecosystem":"openSUSE:Leap 15.4","fixed":["1.66.0-150400.9.9.1"],"introduced":["0"],"last_affected":[],"package":"rust1.66","purl":"pkg:rpm/opensuse/rust1.66\u0026distro=openSUSE%20Leap%2015.4","source":"SUSE-SU-2023:0132-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.65.0-4.1"],"introduced":["0"],"last_affected":[],"package":"rust1.65","purl":"pkg:rpm/opensuse/rust1.65\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12607-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.66.0-2.1"],"introduced":["0"],"last_affected":[],"package":"rust1.66","purl":"pkg:rpm/opensuse/rust1.66\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2024:12608-1"}],"prev":{"headline":"Prototype Pollution in JSON5 via Parse Method","id":"CVE-2022-46175"},"products":["cargo"],"published":"2023-01-11","related":[{"cvss_score":6.5,"headline":"Crates in third party registries can override the cached source of other crates","id":"CVE-2026-5223","kev_date_added":null,"published":"2026-05-25"},{"cvss_score":4.8,"headline":"Extracting malicious crates can fill the file system","id":"CVE-2022-36114","kev_date_added":null,"published":"2022-09-14"},{"cvss_score":4.6,"headline":"Extracting malicious crates can corrupt arbitrary files","id":"CVE-2022-36113","kev_date_added":null,"published":"2022-09-14"},{"cvss_score":2.3,"headline":"Cargo can be coerced to share credentials between registries","id":"CVE-2026-5222","kev_date_added":null,"published":"2026-05-25"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"SUSE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-03-10","vendors":["rust-lang"]},"summary":"Cargo failed to verify SSH host keys, allowing attackers to perform man-in-the-middle attacks and potentially inject malicious code during dependency cloning.","url":"https://insights.sbomify.com/CVE-2022-46176/"}