{"answers":{"affected":"17 open source packages ship an affected version, including gitoxide, gitoxide-core and gix.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-35197 exists.","fix":"Upgrade gitoxide to 0.36.0 or later.","what":"CVE-2024-35197 is a medium-severity path traversal vulnerability in Byron gitoxide, published on 23 May 2024. 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-2024-35197 and fix it if it is affected.\n\nWhat it is: CVE-2024-35197 is a medium-severity path traversal vulnerability in Byron gitoxide, published on 23 May 2024. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-35197 exists.\n\nAffected packages and fixed versions:\n- gitoxide (crates.io): affected all versions; fixed in 0.36.0\n- gitoxide (crates.io): affected all versions; fixed in 0.36.0\n- gitoxide-core (crates.io): affected all versions; fixed in 0.38.0\n- gitoxide-core (crates.io): affected all versions; fixed in 0.38.0\n- gix (crates.io): affected all versions; fixed in 0.63.0\n- gix (crates.io): affected all versions; fixed in 0.63.0\n- gix-index (crates.io): affected all versions; fixed in 0.33.0\n- gix-index (crates.io): affected all versions; fixed in 0.33.0\n- gix-index (crates.io): affected from 0.0.0-0; fixed in 0.33.0\n- gix-ref (crates.io): affected all versions; fixed in 0.44.0\n- gix-ref (crates.io): affected all versions; fixed in 0.44.0\n- gix-ref (crates.io): affected from 0.0.0-0; fixed in 0.44.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-35197/ (Markdown: https://insights.sbomify.com/CVE-2024-35197/index.md)","id":"CVE-2024-35197","markdown":"https://insights.sbomify.com/CVE-2024-35197/index.md","name":"CVE-2024-35197","record":{"aliases":["GHSA-49jc-r788-3fc9","RUSTSEC-2024-0351","RUSTSEC-2024-0352","RUSTSEC-2024-0353"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service","other"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust Git library","requires_auth":"none","summary":"Attackers can cause denial of service or arbitrary output by using reserved Windows device names in Git repository paths or refs.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5.4,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L","version":"3.1"},"cwes":[{"id":"CWE-67","name":"Improper Handling of Windows Device Names"}],"description":"gitoxide is a pure Rust implementation of Git. On Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. If Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. A minor degradation in availability may also be possible, such as with a very large file named `CON`, though the user could interrupt the application.","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 refs and paths with reserved Windows device names access the devices","id":"CVE-2024-35197","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"path_traversal","year":"2024"},"n_packages":17,"n_references":1,"next":{"headline":"TorchServe bypass allowed_urls configuration","id":"CVE-2024-35198"},"packages":[{"ecosystem":"crates.io","fixed":["0.36.0"],"introduced":["0"],"last_affected":[],"package":"gitoxide","purl":null,"source":"GHSA-49jc-r788-3fc9"},{"ecosystem":"crates.io","fixed":["0.36.0"],"introduced":["0"],"last_affected":[],"package":"gitoxide","purl":"pkg:cargo/gitoxide","source":"GHSA-49jc-r788-3fc9"},{"ecosystem":"crates.io","fixed":["0.38.0"],"introduced":["0"],"last_affected":[],"package":"gitoxide-core","purl":null,"source":"GHSA-49jc-r788-3fc9"},{"ecosystem":"crates.io","fixed":["0.38.0"],"introduced":["0"],"last_affected":[],"package":"gitoxide-core","purl":"pkg:cargo/gitoxide-core","source":"GHSA-49jc-r788-3fc9"},{"ecosystem":"crates.io","fixed":["0.63.0"],"introduced":["0"],"last_affected":[],"package":"gix","purl":null,"source":"GHSA-49jc-r788-3fc9"},{"ecosystem":"crates.io","fixed":["0.63.0"],"introduced":["0"],"last_affected":[],"package":"gix","purl":"pkg:cargo/gix","source":"GHSA-49jc-r788-3fc9"},{"ecosystem":"crates.io","fixed":["0.33.0"],"introduced":["0"],"last_affected":[],"package":"gix-index","purl":null,"source":"GHSA-49jc-r788-3fc9"},{"ecosystem":"crates.io","fixed":["0.33.0"],"introduced":["0"],"last_affected":[],"package":"gix-index","purl":"pkg:cargo/gix-index","source":"GHSA-49jc-r788-3fc9"},{"ecosystem":"crates.io","fixed":["0.33.0"],"introduced":["0.0.0-0"],"last_affected":[],"package":"gix-index","purl":"pkg:cargo/gix-index","source":"RUSTSEC-2024-0352"},{"ecosystem":"crates.io","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"gix-ref","purl":null,"source":"GHSA-49jc-r788-3fc9"},{"ecosystem":"crates.io","fixed":["0.44.0"],"introduced":["0"],"last_affected":[],"package":"gix-ref","purl":"pkg:cargo/gix-ref","source":"GHSA-49jc-r788-3fc9"},{"ecosystem":"crates.io","fixed":["0.44.0"],"introduced":["0.0.0-0"],"last_affected":[],"package":"gix-ref","purl":"pkg:cargo/gix-ref","source":"RUSTSEC-2024-0351"},{"ecosystem":"crates.io","fixed":["0.34.0"],"introduced":["0"],"last_affected":[],"package":"gix-worktree","purl":null,"source":"GHSA-49jc-r788-3fc9"},{"ecosystem":"crates.io","fixed":["0.34.0"],"introduced":["0"],"last_affected":[],"package":"gix-worktree","purl":"pkg:cargo/gix-worktree","source":"GHSA-49jc-r788-3fc9"},{"ecosystem":"crates.io","fixed":["0.34.0"],"introduced":["0.0.0-0"],"last_affected":[],"package":"gix-worktree","purl":"pkg:cargo/gix-worktree","source":"RUSTSEC-2024-0353"},{"ecosystem":"crates.io","fixed":["0.11.0"],"introduced":["0"],"last_affected":[],"package":"gix-worktree-state","purl":null,"source":"GHSA-49jc-r788-3fc9"},{"ecosystem":"crates.io","fixed":["0.11.0"],"introduced":["0"],"last_affected":[],"package":"gix-worktree-state","purl":"pkg:cargo/gix-worktree-state","source":"GHSA-49jc-r788-3fc9"}],"prev":{"headline":"Slack integration leaks sensitive information in logs in Sentry","id":"CVE-2024-35196"},"products":["gitoxide"],"published":"2024-05-23","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":"partial"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["Byron"]},"summary":"Attackers can cause denial of service or arbitrary output by using reserved Windows device names in Git repository paths or refs.","url":"https://insights.sbomify.com/CVE-2024-35197/"}