SB2022071274 - Untrusted search path in Git for Windows installer



SB2022071274 - Untrusted search path in Git for Windows installer

Published: July 12, 2022 Updated: April 20, 2026

Security Bulletin ID SB2022071274
CSH Severity
Low
Patch available
YES
Number of vulnerabilities 1
Exploitation vector Local access
Highest impact Code execution

Breakdown by Severity

Low 100%
  • Low
  • Medium
  • High
  • Critical

Description

This security bulletin contains information about 1 vulnerability.


1) Untrusted search path (CVE-ID: CVE-2022-31012)

CWE-ID: CWE-426 - Untrusted Search Path

CVSSv4: CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear


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.


Remediation

Install update from vendor's website.