Skip to content

CVE-2025-22620 gix-worktree-state nonexclusive checkout sets executable files world-writable

MediumCVSS 5.0 EPSS 0.37%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
Debian

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.

Upgrade path

4 packages: 3 fixed.

PackageAffectedFixed inStatus
crates.io gix-worktree-state(crates.io) < 0.17.0; >= 0.0.0-0, < 0.17.0 0.17.0 Fixed
debian/rust-gix-worktree-state(Debian 13) < 0.11.1-2 0.11.1-2 Fixed
debian/rust-gix-worktree-state(Debian 14) < 0.11.1-2 0.11.1-2 Fixed
GitoxideLabs gitoxide = < 0.17.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
crates.io gix-worktree-state(crates.io) < 0.17.0 0.17.0
crates.io gix-worktree-state(crates.io) >= 0.0.0-0, < 0.17.0 0.17.0
debian/rust-gix-worktree-state(Debian:13) < 0.11.1-2 0.11.1-2
debian/rust-gix-worktree-state(Debian:14) < 0.11.1-2 0.11.1-2
GitoxideLabs gitoxide = < 0.17.0 No fix listed

References