{"cve":"CVE-2021-21237","nvd":{"published":"2021-01-15T18:15:15.980","modified":"2026-06-17T03:35:06.050","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8},"cwes":["CWE-426"],"references":["https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955","https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a","https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2","https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5","https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955"],"products":["git_large_file_storage_project:git_large_file_storage"],"source":"nvd","synced_at":"2026-10-19T21:14:10.479542811+00:00"},"epss":{"cve":"CVE-2021-21237","score":0.00453,"percentile":0.39378,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-cx3w-xqmc-84g5","url":"https://osv.dev/vulnerability/GHSA-cx3w-xqmc-84g5","summary":"Git LFS can execute a Git binary from the current directory on Windows","modified":"2026-07-08T06:29:13.454794397Z","packages":[{"ecosystem":"Go","name":"github.com/git-lfs/git-lfs","purl":"pkg:golang/github.com/git-lfs/git-lfs","ranges":["<2.13.2"],"fixed":["2.13.2"]}]},{"id":"GO-2021-0098","url":"https://osv.dev/vulnerability/GO-2021-0098","summary":"Arbitrary code execution on Windows in github.com/git-lfs/git-lfs","modified":"2024-05-20T16:03:47Z","packages":[{"ecosystem":"Go","name":"github.com/git-lfs/git-lfs","purl":"pkg:golang/github.com/git-lfs/git-lfs","ranges":["<1.5.1-0.20210113180018-fc664697ed2c"],"fixed":["1.5.1-0.20210113180018-fc664697ed2c"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}