CVE-2023-29012
published high CVSS 3.1 · 7.3Git CMD erroneously executes `doskey.exe` in the current directory, if it exists
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| git-for-windows | — | git< 2.40.1 | Affected | Not stated | GitHub_M |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.3 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| git-for-windows | git | < 2.40.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-427 CWE-427: Uncontrolled Search Path Element
References
2Provider assertions
3GitHub_M · cna
Git CMD erroneously executes `doskey.exe` in the current directory, if it exists
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- a2203832880d3480ddf5df6b23fe31ef1b426aca200cda843620d2264dd76b28
- Ingested
- 23 Sep 2026, 08:07:56 UTC
- Source record
- Official CVE record