{"id":"CVE-2022-31012","published":"2022-07-12T20:35:15Z","modified":"2025-04-23T18:02:50Z","title":"Git for Windows' installer can be tricked into executing an untrusted binary","vendor":"git-for-windows","product":"git","tier":"tail","description":{"text":"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:\\`.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.2,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00403,"percentile":0.35486,"provenance":"source"},"cwes":[{"id":"CWE-426","name":"Untrusted Search Path"}],"references":[{"url":"https://github.com/git-for-windows/git/security/advisories/GHSA-gjrj-fxvp-hjj2","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/git-for-windows/git/releases/tag/v2.37.1.windows.1","tags":["x_refsource_MISC"]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":7.1},{"name":"CVSS severity","points":5.74}]},"vendorSlug":"git-for-windows","affectedVersions":[{"vendor":"git-for-windows","product":"git","versions":["< 2.37.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2025-04-23T15:51:38.294146Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2022-52715","exploited":false,"provenance":"source"}}