{"answers":{"affected":"3 open source packages ship an affected version, including gix-worktree-state.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-22620 exists.","fix":"Upgrade gix-worktree-state to 0.17.0 or later.","what":"CVE-2025-22620 is a medium-severity vulnerability in GitoxideLabs gitoxide, published on 20 Jan 2025. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2025-22620 and fix it if it is affected.\n\nWhat it is: CVE-2025-22620 is a medium-severity vulnerability in GitoxideLabs gitoxide, published on 20 Jan 2025. It can only be exploited from the same machine or local network, 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-2025-22620 exists.\n\nAffected packages and fixed versions:\n- gix-worktree-state (crates.io): affected all versions; fixed in 0.17.0\n- gix-worktree-state (crates.io): affected all versions; fixed in 0.17.0\n- gix-worktree-state (crates.io): affected from 0.0.0-0; fixed in 0.17.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-2025-22620/ (Markdown: https://insights.sbomify.com/CVE-2025-22620/index.md)","id":"CVE-2025-22620","markdown":"https://insights.sbomify.com/CVE-2025-22620/index.md","name":"CVE-2025-22620","record":{"aliases":["DEBIAN-CVE-2025-22620","GHSA-fqmf-w4xh-33rh","RUSTSEC-2025-0001"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"Git implementation library","requires_auth":"low_privilege","summary":"An attacker with local access can modify world-writable executable files checked out by gitoxide, potentially leading to unauthorized code execution or data tampering.","user_interaction":"required","vuln_class":"misconfiguration"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-687","name":"Function Call With Incorrectly Specified Argument Value"},{"id":"CWE-281","name":"Improper Preservation of Permissions"}],"description":"gitoxide is an implementation of git written in Rust. Prior to 0.17.0, gix-worktree-state specifies 0777 permissions when checking out executable files, intending that the umask will restrict them appropriately. But one of the strategies it uses to set permissions is not subject to the umask. This causes files in a repository to be world-writable in some situations. This vulnerability is fixed in 0.17.0.","ecosystems":["crates.io"],"exploits":{"exploitdb":0,"first_seen":"2025-01-19","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2025-01-19T05:31:13Z","kind":"github_poc","ref":"https://github.com/EliahKagan/checkout-index","stars":0,"title":"Reproducer for CVE-2025-22620"}],"tier":"weaponised"},"has_fix":true,"headline":"gix-worktree-state nonexclusive checkout sets executable files world-writable","id":"CVE-2025-22620","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"misconfiguration","year":"2025"},"n_packages":3,"n_references":1,"next":{"headline":"Privilege escalation for users who hold the “splunk_app_soar“ role in the Splunk App for SOAR","id":"CVE-2025-22621"},"packages":[{"ecosystem":"crates.io","fixed":["0.17.0"],"introduced":["0"],"last_affected":[],"package":"gix-worktree-state","purl":null,"source":"GHSA-fqmf-w4xh-33rh"},{"ecosystem":"crates.io","fixed":["0.17.0"],"introduced":["0"],"last_affected":[],"package":"gix-worktree-state","purl":"pkg:cargo/gix-worktree-state","source":"GHSA-fqmf-w4xh-33rh"},{"ecosystem":"crates.io","fixed":["0.17.0"],"introduced":["0.0.0-0"],"last_affected":[],"package":"gix-worktree-state","purl":"pkg:cargo/gix-worktree-state","source":"RUSTSEC-2025-0001"}],"prev":{"headline":"WeGIA Cross-Site Scripting (XSS) Reflected endpoint 'editar_permissoes.php' parameter 'msg_c'","id":"CVE-2025-22619"},"products":["gitoxide"],"published":"2025-01-20","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)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-01-21","vendors":["GitoxideLabs"]},"summary":"An attacker with local access can modify world-writable executable files checked out by gitoxide, potentially leading to unauthorized code execution or data tampering.","url":"https://insights.sbomify.com/CVE-2025-22620/"}