PT-2022-3619 · Unknown · Git For Windows
俞晨东
·
Published
2022-07-12
·
Updated
2024-04-11
·
CVE-2022-31012
CVSS v3.1
8.2
High
| Vector | AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H |
Name of the Vulnerable Software and Affected Versions
Git for Windows versions prior to 2.37.1
Description
The issue is related to the Git for Windows installer executing a binary into
C:mingw64bingit.exe by mistake, which occurs only during a fresh install, not when upgrading. This is due to an unreliable path search. The exploitation of this issue may allow an attacker to execute arbitrary code. A patch is included in version 2.37.1.Recommendations
For versions prior to 2.37.1, update to version 2.37.1 to resolve the issue.
As a temporary workaround, create the
C:mingw64 folder and remove read/write access from this folder.
Alternatively, disallow arbitrary authenticated users to create folders in C: to minimize the risk of exploitation.Exploit
Fix
Untrusted Search Path
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Git For Windows