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

CVE-2024-35186

HIGH 8.8EPSS 69%

gix traversal outside working tree enables arbitrary code execution

Also known as GHSA-7w47-3wg8-547c, RUSTSEC-2024-0348, RUSTSEC-2024-0349, RUSTSEC-2024-0350

Mitigation

  • Upgrade gix-worktree-state to 0.11.0 or later.
  • Upgrade gitoxide to 0.36.0 or later.
  • Upgrade gix-fs to 0.11.0 or later.
  • Upgrade gix-worktree to 0.34.0 or later.
  • Upgrade gix to 0.63.0 or later.
  • Upgrade gitoxide-core to 0.38.0 or later.
  • Upgrade gix-index to 0.33.0 or later.

Who should check

  • Projects that depend on crates.io package gix-worktree-state (< 0.11.0)
  • Projects that depend on crates.io package gitoxide (< 0.36.0)
  • Projects that depend on crates.io package gix-fs (< 0.11.0)
  • Projects that depend on crates.io package gix-worktree (< 0.34.0)
  • Projects that depend on crates.io package gix (< 0.63.0)
  • Projects that depend on crates.io package gitoxide-core (< 0.38.0)
  • Projects that depend on crates.io package gix-index (< 0.33.0)
  • Anyone running Byron gitoxide < 0.36.0

Vulnerability facts

Affected
gix-worktree-state < 0.11.0; gitoxide < 0.36.0; gix-fs < 0.11.0; gix-worktree < 0.34.0; gix < 0.63.0; gitoxide-core < 0.38.0; gix-index < 0.33.0
Fixed in
0.11.0, 0.36.0, 0.34.0, 0.63.0, 0.38.0, 0.33.0
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Remote, no login needed
CVSS
8.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Network
  • Attack complexity: Low
  • Privileges required: None
  • User interaction: Required
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
1.23% chance of exploitation in 30 days (percentile 69, 2026-11-26)
CWE
CWE-23
Published
Modified

Description

gitoxide is a pure Rust implementation of Git. During checkout, `gix-worktree-state` does not verify that paths point to locations in the working tree. A specially crafted repository can, when cloned, place new files anywhere writable by the application. This vulnerability leads to a major loss of confidentiality, integrity, and availability, but creating files outside a working tree without attempting to execute code can directly impact integrity as well. This vulnerability has been patched in version(s) 0.36.0.

Affected and fixed versions

Package / productAffectedFixedSource
crates.io gix-worktree-state< 0.11.00.11.0osv
crates.io gitoxide< 0.36.00.36.0osv
crates.io gix-fs< 0.11.00.11.0osv
crates.io gix-worktree< 0.34.00.34.0osv
crates.io gix< 0.63.00.63.0osv
crates.io gitoxide-core< 0.38.00.38.0osv
crates.io gix-index< 0.33.00.33.0osv
Byron gitoxide< 0.36.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-2024-35186. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35186.md
Affected: gix-worktree-state < 0.11.0; gitoxide < 0.36.0; gix-fs < 0.11.0; gix-worktree < 0.34.0; gix < 0.63.0; gitoxide-core < 0.38.0; gix-index < 0.33.0
Fixed in: 0.11.0, 0.36.0, 0.34.0, 0.63.0, 0.38.0, 0.33.0

Steps:
1. Search this machine and project for gix-worktree-state (crates.io), gitoxide (crates.io), gix-fs (crates.io), gix-worktree (crates.io), gix (crates.io), gitoxide-core (crates.io): 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-2024-35186 being exploited?

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

How serious is CVE-2024-35186?

High: CVSS 8.8 (v3.1, scored by CNA). Remote, no login needed. A user has to take an action, such as opening a link, for the attack to work.

Which versions are affected by CVE-2024-35186?

gix-worktree-state < 0.11.0; gitoxide < 0.36.0; gix-fs < 0.11.0; gix-worktree < 0.34.0; gix < 0.63.0; gitoxide-core < 0.38.0; gix-index < 0.33.0.

Is there a fix for CVE-2024-35186?

Yes. Fixed in 0.11.0, 0.36.0, 0.34.0, 0.63.0, 0.38.0, 0.33.0. Upgrade gix-worktree-state to 0.11.0 or later. Upgrade gitoxide to 0.36.0 or later. Upgrade gix-fs to 0.11.0 or later. Upgrade gix-worktree to 0.34.0 or later. Upgrade gix to 0.63.0 or later. Upgrade gitoxide-core to 0.38.0 or later. Upgrade gix-index to 0.33.0 or later.

How do I check if I'm affected by CVE-2024-35186?

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