{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-31012","published":"2022-07-12T21:15:09.843000Z","last_modified":"2026-06-17T04:44:36.170000Z","status":"Modified","cvss":{"version":"3.1","score":7.3,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-426"],"cpes":[{"criteria":"cpe:2.3:a:gitforwindows:git:*:*:*:*:*:windows:*:*","part":"a","vendor":"gitforwindows","product":"git","version_end_excluding":"2.37.1"}],"cpes_truncated":false,"vendors":["gitforwindows"],"products":["gitforwindows/git"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"total"},"epss":{"score":0.00428,"percentile":0.28826,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[],"severity":"high","priority_score":44,"links":{"html_es":"/es/cve/CVE-2022-31012/","html_en":"/en/cve/CVE-2022-31012/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-31012","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-31012"},"untrusted":{"vendor_name":"Gitforwindows","product_name":"Git","desc_en":"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:\\`.","affected":[{"untrusted_vendor":"git-for-windows","untrusted_product":"git","versions":[]}],"references":[{"url":"https://github.com/git-for-windows/git/releases/tag/v2.37.1.windows.1","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/git-for-windows/git/security/advisories/GHSA-gjrj-fxvp-hjj2","tags":["Mitigation","Third Party Advisory"]}]}}