Skip to content
OpenAdvisories
Medium · 5.0 Public exploit CVE-2025-22620 EUVD-2025-0160GHSA-fqmf-w4xh-33rhRUSTSEC-2025-0001

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

Published Jan 20, 2025 · Updated Jan 21, 2025 · Assigned by GitHub_M

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.

Affected products

VendorProductAffectedFixed
GitoxideLabs gitoxide < 0.17.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-gix-worktree-state 0.11.1-2 —
Debian 13 rust-gix-worktree-state 0.11.1-2 —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed gitoxide 0.42.0-1.1 openSUSE-SU-2025:14994-1
openSUSE Leap 16.0 gitoxide 0.56.0-bp160.1.1 openSUSE-SU-2026:21558-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling cargo-audit 0.21.2-r0 —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io gix-worktree-state < 0.17.0 0.17.0 GHSA-fqmf-w4xh-33rh
crates.io gix-worktree-state >= 0.0.0-0, < 0.17.0 0.17.0 RUSTSEC-2025-0001

Advisories 2

References