{"id":"CVE-2020-26233","published":"2020-12-08T19:55:15Z","modified":"2024-08-04T15:56:03Z","title":"Remote Code Execution in Git Credential Manager Core","vendor":"Microsoft","product":"Git-Credential-Manager-Core","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.05991,"percentile":0.93489,"provenance":"source"},"cwes":[{"id":"CWE-706","name":"Use of Incorrectly-Resolved Name or Reference"}],"references":[{"url":"https://github.com/microsoft/Git-Credential-Manager-Core/security/advisories/GHSA-2gq7-ww4j-3m76","tags":["x_refsource_CONFIRM"]},{"url":"https://git-scm.com/docs/git-clone#Documentation/git-clone.txt---recurse-submodulesltpathspecgt","tags":["x_refsource_MISC"]},{"url":"https://github.com/microsoft/Git-Credential-Manager-Core/releases/tag/v2.0.289-beta","tags":["x_refsource_MISC"]},{"url":"https://github.com/microsoft/Git-Credential-Manager-Core/commit/61c0388e064babb3b4e60d3ec269e8a07ab3bc76","tags":["x_refsource_MISC"]},{"url":"https://blog.blazeinfosec.com/attack-of-the-clones-2-git-command-client-remote-code-execution-strikes-back/","tags":["x_refsource_MISC"]}],"priority":{"score":23.8,"factors":[{"name":"EPSS percentile","points":18.7},{"name":"CVSS severity","points":5.11}]},"vendorSlug":"microsoft","affectedVersions":[{"vendor":"microsoft","product":"Git-Credential-Manager-Core","versions":["<= 2.0.280"]}],"summary":{"text":"Git Credential Manager Core, Microsoft's Git credential helper built on .NET Core, contains a flaw on Windows before version 2.0.289 in which it runs a git.exe found in the working directory of a repository rather than the one on the system PATH during recursive submodule cloning. An attacker who can get a malicious git.exe into a repository that a user recursively clones with submodules could cause it to execute, but this requires the user to clone that untrusted repository with the --recurse-submodules option, and the issue does not affect macOS or Linux.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:38:49Z"},"euvd":{"id":"EUVD-2020-18843","exploited":false,"provenance":"source"}}