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:\`.
Conclusion & alert: CVE-2022-31012 is rated Moderate Risk (43.2/100): CVSS High severity, with low exploitation likelihood (EPSS 0.37%). Mandatory action: Review affected assets and schedule remediation.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2026-06-15 | 0.06% | 0.37% | +0.31% |
| 2 | 2025-11-10 | 0.17% | 0.06% | -0.11% |
| 3 | 2025-08-10 | — | 0.17% | — |
Full EPSS history (8 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.2 | 3.1 | HIGH |
|
1.5 | 6.0 | [email protected] |
| 7.3 | 3.1 | HIGH |
|
1.3 | 5.9 | [email protected] |
| 4.4 | 2.0 | MEDIUM |
|
3.4 | 6.4 | [email protected] |
| vendor | priority | summary | link |
|---|---|---|---|
alpine
|
high | CVE-2022-31012: 1 source package rows (git); 41 state rows across 5 repos (3.19-main, 3.20-main, 3.21-main, 3.22-main, edge-main); fixed 0, open 41. | https://security.alpinelinux.org/vuln/CVE-2022-31012 |
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| gitforwindows | git | < 2.37.1 | cpe:2.3:a:gitforwindows:git:*:*:*:*:*:windows:*:* |
| URL | Tags |
|---|---|
| https://github.com/git-for-windows/git/releases/tag/v2.37.1.windows.1 | Release Notes Third Party Advisory |
| https://github.com/git-for-windows/git/security/advisories/GHSA-gjrj-fxvp-hjj2 | Mitigation Third Party Advisory |