# CVE-2024-35186: gix traversal outside working tree enables arbitrary code execution

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 1.23% (percentile 69, 2026-11-26)
- **CWE:** CWE-23
- **Aliases:** GHSA-7w47-3wg8-547c, RUSTSEC-2024-0348, RUSTSEC-2024-0349, RUSTSEC-2024-0350
- **Published:** 2024-05-22T12:00:00.000Z
- **Modified:** 2026-11-09T11:00:03.760Z

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

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

- crates.io `gix-worktree-state`: affected \< 0.11.0; fixed 0.11.0 (osv)
- crates.io `gitoxide`: affected \< 0.36.0; fixed 0.36.0 (osv)
- crates.io `gix-fs`: affected \< 0.11.0; fixed 0.11.0 (osv)
- crates.io `gix-worktree`: affected \< 0.34.0; fixed 0.34.0 (osv)
- crates.io `gix`: affected \< 0.63.0; fixed 0.63.0 (osv)
- crates.io `gitoxide-core`: affected \< 0.38.0; fixed 0.38.0 (osv)
- crates.io `gix-index`: affected \< 0.33.0; fixed 0.33.0 (osv)
- Byron gitoxide: \< 0.36.0 (cvelist)

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

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

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

## References

- vendor: <https://github.com/Byron/gitoxide/security/advisories/GHSA-7w47-3wg8-547c>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-35186>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2024-0348.html>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2024-0350.html>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2024-0349.html>
- patch: <https://github.com/GitoxideLabs/gitoxide/commit/79dce79c62f6072aa2653780d590dc3993dfa401>
- other: <https://github.com/Byron/gitoxide>
- other: <https://crates.io/crates/gix-index>
- other: <https://crates.io/crates/gix-worktree>
- other: <https://crates.io/crates/gix-fs>

## 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-2024-35186>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-7w47-3wg8-547c> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2024-0348> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2024-0349> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2024-0350> (license: <https://creativecommons.org/licenses/by/4.0/>)

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