CVE-2022-41953: git-for-windows git Untrusted Search Path
Vulnerability summary
CVE-2022-41953 is a high (CVSS 8.6) Untrusted Search Path vulnerability in git-for-windows git. EPSS estimates a 6.80% chance of exploitation in the next 30 days, higher than 93.9% of scored vulnerabilities.
Timeline
- 17-01-2023PublishedVulnerability first disclosed.
- 10-03-2025Last modifiedVulnerability information updated.
Description
Git GUI is a convenient graphical tool that comes with Git for Windows. Its target audience is users who are uncomfortable with using Git on the command-line. Git GUI has a function to clone repositories. Immediately after the local clone is available, Git GUI will automatically post-process it, among other things running a spell checker called `aspell.exe` if it was found. Git GUI is implemented as a Tcl/Tk script. Due to the unfortunate design of Tcl on Windows, the search path when looking for an executable _always includes the current directory_. Therefore, malicious repositories can ship with an `aspell.exe` in their top-level directory which is executed by Git GUI without giving the user a chance to inspect it first, i.e. running untrusted code. This issue has been addressed in version 2.39.1. Users are advised to upgrade. Users unable to upgrade should avoid using Git GUI for cloning. If that is not a viable option, at least avoid cloning from untrusted sources.
CVSS metrics
2 scores · 2 sources · 1 version- NVDNIST7.8HighCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:HDiffers
EPSS trend
Probability
6.80%
Chance of exploitation in the next 30 days
Percentile
94%
Versus all other CVEs
30-day change
0.00 pp
From 6.80% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
2 vendors · 2 products
References
5 links- github.com/git-for-windows/git/security/advisories/GHSA-v4px-mx59-w99cX Refsource CONFIRMPatchThird Party Advisory
- github.com/git-for-windows/git/commit/7360767e8dfc1895a932324079f7d45d7791d39fX Refsource MISCPatchThird Party Advisory