CVE-2020-26233

Remote Code Execution in Git Credential Manager Core

7.3 high EPSS 5.99%

Published 8 Dec 2020 Updated 4 Aug 2024 CNA: GitHub_M

Description

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.

Severity (CVSS)

7.3 high CVSS 3.1 from GitHub_M (CNA)
CVSS:3.1/AV:N/AC:H/PR:H/UI:R/S:C/C:H/I:H/A:N
Attack vector
network: an attacker can reach the vulnerable part over the network, often from the internet
Attack complexity
high: an attack depends on conditions outside the control of the attacker, such as a race
Privileges required
high: the attacker needs an administrative account
User interaction
required: a user has to do something, such as open a link or a file
Scope
changed: the damage reaches other components, such as the host of a container or other users
Impact
confidentiality high, integrity high, availability none: what an attacker can read (confidentiality), change (integrity) or stop (availability)

Exploitation

EPSS 5.99%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 93.4% of all scored CVEs. Scores of 1 Dec 2026.

Weakness

  • CWE-706 Use of Incorrectly-Resolved Name or Reference

Affected products

As the CNA lists them.

ProductVersions
Git-Credential-Manager-Core
affected <= 2.0.280

Is my server affected?

This CVE is in Git-Credential-Manager-Core of microsoft, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.

Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.

References

Advisories

Other references

Source: the record CVE-2020-26233 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.