Vulnerabilities · 2020 · Microsoft
CVE-2020-26233
Microsoft Git Credential Manager Core vulnerability
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.
Affected products
Git Credential Manager Core. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Microsoft Git Credential Manager Core runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- github.com/microsoft/Git-Credential-Manager-Core/commit/61c0388e064babb3b4e60d3ec269e8a07a · Patch
- blog.blazeinfosec.com/attack-of-the-clones-2-git-command-client-remote-code-execution-stri · Exploit
- git-scm.com/docs/git-clone#Documentation/git-clone.txt---recurse-submodulesltpathspecgt · Third Party Advisory
- github.com/microsoft/Git-Credential-Manager-Core/releases/tag/v2.0.289-beta · Third Party Advisory
- github.com/microsoft/Git-Credential-Manager-Core/security/advisories/GHSA-2gq7-ww4j-3m76 · Third Party Advisory
- nvd.nist.gov/vuln/detail/CVE-2020-26233
- cve.org/CVERecord?id=CVE-2020-26233
More vulnerabilities in Microsoft products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.