Untrusted search path in Git for Windows - CVE-2022-31012
Published: July 12, 2022 / Updated: April 20, 2026
Git for Windows
Git for Windows
Description
The vulnerability allows a local user to execute arbitrary code.
The vulnerability exists due to untrusted search path in the installer when performing a fresh installation. A local user can place a malicious binary at C:\mingw64\bin\git.exe to execute arbitrary code.
User interaction is required to run the installer, and the issue occurs only during a fresh install, not during an upgrade.