# CVE-2022-41953: Git clone remote code execution vulnerability in git-for-windows

- Severity: High 8.6 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 8.04%, higher than 94% of CVEs (2026-12-01)
- Published: 2023-01-17T21:03:14.721Z
- Modified: 2026-06-17T05:04:07.690Z
- Weaknesses: CWE-426
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- git-for-windows git: < 2.39.1
- git-scm git: before 2.39.1

## Every score

- GitHub_M: CVSS:3.1 8.6 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`

## References

- <https://github.com/git-for-windows/git/security/advisories/GHSA-v4px-mx59-w99c> (patch, third-party-advisory)
- <https://github.com/git-for-windows/git/pull/4219> (patch, third-party-advisory)
- <https://github.com/git-for-windows/git/commit/7360767e8dfc1895a932324079f7d45d7791d39f> (patch, third-party-advisory)
- <https://www.tcl.tk/man/tcl8.6/TclCmd/exec.html#M23> (third-party-advisory)

## Sources

- CVE List: [CVE-2022-41953](https://www.cve.org/CVERecord?id=CVE-2022-41953), CVE Terms of Use, modified 2025-03-10
- NVD: [CVE-2022-41953](https://nvd.nist.gov/vuln/detail/CVE-2022-41953), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-41953 · Whole record: https://cve.day/CVE-2022-41953.json · Rebuilt by cve.day 2026-11-25T22:58:18.233Z
