← Vulnerability feed

Vulnerability record · CVE-2021-21237 · published 15 January 2021

CVE-2021-21237: Git large file storage project git large file storage untrusted search path vulnerability

GGit Large File Storage Project · Git Large File Storage

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.

7.8 CVSS 3.1 High EPSS 0.43% · top 65.1% CWE-426 · Untrusted search path
7.8CVSS 3.1 base score, v2 4.6
0.43%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
8References
17 Jun 2026Last modified by NVD

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:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2021-21237 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2020-27955Git LFS uncontrolled search path enables remote code executionGit LFS 2.12.0 contains an uncontrolled search path element (CWE-427) that allows remote code execution. The record gives no further detail on the ex…EPSS 82%analysed8.8CVE-2017-17831Git large file storage project git large file storage improper input validation vulnerabilityGitHub Git LFS before 2.1.1 allows remote attackers to execute arbitrary commands via an ssh URL with an initial dash character in the hostname, loca…EPSS 3.7%7.8CVE-2022-24826Git large file storage project git large file storage untrusted search path vulnerabilityOn Windows, if Git LFS operates on a malicious repository with a `..exe` file as well as a file named `git.exe`, and `git.exe` is not found in `PATH`…EPSS 2.2%7.8CVE-2012-1854Microsoft Office VBE6.dll Untrusted Search Path Privilege EscalationVBE6.dll in Microsoft Office 2003 SP3, 2007 SP2/SP3, 2010 Gold/SP1, Microsoft VBA, and the Summit Microsoft VBA SDK loads a library from an untrusted…KEVEPSS 21%analysed7.8CVE-2022-23748Audinate Dante mDNSResponder.exe DLL sideloading flawmDNSResponder.exe in Audinate's Dante Application Library improperly specifies how it loads a DLL, including the folder and conditions, allowing a ma…KEVEPSS 9.1%analysed7.8CVE-2022-22047Windows CSRSS elevation of privilege via untrusted search pathCVE-2022-22047 is an elevation of privilege flaw in the Windows Client Server Run-time Subsystem (CSRSS), classified as CWE-426 (untrusted search pat…KEVEPSS 19%analysed

Source: NIST National Vulnerability Database (record CVE-2021-21237), CISA KEV, FIRST EPSS (scores of 2026-09-27). This page is refreshed as NVD updates the record.