Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-22620

MEDIUM 5.0EPSS 20%

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

Also known as GHSA-fqmf-w4xh-33rh, RUSTSEC-2025-0001

Mitigation

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

Who should check

  • Projects that depend on crates.io package gix-worktree-state (< 0.17.0)
  • Anyone running GitoxideLabs gitoxide < 0.17.0

Vulnerability facts

Affected
gix-worktree-state < 0.17.0
Fixed in
0.17.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.0 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:H/A:NOpen in CVSS calculator
Show all 8 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
EPSS
0.34% chance of exploitation in 30 days (percentile 20, 2026-11-26)
CWE
CWE-281, CWE-687
Published
Modified

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

Package / productAffectedFixedSource
crates.io gix-worktree-state< 0.17.00.17.0osv
GitoxideLabs gitoxide< 0.17.0—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors