Vulnerability in Git-For-Windows Git
CVE-2022-31012
Git for Windows is a fork of Git that contains Windows-specific patches. This vulnerability in versions prior to 2.37.1 lets Git for Windows' installer execute a binary into `C:\mingw64\bin\git.exe` by mistake. This only happens upon a fresh install, not when upgrading Git for Windows. A patch is included in version 2.37.1. Two workarounds are available. Create the `C:\mingw64` folder and remove read/write access from this folder, or disallow arbitrary authenticated users to create folders in `C:\`.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.2 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.004 (32.4th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 32nd percentile — 32.4% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000
Affected products
- Git-For-Windows Git — versions < 2.37.1
- Gitforwindows Git
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/git-for-windows/git/security/advisories/GHSA-gjrj-fxvp-hjj2 (Third Party Advisory, Mitigation)
- github.com/git-for-windows/git/releases/tag/v2.37.1.windows.1 (Third Party Advisory, Release Notes)
Frequently asked questions
- What is CVE-2022-31012?
- CVE-2022-31012 is a high-severity vulnerability in Git-For-Windows Git, classified under Untrusted Search Path. CVSS score: 8.2/10. Published 2022-07-12.
- How severe is CVE-2022-31012?
- High severity. CVSS v3 base score is 8.2 out of 10.
- Is CVE-2022-31012 known to be exploited?
- 8 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.