CVE-2024-35186
HIGH 8.8CVSS 3.1gix traversal outside working tree enables arbitrary code execution
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.
- Published
- 23 May 2024
- Last modified
- 9 Nov 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-22CWE-23
- Also known as
- GHSA-7w47-3wg8-547cRUSTSEC-2024-0348RUSTSEC-2024-0349RUSTSEC-2024-0350
- Sources
- NVDJSONOSV GHSA-7w47-3wg8-547cJSONOSV RUSTSEC-2024-0348JSONOSV RUSTSEC-2024-0349JSONOSV RUSTSEC-2024-0350JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
| OSV | RustSec | CVSS 3.1 | HIGH 8.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | gix-worktree-state | < 0.11.0 | 0.11.0 |
| OSV | crates.io | gitoxide | < 0.36.0 | 0.36.0 |
| OSV | crates.io | gix-fs | < 0.11.0 | 0.11.0 |
| OSV | crates.io | gix-worktree | < 0.34.0 | 0.34.0 |
| OSV | crates.io | gix | < 0.63.0 | 0.63.0 |
| OSV | crates.io | gitoxide-core | < 0.38.0 | 0.38.0 |
| OSV | crates.io | gix-index | < 0.33.0 | 0.33.0 |
| OSV | crates.io | gix-index | >= 0.0.0-0, < 0.33.0 | 0.33.0 |
| OSV | crates.io | gix-worktree | >= 0.0.0-0, < 0.34.0 | 0.34.0 |
| OSV | crates.io | gix-fs | >= 0.0.0-0, < 0.11.0 | 0.11.0 |
References
- https://github.com/Byron/gitoxide/security/advisories/GHSA-7w47-3wg8-547c · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2024-35186 · ADVISORY, WEB
- https://github.com/Byron/gitoxide · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2024-0348.html · WEB, ADVISORY
- https://rustsec.org/advisories/RUSTSEC-2024-0350.html · WEB, ADVISORY
- https://crates.io/crates/gix-index · PACKAGE
- https://github.com/GitoxideLabs/gitoxide/commit/79dce79c62f6072aa2653780d590dc3993dfa401 · WEB
- https://crates.io/crates/gix-worktree · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2024-0349.html · ADVISORY
- https://crates.io/crates/gix-fs · PACKAGE
History
- 25 Nov 2026 20:55 UTC · NVD: first stored (published 23 May 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 May 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 May 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 May 2024)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 May 2024)