# CVE-2021-21237: GO-2021-0098 - Arbitrary code execution on Windows in github.com/git-lfs/git-lfs

Source: https://junglewise.ai/threats/cve-2021-21237-git-lfs-can-execute-a-git-binary-from-the-current-directory-on  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-04-14  
License: CC BY 4.0 with a link back

CVE-2021-21237 · Severity: low · CVSS 3.1 · Published 2021-04-14

Arbitrary code execution on Windows in github.com/git-lfs/git-lfs

Technologies: [github.com/git-lfs/git-lfs (Go)](https://junglewise.ai/threats/technologies/github-com-git-lfs-git-lfs). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2021-21237 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-21237 being exploited in the wild.

**How severe is CVE-2021-21237?** Low severity, with a CVSS score of 3.1, published 14 April 2021.

**Which products and versions are affected?** github.com/git-lfs/git-lfs (Go) SEMVER:introduced=0,fixed=1.5.1-0.20210113180018-fc664697ed2c, SEMVER:introduced=0,fixed=2.13.2.

**Is there a fix for CVE-2021-21237?** Yes. github.com/git-lfs/git-lfs (Go): upgrade to 1.5.1-0.20210113180018-fc664697ed2c, 2.13.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-21237?** Check whether you run github.com/git-lfs/git-lfs (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/git-lfs/git-lfs (Go): upgrade to 1.5.1-0.20210113180018-fc664697ed2c, 2.13.2 or later

  ```sh
  go get github.com/git-lfs/git-lfs@v2.13.2
  ```


## Affected products

- github.com/git-lfs/git-lfs (Go) SEMVER:introduced=0,fixed=1.5.1-0.20210113180018-fc664697ed2c, SEMVER:introduced=0,fixed=2.13.2

## Identifiers

- CVE-2021-21237
- GHSA-cx3w-xqmc-84g5
- GO-2021-0098

## Related threats

- [Git LFS arbitrary file write via symbolic link traversal](https://junglewise.ai/threats/cve-2025-26625-git-lfs-arbitrary-file-write-via-symbolic-link-traversal)
- [GO-2025-3390 - Git LFS permits exfiltration of credentials via crafted HTTP URLs in github.com/git-lfs/git-lfs](https://junglewise.ai/threats/cve-2024-53263-git-lfs-permits-exfiltration-of-credentials-via-crafted-http-urls)
- [Git LFS can execute a binary from the current directory on Windows](https://junglewise.ai/threats/cve-2022-24826-git-lfs-can-execute-a-binary-from-the-current-directory-on)
- [Git LFS can execute a Git binary from the current directory](https://junglewise.ai/threats/cve-2020-27955-git-lfs-can-execute-a-git-binary-from-the-current-directory)
- [GO-2021-0073 - Arbitrary command execution in github.com/git-lfs/git-lfs](https://junglewise.ai/threats/cve-2017-17831-github-git-lfs-arbitrary-command-execution-vulnerability)
