7.8

CVE-2021-21237: Git LFS can execute a Git binary from the current directory on Windows

Modified
AliasesUBUNTU-CVE-2021-21237GHSA-cx3w-xqmc-84g5BIT-git-lfs-2021-21237
Published 15-01-2021Last modified 03-08-2024

Vulnerability summary

CVE-2021-21237 is a high (CVSS 7.8) Untrusted Search Path vulnerability in git_large_file_storage_project git_large_file_storage. EPSS estimates a 0.45% chance of exploitation in the next 30 days, higher than 41% of scored vulnerabilities.

Priority
Routine

Not severe (CVSS 7.2, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
7.8/10
010
High · v3.1 (NVD)
EPSS score
0.45%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits0No public exploits recorded

Timeline

  1. 15-01-2021
    PublishedVulnerability first disclosed.
  2. 03-08-2024
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 4 sources · 2 versions

EPSS trend

Probability

0.45%

Chance of exploitation in the next 30 days

Percentile

41%

Versus all other CVEs

30-day change

No change 0.00 pp

From 0.45% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, low-privilege account, user interaction (CVSS vector). Other conditions: not stated in public data.

Git_large_file_storage_project1 product
Git-lfs1 product
Github.com/git-lfs1 product
  • git-lfs< 2.13.2 | < 1.5.1-0.20210113180018-fc664697ed2c
Ubuntu1 product
  • git-lfsAll versions (No fix recorded)

4 vendors · 4 products

References

9 links