gitk can inadvertently call executables in the worktree
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.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-23618
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 4 Nov 2026, 16:25 UTC · Revision 1
Source evidence
gitk can inadvertently call executables in the worktree
core-osv · Original sourcePublished 14 Feb 2023, 20:38 UTC
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.
osv:CVE-2023-23618
Complete source record
{
"id": "8ea73ab3536cf43b5efbaf57cb28367ab31f641a782585771dc23cc252564ce8",
"url": "https://osv.dev/vulnerability/CVE-2023-23618",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "gitk can inadvertently call executables in the worktree",
"summary": "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.",
"evidence": "osv:CVE-2023-23618",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2023-23618",
"aliases": [
"CVE-2023-23618",
"GHSA-wxwv-49qw-35pm"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/git-for-windows/git",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "a82fa99b36ddfd643e61ed45e52abe314687df67"
},
{
"fixed": "49a8ec9dac3cec6602f05fed1b3f80a549c8c05c"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:git_for_windows_project:git_for_windows:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "0"
},
{
"fixed": "2.39.2"
}
],
"source": "CPE_RANGE"
},
{
"range": [
{
"fixed": "49a8ec9dac3cec6602f05fed1b3f80a549c8c05c"
}
],
"source": "REFERENCES_COMMIT"
},
{
"range": [
{
"fixed": "a82fa99b36ddfd643e61ed45e52abe314687df67"
}
],
"source": "REFERENCES_TAG",
"original_tag": "v2.39.2.windows.1"
}
]
}
}
],
"versions": [
"v2.30.0-rc2",
"v2.27.0-rc1",
"v2.21.0",
"v2.22.0-rc0",
"v2.15.0",
"v2.17.0",
"v2.18.0",
"v2.19.0",
"v2.19.0-rc2",
"v2.19.0-rc1",
"v2.19.0-rc0",
"v2.18.0-rc2",
"v2.18.0-rc1",
"v2.18.0-rc0",
"v2.17.0-rc2",
"v2.17.0-rc1",
"v2.17.0-rc0",
"v2.16.0-rc0",
"v2.16.0",
"v2.16.0-rc1",
"v2.16.0-rc2",
"v2.15.0-rc2",
"v2.15.0-rc1",
"v2.15.0-rc0",
"v2.14.0",
"v2.14.0-rc1",
"v2.11.0",
"v2.12.0",
"v2.13.0",
"v2.14.0-rc0",
"v2.13.0-rc2",
"v2.13.0-rc1",
"v2.13.0-rc0",
"v2.10.0",
"v2.12.0-rc2",
"v2.12.0-rc1",
"v2.12.0-rc0",
"v2.11.0-rc3",
"v2.9.0",
"v2.11.0-rc2",
"v2.11.0-rc1",
"v2.11.0-rc0",
"v2.10.0-rc2",
"v2.10.0-rc1",
"v2.10.0-rc0",
"v2.7.0",
"v2.9.0-rc2",
"v2.8.0",
"v2.9.0-rc1",
"v2.9.0-rc0",
"v2.8.0-rc4",
"v2.8.0-rc1",
"v2.8.0-rc3",
"v2.8.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",
"v0.99.9a",
"v0.99.8g",
"v0.99.8f",
"v0.99.8e",
"v0.99.8d",
"v0.99.8c",
"v0.99.8b",
"v0.99.8a",
"v0.99.8",
"v0.99.7",
"v0.99.6",
"v0.99.5",
"v0.99.4",
"v0.99.3",
"v0.99.2",
"v0.99.1",
"v0.99"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-23618.json"
}
}
],
"modified": "2026-10-28T02:30:37.652088002Z",
"provider": "osv",
"references": [
"https://github.com/git-for-windows/git/releases/tag/v2.39.2.windows.1",
"https://wiki.tcl-lang.org/page/exec",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/23xxx/CVE-2023-23618.json",
"https://github.com/git-for-windows/git/security/advisories/GHSA-wxwv-49qw-35pm",
"https://nvd.nist.gov/vuln/detail/CVE-2023-23618",
"https://github.com/git-for-windows/git/commit/49a8ec9dac3cec6602f05fed1b3f80a549c8c05c"
],
"provider_metadata": {
"cwe_ids": [
"CWE-426"
],
"cna_assigner": "GitHub_M",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/23xxx/CVE-2023-23618.json"
}
},
"related_cves": [
{
"value": "CVE-2023-23618",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 504657,
"published_at": "2023-02-14T20:38:04.921+00:00"
}