CVE-2021-21237

CVE-2021-21237 is a high-severity vulnerability in Git Large File Storage Project Git Large File Storage with a CVSS 3.x base score of 7.2. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-426.

Key facts

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.

Frequently asked questions

What is CVE-2021-21237?
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.
How severe is CVE-2021-21237?
CVE-2021-21237 has a CVSS 3.x base score of 7.2, rated high severity. It is exploitable over local access with high attack complexity, requires low privileges and user interaction. Impact on confidentiality is high, integrity high, and availability none.
Is CVE-2021-21237 being actively exploited?
It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 0% (35th percentile), an estimate of the probability of exploitation in the next 30 days.
What products are affected by CVE-2021-21237?
CVE-2021-21237 affects Git Large File Storage Project Git Large File Storage. See the affected-products list for the exact vulnerable versions.
How do I fix CVE-2021-21237?
Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
When was CVE-2021-21237 published?
CVE-2021-21237 was published on 2021-01-15 and last updated on 2026-06-17.

References

Affected products (1)

More vulnerabilities in Git Large File Storage Project Git Large File Storage

All CVEs affecting Git Large File Storage Project Git Large File Storage →

Other CWE-426 (Untrusted Search Path) vulnerabilities

Browse all CWE-426 (Untrusted Search Path) vulnerabilities →