Skip to main content
VulnerabilityPublished Updated

CVE-2024-35186: Gix worktree · Traversal outside working tree enables arbitrary code execution

Affects gix-worktreeSource GCVE Database

0
Compare

Not known to be exploited · CVSS 8.8 High : upgrade to 0.34.0 soon.

Data as of 9 Nov 2026, 11:22 UTC

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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 22 May 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-worktree to 0.34.0.

Affected software

ProductAffectedFixed in
crates.iogix-worktreepkg:cargo/gix-worktreeOther threatsAffected
  • >=0.0.0-0 <0.34.0
Fixed in
  • 0.34.0

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

AI-suggested

A patch is available and included in gix-worktree version 0.34.0. Users should upgrade to version 0.34.0 or later to remediate this vulnerability. Until upgraded, avoid cloning untrusted repositories with gix-worktree to prevent exploitation.

Description

CVE-2024-35186 is a vulnerability in gix-worktree where the software does not properly verify that paths during checkout remain inside the working tree. This allows specially crafted repositories to create files outside the intended directory, including in locations where arbitrary code execution can occur, such as .git directories or parent directories. The flaw enables attackers to install malicious hooks or place files that execute with user privileges. The vulnerability affects versions before 0.34.0 and has been fixed in version 0.34.0.

References

Community reviews

Loading reviews…