ID CVE-2021-21237
Summary 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
Vulnerable Configurations
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.1.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.2.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.2.1:p1:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.2.1:p1:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.2.2:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.2.2:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.2.3:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.2.3:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.3.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.3.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.3.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.3.2:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.3.2:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.3.3:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.3.3:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.3.4:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.3.4:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.3.5:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.3.5:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.3.6:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.3.6:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.4.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.4.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.4.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.4.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.4.2:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.4.2:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.4.2.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.4.2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.5.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.5.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.5.0:pre1:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.5.0:pre1:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.5.0:pre2:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.5.0:pre2:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.5.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.5.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.5.2:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.5.2:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.5.2:beta1:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.5.2:beta1:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.5.3:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.5.3:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.5.4:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.5.4:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.6.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:0.6.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.0.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.0.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.0.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.0.2:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.0.2:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.1.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.1.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.1.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.1.2:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.1.2:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.2.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.3.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.3.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.3.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.4.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.4.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.4.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.4.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.4.2:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.4.2:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.4.3:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.4.3:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.4.4:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.4.4:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.5.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.5.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.5.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.5.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.5.2:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.5.2:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.5.3:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.5.3:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.5.4:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.5.4:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.5.5:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.5.5:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.5.6:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:1.5.6:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.0.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.0.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.0.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.0.2:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.0.2:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.0.2:rc1:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.0.2:rc1:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.1.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.1.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.1.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.2.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.3.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.3.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.3.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.3.2:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.3.2:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.3.3:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.3.3:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.3.4:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.3.4:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.4.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.4.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.4.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.4.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.4.2:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.4.2:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.5.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.5.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.5.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.5.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.5.2:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.5.2:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.6.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.6.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.6.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.6.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.7.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.7.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.7.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.7.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.7.2:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.7.2:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.8.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.8.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.12.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.12.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.12.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.12.1:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.13.0:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.13.0:*:*:*:*:*:*:*
  • cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.13.1:*:*:*:*:*:*:*
    cpe:2.3:a:git_large_file_storage_project:git_large_file_storage:2.13.1:*:*:*:*:*:*:*
CVSS
Base: 4.6 (as of 29-01-2021 - 22:18)
Impact:
Exploitability:
CWE CWE-426
CAPEC
  • Leveraging/Manipulating Configuration File Search Paths
    This pattern of attack sees an adversary load a malicious resource into a program's standard path so that when a known command is executed then the system instead executes the malicious component. The adversary can either modify the search path a program uses, like a PATH variable or classpath, or they can manipulate resources on the path to point to their malicious components. J2EE applications and other component based applications that are built from multiple binaries can have very long list of dependencies to execute. If one of these libraries and/or references is controllable by the attacker then application controls can be circumvented by the attacker.
Access
VectorComplexityAuthentication
LOCAL LOW NONE
Impact
ConfidentialityIntegrityAvailability
PARTIAL PARTIAL PARTIAL
cvss-vector via4 AV:L/AC:L/Au:N/C:P/I:P/A:P
refmap via4
confirm https://github.com/git-lfs/git-lfs/security/advisories/GHSA-cx3w-xqmc-84g5
misc
Last major update 29-01-2021 - 22:18
Published 15-01-2021 - 18:15
Last modified 29-01-2021 - 22:18
Back to Top