CVE-2024-35186 gix traversal outside working tree enables arbitrary code execution
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: no · technical impact: total
- Technology
- UbuntuDebian
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.
Upgrade path
15 packages: 14 fixed, 1 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/rust-gix-fs(Ubuntu 24.04) | = 0.8.0-1; All versions | No fix listed | No fix yet |
| Byron gitoxide | < 0.36.0; = < 0.36.0 | 0.36.0 | Fixed |
| crates.io gitoxide(crates.io) | < 0.36.0 | 0.36.0 | Fixed |
| crates.io gitoxide-core(crates.io) | < 0.38.0 | 0.38.0 | Fixed |
| crates.io gix(crates.io) | < 0.63.0 | 0.63.0 | Fixed |
| crates.io gix-fs(crates.io) | < 0.11.0; >= 0.0.0-0, < 0.11.0 | 0.11.0 | Fixed |
| crates.io gix-index(crates.io) | < 0.33.0; >= 0.0.0-0, < 0.33.0 | 0.33.0 | Fixed |
| crates.io gix-worktree(crates.io) | < 0.34.0; >= 0.0.0-0, < 0.34.0 | 0.34.0 | Fixed |
| crates.io gix-worktree-state(crates.io) | < 0.11.0 | 0.11.0 | Fixed |
| debian/rust-gix-fs(Debian 13) | < 0.11.3-1 | 0.11.3-1 | Fixed |
| debian/rust-gix-fs(Debian 14) | < 0.11.3-1 | 0.11.3-1 | Fixed |
| debian/rust-gix-index(Debian 13) | < 0.33.1-1 | 0.33.1-1 | Fixed |
| debian/rust-gix-index(Debian 14) | < 0.33.1-1 | 0.33.1-1 | Fixed |
| debian/rust-gix-worktree(Debian 13) | < 0.34.1-1 | 0.34.1-1 | Fixed |
| debian/rust-gix-worktree(Debian 14) | < 0.34.1-1 | 0.34.1-1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io gix-worktree-state(crates.io) | < 0.11.0 | 0.11.0 |
| crates.io gitoxide(crates.io) | < 0.36.0 | 0.36.0 |
| crates.io gix-fs(crates.io) | < 0.11.0 | 0.11.0 |
| crates.io gix-worktree(crates.io) | < 0.34.0 | 0.34.0 |
| crates.io gix(crates.io) | < 0.63.0 | 0.63.0 |
| crates.io gitoxide-core(crates.io) | < 0.38.0 | 0.38.0 |
| crates.io gix-index(crates.io) | < 0.33.0 | 0.33.0 |
| crates.io gix-index(crates.io) | >= 0.0.0-0, < 0.33.0 | 0.33.0 |
| crates.io gix-worktree(crates.io) | >= 0.0.0-0, < 0.34.0 | 0.34.0 |
| crates.io gix-fs(crates.io) | >= 0.0.0-0, < 0.11.0 | 0.11.0 |
| debian/rust-gix-fs(Debian:13) | < 0.11.3-1 | 0.11.3-1 |
| debian/rust-gix-fs(Debian:14) | < 0.11.3-1 | 0.11.3-1 |
| debian/rust-gix-index(Debian:13) | < 0.33.1-1 | 0.33.1-1 |
| debian/rust-gix-index(Debian:14) | < 0.33.1-1 | 0.33.1-1 |
| debian/rust-gix-worktree(Debian:13) | < 0.34.1-1 | 0.34.1-1 |
| debian/rust-gix-worktree(Debian:14) | < 0.34.1-1 | 0.34.1-1 |
| Byron gitoxide | = < 0.36.0 | No fix listed |
| Byron gitoxide | < 0.36.0 | 0.36.0 |
| ubuntu/rust-gix-fs(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/rust-gix-fs(Ubuntu:24.04) | = 0.8.0-1 | No fix listed |
References
- https://github.com/Byron/gitoxide/security/advisories/GHSA-7w47-3wg8-547c vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- rustsec.org issue-tracking vendor-advisory
- rustsec.org issue-tracking vendor-advisory
- crates.io product
- github.com
- crates.io product
- rustsec.org issue-tracking vendor-advisory
- crates.io product
- github.com issue-tracking
- Debian Security Tracker CVE-2024-35186 vendor-advisory
- Ubuntu CVE tracker issue-tracking vendor-advisory
- www.cve.org issue-tracking
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking
- bugs.debian.org issue-tracking