CVE-2024-35186

GHSA-7w47-3wg8-547c · RUSTSEC-2024-0348 · RUSTSEC-2024-0349 · RUSTSEC-2024-0350 · published 22 May 2024 · updated 9 Nov 2026

gix traversal outside working tree enables arbitrary code execution

8.8HighCVSS 8.8EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in gix-fs 0.11.0, gix-index 0.33.0 and gix-worktree 0.34.0.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Byron<0.36.0
cargo: gix-fs>=0.0.0-0 <0.11.00.11.0
cargo: gix-index>=0.0.0-0 <0.33.00.33.0
cargo: gix-worktree>=0.0.0-0 <0.34.00.34.0

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-35186 severity on Zeptric[![CVE-2024-35186](https://zeptric.io/badge/cve/CVE-2024-35186.svg)](https://zeptric.io/cve/CVE-2024-35186)