Vulnerability · Published May 23, 2024 · Assigned by GitHub_M
CVE-2024-35186gix traversal outside working tree enables arbitrary code execution
High 8.8
In plain English
A high-severity security flaw in gitoxide from Byron. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | rust-gix-fs | 0.11.3-1 | DEBIAN-CVE-2024-35186 |
| Debian:14 | rust-gix-fs | 0.11.3-1 | DEBIAN-CVE-2024-35186 |
| Debian:13 | rust-gix-index | 0.33.1-1 | DEBIAN-CVE-2024-35186 |
| Debian:14 | rust-gix-index | 0.33.1-1 | DEBIAN-CVE-2024-35186 |
| Debian:13 | rust-gix-worktree | 0.34.1-1 | DEBIAN-CVE-2024-35186 |
| Debian:14 | rust-gix-worktree | 0.34.1-1 | DEBIAN-CVE-2024-35186 |
| Ubuntu:24.04:LTS | rust-gix-fs | no fix listed | UBUNTU-CVE-2024-35186 |
Affected products (as reported)
Weakness: CWE-23 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
References
- https://github.com/Byron/gitoxide/security/advisories/GHSA-7w47-3wg8-547c x_refsource_CONFIRM