CVE-2022-31012
mediumpriority · track · 29EPSS 0.004 · 33 %ileDEEURUUSEPSS · scored 2026-10-27
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:\`.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode⚠ sources disagree · medium–high · 4.4–8.2
ssvc
A stakeholder decision — act, attend, or track — from exploitation and impact.
weaknesses
The CWE weakness classes this flaw belongs to.
affected products (11)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- WID-SEC-W-2022-0664git: Mehrere SchwachstellenDeutsch2022-07-12csaf · cert_bundDE
Ein entfernter, anonymer oder lokaler Angreifer kann mehrere Schwachstellen in git ausnutzen, um Sicherheitsvorkehrungen zu umgehen und beliebigen Code auszuführen.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (7)
External citations — patches, advisories, analysis.
- https://cxsecurity.com/cveshow/CVE-2022-31012/cnnvd
- https://github.com/git-for-windows/git/releases/tag/v2.37.1.windows.1cnnvd
- https://github.com/git-for-windows/git/security/advisories/GHSA-gjrj-fxvp-hjj2cnnvd
- https://github.com/git-for-windows/git/releases/tag/v2.37.1.windows.1enisa_euvd
- https://github.com/git-for-windows/git/security/advisories/GHSA-gjrj-fxvp-hjj2enisa_euvd
- https://github.com/git-for-windows/git/releases/tag/v2.37.1.windows.1Release NotesThird Party Advisorynvd
- https://github.com/git-for-windows/git/security/advisories/GHSA-gjrj-fxvp-hjj2MitigationThird Party Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan