CVE-2021-21237Git LFS can execute a Git binary from the current directory on Windows
- 7.2HighCVSS base score
- 0.45%Exploitation in 30 daysEPSS · top 60% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- NonePublic exploitsnone known yet
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.
Timeline
ID reserved
By GitHub_M
- 24 days later
· 24 days later
Published
- 4 years later
· 4 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| GitHub_MCNA (assigner) | 3.1 | High7.2 | CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N |
| NVDNVD · Modified | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 0.45% · top 60% of all CVEs (18 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.2.
Affected products
Affected packages
From reviewed advisories of the GitHub Advisory Database.
- Gogithub.com/git-lfs/git-lfsGHSA-cx3w-xqmc-84g5 (opens in a new tab)
References
References4
- https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5 (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2 (opens in a new tab)x_refsource_MISCx_transferred
- https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a (opens in a new tab)x_refsource_MISCx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2022-0965 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisory GHSA-cx3w-xqmc-84g5 (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2021-21237)Record last updated .