{"id":"CVE-2025-22620","published":"2025-01-20T15:38:32Z","modified":"2025-01-21T14:54:25Z","title":"gix-worktree-state nonexclusive checkout sets executable files world-writable","vendor":"GitoxideLabs","product":"gitoxide","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00339,"percentile":0.19791,"provenance":"source"},"cwes":[{"id":"CWE-281","name":"Improper Preservation of Permissions"},{"id":"CWE-687","name":"Function Call With Incorrectly Specified Argument Value"}],"references":[{"url":"https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-fqmf-w4xh-33rh","tags":["x_refsource_CONFIRM"]}],"priority":{"score":12.5,"factors":[{"name":"EPSS percentile","points":3.96},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":3.5}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2025-01-19","earliestUrl":"https://github.com/EliahKagan/checkout-index","repos":[{"name":"EliahKagan/checkout-index","url":"https://github.com/EliahKagan/checkout-index","stars":0,"created":"2025-01-19"}]},"first":{"date":"2025-01-19","source":"PoC-in-GitHub","url":"https://github.com/EliahKagan/checkout-index"},"provenance":"source"},"vendorSlug":"gitoxidelabs","affectedVersions":[{"vendor":"GitoxideLabs","product":"gitoxide","versions":["< 0.17.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2025-01-21T14:54:20.971258Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"gix-worktree-state","vulnerableRanges":["<0.17.0",">=0.0.0-0, <0.17.0"],"patched":["0.17.0"],"from":["GHSA-fqmf-w4xh-33rh","RUSTSEC-2025-0001"],"provenance":"source"}],"summary":{"text":"gitoxide, a Rust implementation of git, has a flaw in its gix-worktree-state component: when checking out executable files it requests 0777 permissions and relies on the umask to restrict them, but one permission-setting strategy ignores the umask, leaving some checked-out files world-writable. An attacker with local access and low privileges can modify those files, and exploitation requires that a user interact with the checkout operation.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:06:41Z"},"euvd":{"id":"EUVD-2025-0160","exploited":false,"provenance":"source"}}