{"id":"CVE-2022-41953","published":"2023-01-17T21:03:14Z","modified":"2025-03-10T21:22:28Z","title":"Git clone remote code execution vulnerability in git-for-windows","vendor":"git-for-windows","product":"git","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.08038,"percentile":0.94915,"provenance":"source"},"cwes":[{"id":"CWE-426","name":"Untrusted Search Path"}],"references":[{"url":"https://github.com/git-for-windows/git/security/advisories/GHSA-v4px-mx59-w99c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/git-for-windows/git/pull/4219","tags":["x_refsource_MISC"]},{"url":"https://github.com/git-for-windows/git/commit/7360767e8dfc1895a932324079f7d45d7791d39f","tags":["x_refsource_MISC"]},{"url":"https://www.tcl.tk/man/tcl8.6/TclCmd/exec.html#M23","tags":["x_refsource_MISC"]}],"priority":{"score":25.0,"factors":[{"name":"EPSS percentile","points":18.98},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"git-for-windows","affectedVersions":[{"vendor":"git-for-windows","product":"git","versions":["< 2.39.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-03-10T20:58:35.869270Z","from":"CISA ADP","provenance":"source"},"summary":{"text":"The flaw is an untrusted search path in the Git GUI component of Git for Windows, where Git GUI's post-clone step runs an aspell.exe found in the current directory, which a malicious repository can supply. An attacker who gets a user to clone a malicious repository through Git GUI, with the user interacting to perform the clone, can execute arbitrary code on the user's machine without the user being able to inspect it first.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:35:01Z"},"euvd":{"id":"EUVD-2022-45061","exploited":false,"provenance":"source"}}