Skip to content

CVE-2024-35197 gix refs and paths with reserved Windows device names access the devices

MediumCVSS 5.4 EPSS 0.45%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: partial
Technology
Debian

Description

gitoxide is a pure Rust implementation of Git. On Windows, fetching refs that clash with legacy device names reads from the devices, and checking out paths that clash with such names writes arbitrary data to the devices. This allows a repository, when cloned, to cause indefinite blocking or the production of arbitrary message that appear to have come from the application, and potentially other harmful effects under limited circumstances. If Windows is not used, or untrusted repositories are not cloned or otherwise used, then there is no impact. A minor degradation in availability may also be possible, such as with a very large file named CON, though the user could interrupt the application.

Upgrade path

8 packages: 8 fixed.

PackageAffectedFixed inStatus
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-index(crates.io) < 0.33.0; >= 0.0.0-0, < 0.33.0 0.33.0 Fixed
crates.io gix-ref(crates.io) < 0.44.0; >= 0.0.0-0, < 0.44.0 0.44.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

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-worktree(crates.io) < 0.34.0 0.34.0
crates.io gitoxide-core(crates.io) < 0.38.0 0.38.0
crates.io gix(crates.io) < 0.63.0 0.63.0
crates.io gix-ref(crates.io) < 0.44.0 0.44.0
crates.io gix-index(crates.io) < 0.33.0 0.33.0
crates.io gix-ref(crates.io) >= 0.0.0-0, < 0.44.0 0.44.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
Byron gitoxide = < 0.36.0 No fix listed
Byron gitoxide < 0.36.0 0.36.0

References