CVE-2024-35186
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.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| sles | affected | | |
| debian | forky | fixed | 0.11.3-1 |
| debian | sid | fixed | 0.11.3-1 |
| debian | trixie | fixed | 0.11.3-1 |
Package impact
| Ecosystem | Package | Vulnerable | Fixed |
|---|---|---|---|
| crates.io | gix-index | | |
| crates.io | gix-fs | | |
| crates.io | gix-worktree | | |
| crates.io | gix-worktree | >=0.0.0-0,<0.34.0 | 0.34.0 |
| crates.io | gix-fs | >=0.0.0-0,<0.11.0 | 0.11.0 |
| crates.io | gix-index | >=0.0.0-0,<0.33.0 | 0.33.0 |
| crates.io | gix-worktree-state | <0.11.0 | 0.11.0 |
| crates.io | gitoxide | <0.36.0 | 0.36.0 |
| crates.io | gix-fs | <0.11.0 | 0.11.0 |
| crates.io | gix-worktree | <0.34.0 | 0.34.0 |
| crates.io | gix | <0.63.0 | 0.63.0 |
| crates.io | gitoxide-core | <0.38.0 | 0.38.0 |
| crates.io | gix-index | <0.33.0 | 0.33.0 |
References
- https://github.com/Byron/gitoxide/security/advisories/GHSA-7w47-3wg8-547c
- https://www.suse.com/security/cve/CVE-2024-35186.html
- https://nvd.nist.gov/vuln/detail/CVE-2024-35186
- https://github.com/Byron/gitoxide
- https://rustsec.org/advisories/RUSTSEC-2024-0348.html
- https://rustsec.org/advisories/RUSTSEC-2024-0350.html
- https://crates.io/crates/gix-index
- https://github.com/advisories/GHSA-7w47-3wg8-547c
- https://crates.io/crates/gix-worktree
- https://rustsec.org/advisories/RUSTSEC-2024-0349.html
- https://crates.io/crates/gix-fs
- https://security-tracker.debian.org/tracker/CVE-2024-35186
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.