Untrusted Search Path Affecting git-for-windows/git package, versions [,2.37.1)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (8th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-GITFORWINDOWSGIT-2948991
  • published13 Jul 2022
  • disclosed13 Jul 2022
  • credit俞晨东, Lockheed Martin Red Team

Introduced: 13 Jul 2022

CVE-2022-31012  (opens in a new tab)
CWE-426  (opens in a new tab)

How to fix?

Upgrade git-for-windows/git to version 2.37.1 or higher.

Overview

Affected versions of this package are vulnerable to Untrusted Search Path. Exploiting This vulnerability lets the Git for Windows installer execute a binary into C:\mingw64\bin\git.exe.

References

CVSS Base Scores

version 3.1