CVE-2023-29012 Git CMD erroneously executes `doskey.exe` in the current directory, if it exists
HighCVSS 7.8
EPSS 0.38%
- 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 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.
Upgrade path
2 packages: 1 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| git for windows project git for windows | < 2.40.1 | 2.40.1 | Fixed |
| git-for-windows git | = < 2.40.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| git-for-windows git | = < 2.40.1 | No fix listed |
| git for windows project git for windows | < 2.40.1 | 2.40.1 |