CVE-2024-35197 gix refs and paths with reserved Windows device names access the devices
- 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.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| 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
| 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-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
- https://github.com/Byron/gitoxide/security/advisories/GHSA-49jc-r788-3fc9 vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com product
- rustsec.org vendor-advisory
- rustsec.org vendor-advisory
- rustsec.org vendor-advisory
- crates.io product
- github.com
- crates.io product
- crates.io product
- github.com
- Debian Security Tracker CVE-2024-35197 vendor-advisory