CVE-2021-21237

Source
https://nvd.nist.gov/vuln/detail/CVE-2021-21237
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-21237.json
Aliases
Published
2021-01-15T18:15:15Z
Modified
2023-12-06T01:00:45.633146Z
Details

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.

References

Affected packages

Git / github.com/git-lfs/git-lfs

Affected ranges

Type
GIT
Repo
https://github.com/git-lfs/git-lfs
Events
Introduced
0The exact introduced commit is unknown
Fixed

Affected versions

v0.*

v0.1.0
v0.2.0
v0.2.1
v0.2.1-p1
v0.2.2
v0.2.3
v0.3.0
v0.3.1
v0.3.2
v0.3.3
v0.3.4
v0.3.5
v0.3.6
v0.4.0
v0.4.1
v0.5.0
v0.5.0.pre1
v0.5.1
v0.5.1-tracing
v0.5.2
v0.5.3
v0.6.0

v1.*

v1.0.0
v1.0.1
v1.0.2
v1.1.0
v1.1.1
v1.1.1-pre-push-tracing
v1.1.2
v1.2.0
v1.3.0
v1.3.1
v1.4.0
v1.4.1
v1.4.2
v1.4.3
v1.4.4
v1.5.0

v2.*

v2.0.0
v2.0.2-rc1
v2.1.0
v2.10.0
v2.11.0
v2.12.0
v2.13.0
v2.13.1
v2.2.0
v2.3.0
v2.3.1
v2.3.2
v2.3.3
v2.3.4
v2.4.0
v2.5.0
v2.6.0
v2.7.0
v2.8.0
v2.9.0