{"schemaVersion":3,"id":"CVE-2021-21237","aliases":["UBUNTU-CVE-2021-21237","GHSA-cx3w-xqmc-84g5","BIT-git-lfs-2021-21237","GO-2021-0098"],"status":"published","duplicateOf":null,"title":null,"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.","dates":{"published":"2021-01-15T17:36:09.000Z","modified":"2024-08-03T18:09:15.015Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.8,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.2,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":4.6,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Go","score":7.2,"severity":"high","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:C/C:H/I:H/A:N","exploitability":2.1,"impact":9.7,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.8,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.6,"severity":"medium","vector":"AV:L/AC:L/Au:N/C:P/I:P/A:P","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.0045,"percentile":0.37771,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0.01399999999999995,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00436},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0045,"percentile":0.37771}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00436,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00431,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.0045,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.0045,"percentile":0.37771}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-426","name":"Untrusted Search Path","description":"The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/426.html"}],"affected":[{"vendor":"ubuntu","product":"git-lfs","name":"git-lfs","label":"git-lfs","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/git-lfs","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"git_large_file_storage_project","product":"git_large_file_storage","name":"git large file storage","label":"git_large_file_storage","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.13.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.13.2","eol":null,"hubHref":"/vendor/git_large_file_storage_project/git_large_file_storage"},{"vendor":"git-lfs","product":"git-lfs","name":"git-lfs","label":"git-lfs","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.13.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.13.2","eol":null,"hubHref":"/vendor/git-lfs/git-lfs"},{"vendor":"github.com/git-lfs","product":"git-lfs","name":"github.com/git-lfs/git-lfs","label":"git-lfs","ecosystem":"Go","cpePart":null,"purl":"pkg:golang/github.com/git-lfs/git-lfs","purlType":"golang","versions":[{"text":"< 2.13.2","noFixRecorded":false,"fixedIn":null},{"text":"< 1.5.1-0.20210113180018-fc664697ed2c","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.13.2 | < 1.5.1-0.20210113180018-fc664697ed2c","eol":null,"hubHref":null}],"affectedCount":4,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5","label":"github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5","hostname":"github.com","tags":["X Refsource CONFIRM","REPORT","WEB","Third Party Advisory"]},{"url":"https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955","label":"cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-27955","hostname":"cve.mitre.org","tags":["X Refsource MISC","REPORT","WEB","Third Party Advisory"]},{"url":"https://github.com/git-lfs/git-lfs/releases/tag/v2.13.2","label":"github.com/git-lfs/git-lfs/releases/tag/v2.13.2","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","Third Party Advisory"]},{"url":"https://github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a","label":"github.com/git-lfs/git-lfs/commit/fc664697ed2c2081ee9633010de0a7f9debea72a","hostname":"github.com","tags":["X Refsource MISC","REPORT","WEB","FIX","Patch","Third Party Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-21237","label":"ubuntu.com/security/CVE-2021-21237","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-21237","label":"www.cve.org/CVERecord?id=CVE-2021-21237","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-21237","label":"nvd.nist.gov/vuln/detail/CVE-2021-21237","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/git-lfs/git-lfs","label":"github.com/git-lfs/git-lfs","hostname":"github.com","tags":["PACKAGE"]},{"url":"https://pkg.go.dev/vuln/GO-2021-0098","label":"pkg.go.dev/vuln/GO-2021-0098","hostname":"pkg.go.dev","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2021-01-15T17:36:09.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T18:09:15.015Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":31,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-21T03:25:09.265Z","stale":false,"partial":false}}