CVE-2021-21237: Git LFS is a command line extension for managing large files with Git
CVE-2021-21237 is a high-severity flaw (CVSS 7.2) affecting git large file storage. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
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
Why this priority
- High severity
A fixed release or distro patch exists.
Risk facts
| CVSS score | 7.2 (High) |
| Attack vector | Local |
| Attack complexity | High |
| Privileges needed | Low |
| User interaction | Required |
| EPSS exploit chance | 0.5% (top 61%) |
| CISA exploited list | No |
| Weakness | CWE-426 |
| Published | 2021-01-15 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-21237?
git large file storage: upgrade to 2.13.2. Exact commands for each OS are on this page.
Is CVE-2021-21237 being exploited?
CVE-2021-21237 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-21237 affect?
CVE-2021-21237 affects git large file storage. Severity is high (CVSS 7.2). 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 attacke
How urgent is CVE-2021-21237?
Priority 35/100. High severity
Software pages
Windows vulnerabilities · Git vulnerabilities
Related CVEs
- CVE-2022-24826 CRITICAL 9.8 UPGRADE On Windows, if Git LFS operates on a malicious repository with a `..exe` file as well as a file named `git.exe
- CVE-2020-27955 CRITICAL 9.8 DOWNGRADE Git LFS 2.12.0 allows Remote Code Execution.