# CVE-2024-35197: gix refs and paths with reserved Windows device names access the devices

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

- **Severity:** MEDIUM 5.4
- **CVSS:** 5.4 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: Low; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **EPSS:** 0.64% (percentile 45, 2026-11-26)
- **CWE:** CWE-67
- **Aliases:** GHSA-49jc-r788-3fc9, RUSTSEC-2024-0351, RUSTSEC-2024-0352, RUSTSEC-2024-0353
- **Published:** 2024-05-22T12:00:00.000Z
- **Modified:** 2026-11-09T11:00:03.728Z

## 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-worktree (\< 0.34.0)
- Projects that depend on crates.io package gitoxide-core (\< 0.38.0)
- Projects that depend on crates.io package gix (\< 0.63.0)
- Projects that depend on crates.io package gix-ref (\< 0.44.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. On Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. If Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. A minor degradation in availability may also be possible, such as with a very large file named \`CON\`, though the user could interrupt the application.

## 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-worktree`: affected \< 0.34.0; fixed 0.34.0 (osv)
- crates.io `gitoxide-core`: affected \< 0.38.0; fixed 0.38.0 (osv)
- crates.io `gix`: affected \< 0.63.0; fixed 0.63.0 (osv)
- crates.io `gix-ref`: affected \< 0.44.0; fixed 0.44.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-worktree to 0.34.0 or later.
- Upgrade gitoxide-core to 0.38.0 or later.
- Upgrade gix to 0.63.0 or later.
- Upgrade gix-ref to 0.44.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-35197. Work read-only: do not install, upgrade, delete or change anything.

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

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

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

### How serious is CVE-2024-35197?

Medium: CVSS 5.4 (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-35197?

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

### Is there a fix for CVE-2024-35197?

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

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

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-49jc-r788-3fc9>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-35197>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2024-0351.html>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2024-0352.html>
- vendor: <https://rustsec.org/advisories/RUSTSEC-2024-0353.html>
- patch: <https://github.com/GitoxideLabs/gitoxide/commit/79dce79c62f6072aa2653780d590dc3993dfa401>
- other: <https://github.com/Byron/gitoxide>
- other: <https://crates.io/crates/gix-ref>
- other: <https://crates.io/crates/gix-index>
- other: <https://crates.io/crates/gix-worktree>

## 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-35197>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-49jc-r788-3fc9> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2024-0351> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2024-0352> (license: <https://creativecommons.org/licenses/by/4.0/>)
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/RUSTSEC-2024-0353> (license: <https://creativecommons.org/licenses/by/4.0/>)

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