Skip to content
OpenAdvisories
High · 8.8 CVE-2024-35186 EUVD-2024-1506GHSA-7w47-3wg8-547cRUSTSEC-2024-0348RUSTSEC-2024-0349RUSTSEC-2024-0350

gix traversal outside working tree enables arbitrary code execution

Published May 23, 2024 · Updated Aug 2, 2024 · 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.

Affected products

VendorProductAffectedFixed
Byron gitoxide < 0.36.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rust-gix-fs 0.11.3-1 —
Debian 14 rust-gix-index 0.33.1-1 —
Debian 14 rust-gix-worktree 0.34.1-1 —
Debian 13 rust-gix-fs 0.11.3-1 —
Debian 13 rust-gix-index 0.33.1-1 —
Debian 13 rust-gix-worktree 0.34.1-1 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS rust-gix-fs No fix yet —
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed gitoxide 0.36.0-1.1 openSUSE-SU-2024:13987-1

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling cargo-audit 0.21.2-r1 —

Affected packages

EcosystemPackageAffectedFixedRecord
crates.io gitoxide < 0.36.0 0.36.0 GHSA-7w47-3wg8-547c
crates.io gitoxide-core < 0.38.0 0.38.0 GHSA-7w47-3wg8-547c
crates.io gix < 0.63.0 0.63.0 GHSA-7w47-3wg8-547c
crates.io gix-fs < 0.11.0 0.11.0 GHSA-7w47-3wg8-547c
crates.io gix-fs >= 0.0.0-0, < 0.11.0 0.11.0 RUSTSEC-2024-0350
crates.io gix-index < 0.33.0 0.33.0 GHSA-7w47-3wg8-547c
crates.io gix-index >= 0.0.0-0, < 0.33.0 0.33.0 RUSTSEC-2024-0348
crates.io gix-worktree < 0.34.0 0.34.0 GHSA-7w47-3wg8-547c
crates.io gix-worktree >= 0.0.0-0, < 0.34.0 0.34.0 RUSTSEC-2024-0349
crates.io gix-worktree-state < 0.11.0 0.11.0 GHSA-7w47-3wg8-547c

Advisories 1

References