Untrusted search path in git-lfs - CVE-2021-21237
Published: January 13, 2021 / Updated: October 27, 2026
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.