CVE-2023-29012 - CVE House
Back to Database
Status published High CVE-2023-29012

Git CMD erroneously executes `doskey.exe` in the current directory, if it exists

Vulnerability 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.

Impact Analysis

Refer to official advisory for detailed impact metrics.

Remediation

Ensure systems are updated to the latest vendor-supplied patch levels.

THREAT MONITOR

Am I Vulnerable?

Launch our assessment wizard to check if your infrastructure is exposed to • CVE-2023-29012

Credits & Attribution

No credits recorded in the NVD database.

Affected Vendor

git-for-windows

View all reports →

Affected Software

git
Vulnerable Versions:
< 2.40.1

Timeline

Official Publish: April 25th, 2023
Last Modified: February 3rd, 2025
Added to House: July 22nd, 2026

CVSS Vectors

V3: CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:H

Weaknesses (CWE)