CVE-2023-29012: Git for Windows is the Windows port of Git
CVE-2023-29012 is a high-severity flaw (CVSS 7.2) affecting git for windows. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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.
Why this priority
- High severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.2 (High) |
| Attack vector | Local |
| Attack complexity | High |
| Privileges needed | High |
| User interaction | Required |
| EPSS exploit chance | 0.4% (top 68%) |
| CISA exploited list | No |
| Weakness | CWE-427 |
| Published | 2023-04-25 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2023-29012?
git for windows: upgrade to 2.40.1. Exact commands for each OS are on this page.
Is CVE-2023-29012 being exploited?
CVE-2023-29012 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2023-29012 affect?
CVE-2023-29012 affects git for windows. Severity is high (CVSS 7.2). 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` woul
How urgent is CVE-2023-29012?
Priority 33/100. High severity
Software pages
Windows vulnerabilities · Git vulnerabilities
Related CVEs
- CVE-2023-29011 HIGH 7.5 UPGRADE Git for Windows, the Windows port of Git, ships with an executable called `connect.exe`, which implements a SO
- CVE-2023-25815 LOW 3.3 UPGRADE MITIGATE In Git for Windows, the Windows port of Git, no localized messages are shipped with the installer
- CVE-2023-23618 HIGH 8.6 UPGRADE Git for Windows is the Windows port of the revision control system Git
- CVE-2023-22743 HIGH 7.2 UPGRADE Git for Windows is the Windows port of the revision control system Git