CVE-2025-22620

GHSA-fqmf-w4xh-33rh · RUSTSEC-2025-0001 · published 18 Jan 2025 · updated 9 Nov 2026

gix-worktree-state nonexclusive checkout sets executable files world-writable

5.0MediumCVSS 5.0EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in gix-worktree-state 0.17.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
GitoxideLabs<0.17.0
cargo: gix-worktree-state>=0.0.0-0 <0.17.00.17.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-22620 severity on Zeptric[![CVE-2025-22620](https://zeptric.io/badge/cve/CVE-2025-22620.svg)](https://zeptric.io/cve/CVE-2025-22620)