CVE-2021-21237
Git LFS Windows Code Execution Vulnerability
Description
Git LFS is a command line extension for managing large files with Git. On Windows, if Git LFS operates on a malicious repository with a git.bat or git.exe file in the current directory, that program would be executed, permitting the attacker to execute arbitrary code. This does not affect Unix systems. This is the result of an incomplete fix for CVE-2020-27955. This issue occurs because on Windows, Go includes (and prefers) the current directory when the name of a command run does not contain a directory separator. Other than avoiding untrusted repositories or using a different operating system, there is no workaround. This is fixed in v2.13.2.
INFO
Published Date :
Jan. 15, 2021, 6:15 p.m.
Last Modified :
Nov. 21, 2024, 5:47 a.m.
Remotely Exploit :
No
Source :
[email protected]
Affected Products
The following products are affected by CVE-2021-21237
vulnerability.
Even if cvefeed.io
is aware of the exact versions of the
products
that
are
affected, the information is not represented in the table below.
CVSS Scores
Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
---|---|---|---|---|---|---|
CVSS 2.0 | MEDIUM | [email protected] | ||||
CVSS 3.1 | HIGH | [email protected] | ||||
CVSS 3.1 | HIGH | [email protected] |
Public PoC/Exploit Available at Github
CVE-2021-21237 has a 5 public
PoC/Exploit
available at Github.
Go to the Public Exploits
tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2021-21237
.
URL | Resource |
---|---|
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955 | Third Party Advisory |
https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a | Patch Third Party Advisory |
https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2 | Third Party Advisory |
https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5 | Third Party Advisory |
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955 | Third Party Advisory |
https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a | Patch Third Party Advisory |
https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2 | Third Party Advisory |
https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5 | Third Party Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2021-21237
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2021-21237
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
None
HTML
None
HTML
None
HTML CSS
zomotoa food app
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2021-21237
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2021-21237
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 21, 2024
Action Type Old Value New Value Added Reference https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955 Added Reference https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a Added Reference https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2 Added Reference https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5 -
CVE Modified by [email protected]
May. 14, 2024
Action Type Old Value New Value -
Initial Analysis by [email protected]
Jan. 29, 2021
Action Type Old Value New Value Added CVSS V2 NIST (AV:L/AC:L/Au:N/C:P/I:P/A:P) Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Changed Reference Type https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955 No Types Assigned https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955 Third Party Advisory Changed Reference Type https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a No Types Assigned https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a Patch, Third Party Advisory Changed Reference Type https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2 No Types Assigned https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2 Third Party Advisory Changed Reference Type https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5 No Types Assigned https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5 Third Party Advisory Added CPE Configuration OR *cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:*:*:*:*:*:*:*:* versions up to (excluding) 2.13.2
Vulnerability Scoring Details
Base CVSS Score: 7.8
Base CVSS Score: 4.6
Exploit Prediction
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days.
0.20 }} -0.14%
score
0.38849
percentile