Skip to main content
VulnerabilityPublished Updated

CVE-2024-22190: Cruft · Untrusted search path under some conditions on Windows allows arbitrary code execution

Affects cruftSource GCVE Database

0

Mentioned vulnerabilities

Not known to be exploited · CVSS 7.8 High : upgrade to 2.15.0_6 soon.

Data as of 26 Oct 2026, 17:44 UTC

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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 13 Aug 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: 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 26 Oct 2026.

What to do

Upgrade cruft to 2.15.0_6.

Affected software

ProductAffectedFixed in
Homebrewcruftpkg:brew/cruftOther threatsAffected
  • >=2.9.0 <2.15.0_6
Fixed in
  • 2.15.0_6

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 in Cruft version 2.15.0_6 that addresses this vulnerability. Users and applications should upgrade to this fixed version to mitigate the risk. Until patched, avoid setting Git.USE_SHELL = True or passing shell=True to GitPython methods on Windows. There is no straightforward mitigation for the hook script scenario other than applying the patch. No vendor advisory states that no action is required or that the issue is already mitigated without patching.

Description

CVE-2024-22190 is a vulnerability in the Cruft Python package on Windows where GitPython uses an untrusted search path under certain conditions, allowing arbitrary code execution. This occurs when GitPython runs git commands through a shell or uses bash.exe to interpret hooks, potentially executing malicious git.exe or bash.exe files from the current directory of an untrusted repository. The issue stems from an incomplete fix for CVE-2023-40590 and affects versions from 2.9.0 up to but not including 2.15.0_6. A fix is available in version 2.15.0_6. The vulnerability has a high severity with a CVSS score of 7.8.

References

Community reviews

Loading reviews…