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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.0
- **CVSS:** 5.0 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:N`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.34% (percentile 20, 2026-11-26)
- **CWE:** CWE-281, CWE-687
- **Aliases:** GHSA-fqmf-w4xh-33rh, RUSTSEC-2025-0001
- **Published:** 2025-01-18T12:00:00.000Z
- **Modified:** 2026-11-09T11:00:02.606Z

## Who should check

- Projects that depend on crates.io package gix-worktree-state (\< 0.17.0)
- Anyone running GitoxideLabs gitoxide \< 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.

## Affected and fixed versions

- crates.io `gix-worktree-state`: affected \< 0.17.0; fixed 0.17.0 (osv)
- GitoxideLabs gitoxide: \< 0.17.0 (cvelist)

## Mitigation

- Upgrade gix-worktree-state to 0.17.0 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-22620. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-22620.md
Affected: gix-worktree-state < 0.17.0
Fixed in: 0.17.0

Steps:
1. Search this machine and project for gix-worktree-state (crates.io), GitoxideLabs gitoxide: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-22620 being exploited?

There is no confirmed exploitation: CVE-2025-22620 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.34% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-22620?

Medium: CVSS 5.0 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed). A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2025-22620?

gix-worktree-state \< 0.17.0.

### Is there a fix for CVE-2025-22620?

Yes. Fixed in 0.17.0. Upgrade gix-worktree-state to 0.17.0 or later.

### How do I check if I'm affected by CVE-2025-22620?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/GitoxideLabs/gitoxide/security/advisories/GHSA-fqmf-w4xh-33rh>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2025-22620>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2025-0001.html>
- patch: <https://github.com/GitoxideLabs/gitoxide/pull/1764>
- other: <https://github.com/GitoxideLabs/gitoxide>
- other: <https://crates.io/crates/gix-worktree-state>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-22620>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-fqmf-w4xh-33rh> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2025-0001> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2025-22620> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-22620>
