# CVE-2024-35186: RUSTSEC-2024-0350 - Traversal outside working tree enables arbitrary code execution

Source: https://junglewise.ai/threats/cve-2024-35186-gix-traversal-outside-working-tree-enables-arbitrary-code  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-05-22  
License: CC BY 4.0 with a link back

CVE-2024-35186 · Severity: low · CVSS 3.1 · Published 2024-05-22

Traversal outside working tree enables arbitrary code execution

Technologies: [gitoxide (crates.io)](https://junglewise.ai/threats/technologies/crates-io-gitoxide), [gitoxide-core (crates.io)](https://junglewise.ai/threats/technologies/gitoxide-core), [gix (crates.io)](https://junglewise.ai/threats/technologies/gix), [gix-index (crates.io)](https://junglewise.ai/threats/technologies/gix-index), [gix-worktree (crates.io)](https://junglewise.ai/threats/technologies/crates-io-gix-worktree), [gix-worktree-state (crates.io)](https://junglewise.ai/threats/technologies/crates-io-gix-worktree-state). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is CVE-2024-35186 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-35186 being exploited in the wild.

**How severe is CVE-2024-35186?** Low severity, with a CVSS score of 3.1, published 22 May 2024.

**Which products and versions are affected?** gitoxide (crates.io) SEMVER:introduced=0,fixed=0.36.0; gitoxide-core (crates.io) SEMVER:introduced=0,fixed=0.38.0; gix (crates.io) SEMVER:introduced=0,fixed=0.63.0; gix-fs (crates.io) SEMVER:introduced=0,fixed=0.11.0, SEMVER:introduced=0.0.0-0,fixed=0.11.0; and 3 more.

**Is there a fix for CVE-2024-35186?** Yes. gitoxide (crates.io): upgrade to 0.36.0 or later; gitoxide-core (crates.io): upgrade to 0.38.0 or later; gix (crates.io): upgrade to 0.63.0 or later; gix-fs (crates.io): upgrade to 0.11.0 or later; gix-index (crates.io): upgrade to 0.33.0 or later; gix-worktree (crates.io): upgrade to 0.34.0 or later; gix-worktree-state (crates.io): upgrade to 0.11.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2024-35186?** Check whether you run gitoxide (crates.io), gitoxide-core (crates.io), gix (crates.io) or one of the others listed at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- gitoxide (crates.io): upgrade to 0.36.0 or later

  ```sh
  cargo update -p gitoxide
  ```

- gitoxide-core (crates.io): upgrade to 0.38.0 or later

  ```sh
  cargo update -p gitoxide-core
  ```

- gix (crates.io): upgrade to 0.63.0 or later

  ```sh
  cargo update -p gix
  ```

- gix-fs (crates.io): upgrade to 0.11.0 or later

  ```sh
  cargo update -p gix-fs
  ```

- gix-index (crates.io): upgrade to 0.33.0 or later

  ```sh
  cargo update -p gix-index
  ```

- gix-worktree (crates.io): upgrade to 0.34.0 or later

  ```sh
  cargo update -p gix-worktree
  ```

- gix-worktree-state (crates.io): upgrade to 0.11.0 or later

  ```sh
  cargo update -p gix-worktree-state
  ```


## Affected products

- gitoxide (crates.io) SEMVER:introduced=0,fixed=0.36.0
- gitoxide-core (crates.io) SEMVER:introduced=0,fixed=0.38.0
- gix (crates.io) SEMVER:introduced=0,fixed=0.63.0
- gix-fs (crates.io) SEMVER:introduced=0,fixed=0.11.0, SEMVER:introduced=0.0.0-0,fixed=0.11.0
- gix-index (crates.io) SEMVER:introduced=0,fixed=0.33.0, SEMVER:introduced=0.0.0-0,fixed=0.33.0
- gix-worktree (crates.io) SEMVER:introduced=0,fixed=0.34.0, SEMVER:introduced=0.0.0-0,fixed=0.34.0
- gix-worktree-state (crates.io) SEMVER:introduced=0,fixed=0.11.0

## Identifiers

- CVE-2024-35186
- GHSA-7w47-3wg8-547c
- RUSTSEC-2024-0348
- RUSTSEC-2024-0349
- RUSTSEC-2024-0350

## Related threats

- [gitoxide gix path-protection bypass via untrusted .git/config](https://junglewise.ai/threats/gitoxide-gix-untrusted-git-config-disables-filesystem-git-protection-1eddd4d0)
- [gitoxide path traversal in submodule name validation](https://junglewise.ai/threats/cve-2026-82253-gitoxide-path-traversal-in-submodule-name-validation)
- [gitoxide symlink following in .gitmodules file](https://junglewise.ai/threats/cve-2026-82252-gitoxide-symlink-following-in-gitmodules-file)
- [gitoxide path traversal in submodule name resolution](https://junglewise.ai/threats/cve-2026-82251-gitoxide-path-traversal-in-submodule-name-resolution)
- [gitoxide gix-submodule command injection in gix_submodule::File::update](https://junglewise.ai/threats/gitoxide-gix-submodule-command-injection-in-gix-submodule-file-update-5009257f)
