# CVE-2023-23618: gitk can inadvertently call executables in the worktree

- 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): 0.39%, higher than 34% of CVEs (2026-12-01)
- Published: 2023-02-14T20:38:04.921Z
- Modified: 2026-06-17T05:37:35.787Z
- Weaknesses: CWE-426
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Git for Windows is the Windows port of the revision control system Git. Prior to Git for Windows version 2.39.2, when `gitk` is run on Windows, it potentially runs executables from the current directory inadvertently, which can be exploited with some social engineering to trick users into running untrusted code. A patch is available in version 2.39.2. As a workaround, avoid using `gitk` (or Git GUI's "Visualize History" functionality) in clones of untrusted repositories.

(As written by CVE List.)

## Affected

- git-for-windows git: < 2.39.2
- git_for_windows_project git_for_windows: before 2.39.2

## 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-wxwv-49qw-35pm> (vendor-advisory)
- <https://github.com/git-for-windows/git/commit/49a8ec9dac3cec6602f05fed1b3f80a549c8c05c> (patch)
- <https://github.com/git-for-windows/git/releases/tag/v2.39.2.windows.1> (release-notes)
- <https://wiki.tcl-lang.org/page/exec> (not-applicable)

## Sources

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

---

Page: https://cve.day/CVE-2023-23618 · Whole record: https://cve.day/CVE-2023-23618.json · Rebuilt by cve.day 2026-11-25T22:58:22.024Z
