All CVEs / Git Large File Storage Project
CVE-2021-21237Git Large File Storage Project Git Large File Storage
High 7.8
Follow: this CVE · Git Large File Storage Project · Git Large File Storage Project Git Large File Storage We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 7.8
- EPSS
- 0.5% probability of exploitation in 30 days · percentile 41
- Auth required
- Yes
- Published
- Jan 15, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-426
- Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Git Large File Storage.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/git-lfs/git-lfs |
< 2.13.2 |
2.13.2 |
go get github.com/git-lfs/git-lfs@v2.13.2 |
| Go | github.com/git-lfs/git-lfs |
< 1.5.1-0.20210113180018-fc664697ed2c |
1.5.1-0.20210113180018-fc664697ed2c |
go get github.com/git-lfs/git-lfs@v1.5.1-0.20210113180018-fc664697ed2c |
Per OSV / GitHub Advisories (GHSA-cx3w-xqmc-84g5, GO-2021-0098). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| git_large_file_storage_project | git_large_file_storage | < 2.13.2 |
Official sources
References
Links published by the sources. Open them with care.
- cve.mitre.org Third Party Advisory
- github.com Patch Third Party Advisory
- github.com Third Party Advisory
- github.com Third Party Advisory