# CVE-2024-35186: gix traversal outside working tree enables arbitrary code execution

- Severity: High 8.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.82%, higher than 58% of CVEs (2026-12-01)
- Published: 2024-05-22T12:00:00.000Z
- Modified: 2026-11-09T11:00:03.760Z
- Also known as: GHSA-7w47-3wg8-547c, RUSTSEC-2024-0348, RUSTSEC-2024-0349, RUSTSEC-2024-0350
- Weaknesses: CWE-22, CWE-23
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- Byron gitoxide: < 0.36.0; before 0.36.0
- gix-worktree-state (crates.io): before 0.11.0
- gitoxide (crates.io): before 0.36.0
- gix-fs (crates.io): before 0.11.0; from 0.0.0-0 before 0.11.0
- gix-worktree (crates.io): before 0.34.0; from 0.0.0-0 before 0.34.0
- gix (crates.io): before 0.63.0
- gitoxide-core (crates.io): before 0.38.0
- gix-index (crates.io): before 0.33.0; from 0.0.0-0 before 0.33.0

## Every score

- GitHub_M: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`
- RustSec Advisory Database: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/Byron/gitoxide/security/advisories/GHSA-7w47-3wg8-547c> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-35186> (advisory, web)
- <https://github.com/Byron/gitoxide> (package)
- <https://rustsec.org/advisories/RUSTSEC-2024-0348.html> (advisory, web)
- <https://rustsec.org/advisories/RUSTSEC-2024-0350.html> (advisory, web)
- <https://crates.io/crates/gix-index> (package)
- <https://github.com/GitoxideLabs/gitoxide/commit/79dce79c62f6072aa2653780d590dc3993dfa401> (web)
- <https://crates.io/crates/gix-worktree> (package)
- <https://rustsec.org/advisories/RUSTSEC-2024-0349.html> (advisory)
- <https://crates.io/crates/gix-fs> (package)

## Sources

- CVE List: [CVE-2024-35186](https://www.cve.org/CVERecord?id=CVE-2024-35186), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-7w47-3wg8-547c](https://github.com/advisories/GHSA-7w47-3wg8-547c), CC-BY-4.0, modified 2026-09-10
- RustSec Advisory Database: [RUSTSEC-2024-0348](https://rustsec.org/advisories/RUSTSEC-2024-0348.html), CC0-1.0, modified 2026-11-09
- RustSec Advisory Database: [RUSTSEC-2024-0349](https://rustsec.org/advisories/RUSTSEC-2024-0349.html), CC0-1.0, modified 2026-11-09
- RustSec Advisory Database: [RUSTSEC-2024-0350](https://rustsec.org/advisories/RUSTSEC-2024-0350.html), CC0-1.0, modified 2026-11-09
- NVD: [CVE-2024-35186](https://nvd.nist.gov/vuln/detail/CVE-2024-35186), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-35186 · Whole record: https://cve.day/CVE-2024-35186.json · Rebuilt by cve.day 2026-11-25T22:58:40.758Z
