CVE-2023-29012
CVE-2023-29012 — Git CMD erroneously executes `doskey.exe` in the current directory, if it exists
Git for Windows is the Windows port of Git. Prior to version 2.40.1, any user of Git CMD who starts the command in an untrusted directory is impacted by an Uncontrolles Search Path Element vulnerability. Maliciously-placed `doskey.exe` would be executed silently upon running Git CMD. The problem has been patched in Git for Windows v2.40.1. As a workaround, avoid using Git CMD or, if using Git CMD, avoid starting it in an untrusted directory.
Published Updated Sources: cvelistV5, GitHub_M
Triage
Is it exploited, how likely is exploitation, what does it touch, and how severe do the scoring sources call it.
Exploitation
Unreported
no source claims exploitation
EPSS
<1%
chance of exploitation in 30 days
CVSS base
7.3
HIGH
CISA SSVC assessment
Three decision points CISA publishes for the CVEs it assesses · SSVC 2.0.3. A stakeholder decision, not a severity score.
Exploitation
None
none · proof-of-concept · active
Automatable
No
can an attacker script all four kill-chain steps
Technical impact
Total
partial · total control of the vulnerable component
Affected scope
The catalog records vendors and products as separate lists, not pairs, so which product belongs to which vendor is not something this page can say.
Vendors (1)
Products (1)
Every base score collected
Sources score independently and disagree; each row says who scored it and under which version.
| Score | Version | Severity | Expl. | Impact | Source |
|---|---|---|---|---|---|
| 7.3 | CVSS 3.1 | HIGH | n/a | n/a | cvelistV5 |
Weakness & attack patterns
- CWE-427
Attack patterns reported against this CVE. The ATT&CK techniques below are inferred from its weakness class.
- T1574.007Hijack Execution Flow: Path Interception by PATH Environment Variable
- T1574.009Hijack Execution Flow: Path Interception by Unquoted Path
- T1574.001Hijack Execution Flow: DLL search order hijacking
References
2 on the record
- github.com/git-for-windows/git/security/advisories/GHSA-gq5x-v87v-8f7g
x_refsource_CONFIRM
- github.com/git-for-windows/git/releases/tag/v2.40.1.windows.1
x_refsource_MISC
Related CVEs
Same product first, then the same weakness or threat actor.
- CVE-2025-48384 Git allows arbitrary code execution through broken config quotingCVSS 8.0 · CISA KEV
- CVE-2026-111760 Git: Recursive clones are susceptible to Remote Code ExecutionCVSS 8.0
- CVE-2026-100408 Git for Windows: git-credential-wincred Erase Path Heap OverflowCVSS 4.4
- CVE-2026-100407 Git for Windows: git-credential-wincred OAuth Store Heap OverflowCVSS 4.4
- CVE-2020-3433 Cisco AnyConnect Secure Mobility Client for Windows DLL Hijacking VulnerabilityCVSS 7.8 · CISA KEV
- CVE-2026-110936 Siemens Software Center Uncontrolled Search Path Element VulnerabilityCVSS 6.7 · CISA KEV
Elsewhere on this site
- Git For Windowsevery CVE for this vendor
- CWE-427other pages naming this weakness
Not in any source we poll
Listed rather than left blank: an empty field and an unmeasured one look identical on screen, and only one is a reason to look elsewhere.
- No confirmed IOCs, IP addresses, domains, file hashes, or malware artifacts supplied.
- No organization-specific asset inventory, compensating-control status, or patch deployment evidence supplied.
- No exploit packet captures, log samples, or incident case IDs supplied.