
Cloud Vulnerability DB
A community-led vulnerabilities database
The vulnerability (RUSTSEC-2024-0349) affects gitoxide, a pure Rust implementation of Git. During checkout operations, the gix-worktree-state component fails to verify that paths point to locations within the working tree. This security flaw was discovered and disclosed in May 2024, affecting multiple components including gitoxide (<0.36.0), gix-fs (<0.11.0), gix-index (<0.33.0), and gix-worktree (<0.34.0). The vulnerability has been assigned CVE-2024-35186 (GitHub Advisory).
The vulnerability stems from insufficient path validation in multiple components. While gix-worktree-state checks for collisions with existing files, it doesn't verify if a path is within the working tree during checkout operations. The vulnerability can be exploited through various methods, including using trees named '..' for upward traversal, '.git' for entering .git directories, or paths containing '/' or '' characters for traversal. The issue is particularly concerning on case-insensitive filesystems and NTFS volumes with specific configurations. The vulnerability has been assigned a CVSS v3.1 score of 8.8 (High), with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H (GitHub Advisory).
The vulnerability enables attackers to place new files anywhere writable by the application when cloning specially crafted repositories. This can lead to arbitrary code execution through various means, such as installing malicious git hooks or placing files in locations where they're likely to be executed. The impact includes complete loss of confidentiality, integrity, and availability. Even without code execution, the ability to create files outside the working tree directly impacts system integrity (GitHub Advisory).
The vulnerability is exploitable when cloning untrusted repositories. Proof of concept exploits have been documented, demonstrating both downward traversal to install hooks and upward traversal to create files above the working tree. The attack requires user interaction (cloning a malicious repository) but no special privileges (GitHub Advisory).
The vulnerability has been patched in multiple components: gitoxide version 0.36.0, gix-fs version 0.11.0, gix-index version 0.33.0, and gix-worktree version 0.34.0. Users are strongly advised to upgrade to these or later versions. For environments where upgrading isn't immediately possible, avoiding the cloning of untrusted repositories is recommended (GitHub Advisory, Debian Tracker).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."