Skip to main content
VulnerabilityPublished Updated

CVE-2024-40644: gix-path can use a fake program files location

Affects gix-pathSource GCVE Database

0
Compare

Not known to be exploited · CVSS 6.8 Medium : upgrade to 0.10.9 when convenient.

Data as of 9 Nov 2026, 11:23 UTC

CVSS 3.1 base score
6.8Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 11% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
Patch
Available – fixed in 0.10.9
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Jul 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 8 Nov 2026.

What to do

Upgrade gix-path to 0.10.9.

Affected software

ProductAffectedFixed in
crates.iogix-pathpkg:cargo/gix-pathOther threatsAffected
  • >=0.10.8 <0.10.9
Fixed in
  • 0.10.9

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

A fixed version of gix-path is available in version 0.10.9. Users and developers should upgrade to gix-path 0.10.9 or later to remediate this vulnerability. Additionally, ensuring that git.exe is present in the PATH environment variable for all users prevents fallback to the vulnerable hard-coded paths and mitigates exploitation. No other specific mitigations are indicated by the vendor advisory.

Description

The gix-path crate version 0.10.8 on Windows can be tricked into executing a malicious git.exe placed in a fake Program Files directory by a limited user. This occurs because gix-path checks two hard-coded fallback paths for git.exe, including C:\Program Files (x86)\Git\mingw32\bin, which a limited user can create on 32-bit Windows systems. If the real git.exe is not found in the PATH, other users running applications using gix-path may execute the malicious git.exe, leading to potential privilege escalation. This vulnerability is fixed in version 0.10.9.

References

Community reviews

Loading reviews…