Vulnerability DatabaseRUSTSEC-2024-0349

RUSTSEC-2024-0349: 
Rust vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Exploitability

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).

Mitigation and workarounds

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).

Additional resources


Source: This report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

RUSTSEC-2026-0335CRITICAL9.1
  • Rust logoRust
  • mykey
NoYesOct 09, 2026
GHSA-6w6g-hm98-mhgmHIGH8.7
  • Rust logoRust
  • hickory-resolver
NoYesOct 05, 2026
RUSTSEC-2026-0336HIGH7.5
  • Rust logoRust
  • mykey
NoYesOct 09, 2026
GHSA-6f2x-v7q7-m7m5MEDIUM6.9
  • Rust logoRust
  • hickory-resolver
NoYesOct 05, 2026
RUSTSEC-2026-0333NONEN/A
  • Rust logoRust
  • noyalib
NoYesOct 06, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management