# CVE-2024-35197: RUSTSEC-2024-0352 - Refs and paths with reserved Windows device names access the devices

Source: https://junglewise.ai/threats/cve-2024-35197-gix-refs-and-paths-with-reserved-windows-device-names-access-the  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2024-05-22  
License: CC BY 4.0 with a link back

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

Refs and paths with reserved Windows device names access the devices

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-35197 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2024-35197 being exploited in the wild.

**How severe is CVE-2024-35197?** 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-index (crates.io) SEMVER:introduced=0,fixed=0.33.0, SEMVER:introduced=0.0.0-0,fixed=0.33.0; and 3 more.

**Is there a fix for CVE-2024-35197?** 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-index (crates.io): upgrade to 0.33.0 or later; gix-ref (crates.io): upgrade to 0.44.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-35197?** 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-index (crates.io): upgrade to 0.33.0 or later

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

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

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

- 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-index (crates.io) SEMVER:introduced=0,fixed=0.33.0, SEMVER:introduced=0.0.0-0,fixed=0.33.0
- gix-ref (crates.io) SEMVER:introduced=0,fixed=0.44.0, SEMVER:introduced=0.0.0-0,fixed=0.44.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-35197
- GHSA-49jc-r788-3fc9
- RUSTSEC-2024-0351
- RUSTSEC-2024-0352
- RUSTSEC-2024-0353

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