CVE-2024-35186gix traversal outside working tree enables arbitrary code execution
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.
What to do
Fixed builds are available from Debian, crates.io: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | rust-gix-fs | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | rust-gix-index | Not affected vulnerable_code_not_present | ||
| Ubuntu 26.04 | rust-gix-worktree | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | rust-gix-fs | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | rust-gix-index | Not affected vulnerable_code_not_present | ||
| Ubuntu 25.10 | rust-gix-worktree | Not affected vulnerable_code_not_present | ||
| Ubuntu 24.04 | rust-gix-fs | Fix pending | UBUNTU-CVE-2024-35186 | |
| Debian 14 | rust-gix-fs | Fixed | 0.11.3-1 | DEBIAN-CVE-2024-35186 |
| Debian 14 | rust-gix-index | Fixed | 0.33.1-1 | DEBIAN-CVE-2024-35186 |
| Debian 14 | rust-gix-worktree | Fixed | 0.34.1-1 | DEBIAN-CVE-2024-35186 |
| Debian 13 | rust-gix-fs | Fixed | 0.11.3-1 | DEBIAN-CVE-2024-35186 |
| Debian 13 | rust-gix-index | Fixed | 0.33.1-1 | DEBIAN-CVE-2024-35186 |
| Debian 13 | rust-gix-worktree | Fixed | 0.34.1-1 | DEBIAN-CVE-2024-35186 |
| crates.io library | gitoxide | Fixed | 0.36.0 | GHSA-7w47-3wg8-547c |
| crates.io library | gitoxide-core | Fixed | 0.38.0 | GHSA-7w47-3wg8-547c |
| crates.io library | gix | Fixed | 0.63.0 | GHSA-7w47-3wg8-547c |
| crates.io library | gix-fs | Fixed | 0.11.0 | RUSTSEC-2024-0350 |
| crates.io library | gix-index | Fixed | 0.33.0 | GHSA-7w47-3wg8-547c |
| crates.io library | gix-worktree | Fixed | 0.34.0 | GHSA-7w47-3wg8-547c |
| crates.io library | gix-worktree-state | Fixed | 0.11.0 | GHSA-7w47-3wg8-547c |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- Byron gitoxide: affected: < 0.36.0
References
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.