Untrusted search path in git-lfs - CVE-2021-21237

 

Untrusted search path in git-lfs - CVE-2021-21237

Published: January 13, 2021 / Updated: October 27, 2026


Vulnerability identifier: #VU158058
CSH Severity: High
CVSS v4: 8.4 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2021-21237
CWE-ID: CWE-426
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on Windows.

The vulnerability exists due to an untrusted search path in Git LFS when locating the Git executable on Windows. A remote attacker can place a malicious Git executable in the current directory and induce a user to invoke Git LFS from that directory to execute arbitrary code with the user's privileges.


Affected software

git-lfs

How to mitigate CVE-2021-21237

Install security update from vendor's website.

git-lfs - update to 2.13.2

External References

Related Security Bulletins