CVE-2023-23618 gitk can inadvertently call executables in the worktree
HighCVSS 7.8
EPSS 0.39%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| git for windows project git for windows | < 2.39.2 | 2.39.2 | Fixed |
| git-for-windows git | = < 2.39.2 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| git-for-windows git | = < 2.39.2 | No fix listed |
| git for windows project git for windows | < 2.39.2 | 2.39.2 |
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