
CVE catalog
CVE-2021-21237
git-lfs: CVE-2021-21237
- Severity
- Low
- Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.45% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | git-lfs | sid | 3.8.0-2 | not affected |
| Debian | git-lfs | forky | 3.8.0-2 | not affected |
| Debian | git-lfs | trixie | 3.6.1-1+deb13u1 | not affected |
| Debian | git-lfs | bookworm | 3.3.0-1+deb12u1 | not affected |
| Debian | git-lfs | bookworm-security | 3.3.0-1+deb12u2 | not affected |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | git-lfs | source | sid | Not affected | unimportant | Not reported | Not reported |
| Debian | git-lfs | source | forky | Not affected | unimportant | Not reported | Not reported |
| Debian | git-lfs | source | trixie | Not affected | unimportant | Not reported | Not reported |
| Debian | git-lfs | source | bookworm | Not affected | unimportant | Not reported | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [git-lfs]Not affected
Details (4)
3.3.0-1+deb12u1· amd64 · bookwormNot affected
dsa · git-lfs · debian · bookworm
3.3.0-1+deb12u1· arm64 · bookwormNot affected
dsa · git-lfs · debian · bookworm
3.3.0-1+deb12u1· amd64 · bookworm-securityNot affected
dsa · git-lfs · debian · bookworm
3.3.0-1+deb12u1· arm64 · bookworm-securityNot affected
dsa · git-lfs · debian · bookworm
- [golang-github-git-lfs-git-lfs-dev]Not affected
Source package: [git-lfs]
Details (4)
3.3.0-1+deb12u1· all · bookwormNot affected
dsa · git-lfs · debian · bookworm
3.3.0-1+deb12u1· all · bookwormNot affected
dsa · git-lfs · debian · bookworm
3.3.0-1+deb12u1· all · bookworm-securityNot affected
dsa · git-lfs · debian · bookworm
3.3.0-1+deb12u1· all · bookworm-securityNot affected
dsa · git-lfs · debian · bookworm
Observed: