Vulnerability in Microsoft Git-Credential-Manager-Core
CVE-2020-26233
Git Credential Manager Core (GCM Core) is a secure Git credential helper built on .NET Core that runs on Windows and macOS. In Git Credential Manager Core before version 2.0.289, when recursively cloning a Git repository on Windows with submodules, Git will first clone the top-level repository and then recursively clone all submodules by starting new Git processes from the top-level working directory. If a malicious git.exe executable is present in the top-level repository then this binary will be started by Git Credential Manager Core when attempting to read configuration, and not git.exe as found on the %PATH%. This only affects GCM Core on Windows, not macOS or Linux-based distributions. GCM Core version 2.0.289 contains the fix for this vulnerability, and is available from the project's GitHub releases page. GCM Core 2.0.289 is also bundled in the latest Git for Windows release; version 2.29.2(3). As a workaround, users should avoid recursively cloning untrusted repositories with the --recurse-submodules option.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.3 (High). Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N.
EPSS exploit prediction
EPSS 0.060, 93.4th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Microsoft Git-Credential-Manager-Core — versions <= 2.0.280
- Microsoft Git Credential Manager Core
Weakness classification (CWE)
Public exploits and proof-of-concept code
2 public repositories with exploit or proof-of-concept code for this CVE:
- an1p3lg5/CVE-2020-26233 (last pushed 2022-10-28)
- whr819987540/test_CVE-2020-26233 (last pushed 2022-05-24)
Also mentioned in 8 other repositories (9069332997/session-1-full-stack, abdulrahmanasdfghj/brubru, BahrainMobilityInternational/BMI-02, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/microsoft/Git-Credential-Manager-Core/security/advisories/GHSA-2gq7-… (Third Party Advisory)
- git-scm.com/docs/git-clone (Third Party Advisory)
- github.com/microsoft/Git-Credential-Manager-Core/releases/tag/v2.0.289-beta (Third Party Advisory, Release Notes)
- github.com/microsoft/Git-Credential-Manager-Core/commit/61c0388e064babb3b4e60d3… (Patch, Third Party Advisory)
- blog.blazeinfosec.com/attack-of-the-clones-2-git-command-client-remote-code-exe… (Exploit, Third Party Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.