Skip to content

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

HighCVSS 8.8 EPSS 0.82%
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.

PackageAffectedFixed inStatus
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

ProductAffected versionsFixed 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