---
title: "CVE-2022-31012: git-for-windows git Vulnerability"
publisher: SpecStream
source: "CVE Program (CVEProject cvelistV5)"
source_url: "https://github.com/CVEProject/cvelistV5"
---

# CVE-2022-31012: git-for-windows git Vulnerability

SpecStream dataset, built from [CVE Program (CVEProject cvelistV5)](https://github.com/CVEProject/cvelistV5), updated December 6, 2026.

CVE-2022-31012 is a published software vulnerability affecting git-for-windows git. CVSS base score: 8.2 (HIGH). Published July 12, 2022 by GitHub\_M. 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.

[CVE Vulnerabilities](/data/cve)

SpecStream is the live web data engine for teams and agents.

- CVE ID: CVE-2022-31012
- Status: Published
- Affected vendor: git-for-windows
- Affected product: git
- Assigner CNA: GitHub\_M
- Published date: July 12, 2022
- Last updated: April 23, 2025
- CVSS base score: 8.2 (HIGH)
- CVSS vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:C/C:H/I:H/A:H
- Weakness (CWE): CWE-426: Untrusted Search Path

## Vulnerability data and live monitoring

Query CVE feeds, affected software packages and severity updates through the SpecStream API or export structured CSV files.

- [https://specstream.ai/data/cve](https://specstream.ai/data/cve)
- [https://specstream.ai/signup?src=cve-vulnerabilities](https://specstream.ai/signup?src=cve-vulnerabilities)

CVE Terms of Use (Public Vulnerability Records).

## Access via API, MCP, or CSV

Query live web and register data via the SpecStream Search API ($1 per 1,000 fast searches), Extract API ($0.80 per 1,000 Markdown pages), or MCP server (`npx -y @specstream/mcp-server`). Start with [$2 free API credit (no card)](https://specstream.ai/signup) or unlock 5,000 CSV rows/mo plus $49 API credit with the [Monthly Pro Pass ($49/mo)](https://specstream.ai/v1/billing/credit-plans/checkout?plan=starter).

Free to quote with credit and a link. Copying in bulk needs a [data licence](https://specstream.ai/data/licence).

## Business lists in the United States

- [Prosthetics providers in the United States](https://specstream.ai/data/businesses/prosthetics-providers/united-states)
- [Bathroom remodelers in the United States](https://specstream.ai/data/businesses/bathroom-remodelers/united-states)
- [Home staging companies in the United States](https://specstream.ai/data/businesses/home-staging-companies/united-states)
- [Software development companies in the United States](https://specstream.ai/data/businesses/software-development-companies/united-states)
- [Chemical plants in the United States](https://specstream.ai/data/businesses/chemical-plants/united-states)
- [Law firms in the United States](https://specstream.ai/data/businesses/law-firms/united-states)
