{"answers":{"affected":"7 open source packages ship an affected version, including gitoxide, gix and gix-transport.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-32884 exists.","fix":"Upgrade gitoxide to 0.35 or later.","what":"CVE-2024-32884 is a medium-severity command injection vulnerability in Byron gitoxide, published on 26 Apr 2024. Any signed-in user can exploit it over the network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2024-32884 and fix it if it is affected.\n\nWhat it is: CVE-2024-32884 is a medium-severity command injection vulnerability in Byron gitoxide, published on 26 Apr 2024. Any signed-in user can exploit it over the network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-32884 exists.\n\nAffected packages and fixed versions:\n- gitoxide (crates.io): affected all versions; fixed in 0.35\n- gitoxide (crates.io): affected all versions; fixed in 0.35\n- gix (crates.io): affected all versions; fixed in 0.62\n- gix (crates.io): affected all versions; fixed in 0.62\n- gix-transport (crates.io): affected all versions; fixed in 0.42.0\n- gix-transport (crates.io): affected all versions; fixed in 0.42.0\n- gix-transport (crates.io): affected from 0.0.0-0; fixed in 0.42.0\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-2024-32884/ (Markdown: https://insights.sbomify.com/CVE-2024-32884/index.md)","id":"CVE-2024-32884","markdown":"https://insights.sbomify.com/CVE-2024-32884/index.md","name":"CVE-2024-32884","record":{"aliases":["AZL-40229","AZL-40264","GHSA-98p4-xjmm-8mfh","RUSTSEC-2024-0335"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust Git library","requires_auth":"low_privilege","summary":"Attackers can achieve arbitrary code execution by crafting a malicious Git clone URL that injects SSH options, requiring a specific local file setup.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":6.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"},{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"description":"gitoxide is a pure Rust implementation of Git. `gix-transport` does not check the username part of a URL for text that the external `ssh` program would interpret as an option. A specially crafted clone URL can smuggle options to SSH. The possibilities are syntactically limited, but if a malicious clone URL is used by an application whose current working directory contains a malicious file, arbitrary code execution occurs. This is related to the patched vulnerability GHSA-rrjw-j4m2-mf34, but appears less severe due to a greater attack complexity. This issue has been patched in versions 0.35.0, 0.42.0 and 0.62.0.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"gix-transport indirect code execution via malicious username","id":"CVE-2024-32884","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"command_injection","year":"2024"},"n_packages":7,"n_references":2,"next":{"headline":"Vitess vulnerable to infinite memory consumption and vtgate crash","id":"CVE-2024-32886"},"packages":[{"ecosystem":"crates.io","fixed":["0.35"],"introduced":["0"],"last_affected":[],"package":"gitoxide","purl":null,"source":"GHSA-98p4-xjmm-8mfh"},{"ecosystem":"crates.io","fixed":["0.35"],"introduced":["0"],"last_affected":[],"package":"gitoxide","purl":"pkg:cargo/gitoxide","source":"GHSA-98p4-xjmm-8mfh"},{"ecosystem":"crates.io","fixed":["0.62"],"introduced":["0"],"last_affected":[],"package":"gix","purl":null,"source":"GHSA-98p4-xjmm-8mfh"},{"ecosystem":"crates.io","fixed":["0.62"],"introduced":["0"],"last_affected":[],"package":"gix","purl":"pkg:cargo/gix","source":"GHSA-98p4-xjmm-8mfh"},{"ecosystem":"crates.io","fixed":["0.42.0"],"introduced":["0"],"last_affected":[],"package":"gix-transport","purl":null,"source":"GHSA-98p4-xjmm-8mfh"},{"ecosystem":"crates.io","fixed":["0.42.0"],"introduced":["0"],"last_affected":[],"package":"gix-transport","purl":"pkg:cargo/gix-transport","source":"GHSA-98p4-xjmm-8mfh"},{"ecosystem":"crates.io","fixed":["0.42.0"],"introduced":["0.0.0-0"],"last_affected":[],"package":"gix-transport","purl":"pkg:cargo/gix-transport","source":"RUSTSEC-2024-0335"}],"prev":{"headline":"MCUboot Injection attack of unprotected TLV values","id":"CVE-2024-32883"},"products":["gitoxide"],"published":"2024-04-26","related":[],"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":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["Byron"]},"summary":"Attackers can achieve arbitrary code execution by crafting a malicious Git clone URL that injects SSH options, requiring a specific local file setup.","url":"https://insights.sbomify.com/CVE-2024-32884/"}