Vulnerability DatabaseRUSTSEC-2024-0355

RUSTSEC-2024-0355
Rust vulnerability analysis and mitigation

Overview

The vulnerability (RUSTSEC-2024-0355) affects the gix-path Rust package version 0.10.8, discovered and disclosed in July 2024. The issue allows a limited user account to trick the package into running an arbitrary git.exe from an untrusted location when looking for Git for Windows installations (GitHub Advisory).

Technical details

The vulnerability stems from gix-path's fallback strategy on Windows systems, where it checks two hard-coded paths intended for 64-bit and 32-bit Program Files directories. On 32-bit Windows systems, where C:\Program Files (x86) directory doesn't exist by default, a limited user can create this directory and populate it with arbitrary contents. The vulnerability has been assigned a CVSS score of 6.8 (Moderate) with a vector string of CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L (GitHub Advisory).

Impact

The vulnerability enables privilege escalation where a limited user can execute code as another user, including administrators. This is particularly impactful when Git for Windows is installed but not added to PATH, or when programs sanitize their PATH to remove seemingly nonessential directories. The vulnerability is comparable to CVE-2022-24765 but with simpler exploitation as it directly runs an executable rather than using configuration (GitHub Advisory).

Exploitability

Exploitation is primarily possible on 32-bit Windows systems and requires the attacker to have a user account on the system, though it can be a relatively unprivileged one. The vulnerability is exploitable when git cannot be found in a PATH search, particularly in configurations where Git for Windows is installed but not added to PATH. Running a 32-bit build on a 64-bit system is not a risk factor (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in version 0.10.9 and later versions of gix-path. Users should upgrade to the patched version. As a workaround, ensuring that git is present in the system's PATH search can prevent exploitation (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

GHSA-5x78-73v4-xg6wHIGH8.7
  • Rust logoRust
  • postgres-protocol
NoYesAug 24, 2026
GHSA-fx4f-mhw4-qm7jMEDIUM6.9
  • Rust logoRust
  • vibeio-http
NoYesAug 24, 2026
GHSA-3gjw-f78c-vvpwMEDIUM6.9
  • Rust logoRust
  • tokio-postgres
NoYesAug 24, 2026
GHSA-rgqc-3x5p-6gwgMEDIUM6.9
  • Rust logoRust
  • postgres-protocol
NoYesAug 24, 2026
RUSTSEC-2026-0267NONEN/A
  • Rust logoRust
  • stable-vec
NoYesAug 24, 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