Every CVE Search/ Get API key

CVE-2020-27955

Git LFS can execute a Git binary from the current directory

9.8 CriticalPublic exploitFix available

Git LFS 2.12.0 allows Remote Code Execution.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

82.3%Up 69.5 points since Apr 14, 2021
90%50%10%1%

What each source reports

NVD Score used 9.8

Git LFS 2.12.0 allows Remote Code Execution.

Record
CVE-2020-27955
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS 2.0
10.0 HighAV:N/AC:L/Au:N/C:C/I:C/A:C
Weakness
CWE-427
Updated
2026-11-02
CVE List No score

Git LFS 2.12.0 allows Remote Code Execution.

Record
CVE-2020-27955
Updated
2026-11-02
EUVDEUVD-2022-0812 No score

Git LFS 2.12.0 allows Remote Code Execution.

Record
EUVD-2022-0812
Updated
2026-11-03
GitHub AdvisoriesGHSA-4g4p-42wc-9f3m 9.8

Git LFS can execute a Git binary from the current directory

Impact

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 occurs because on Windows, Go includes (and prefers) the current directory when the name of a command run does not contain a directory separator.

Patches

This version should be patched in v2.12.1, which will be released in coordination with this security advisory.

Workarounds

Other than avoiding untrusted repositories, there is no workaround.

For more information

If you have any questions or comments about this advisory:

  • Start a discussion in the Git LFS discussion page.
  • If you cannot open a discussion, please email the core team using their usernames at github.com.
Record
GHSA-4g4p-42wc-9f3m
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-427
Updated
2026-11-02
OSV 9.8

Git LFS 2.12.0 allows Remote Code Execution.

Record
CVE-2020-27955
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Updated
2026-11-02
OSVGHSA-4g4p-42wc-9f3m 9.8

Git LFS can execute a Git binary from the current directory

Impact

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 occurs because on Windows, Go includes (and prefers) the current directory when the name of a command run does not contain a directory separator.

Patches

This version should be patched in v2.12.1, which will be released in coordination with this security advisory.

Workarounds

Other than avoiding untrusted repositories, there is no workaround.

For more information

If you have any questions or comments about this advisory:

  • Start a discussion in the Git LFS discussion page.
  • If you cannot open a discussion, please email the core team using their usernames at github.com.
Record
GHSA-4g4p-42wc-9f3m
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-427
Updated
2026-11-02
OSVBIT-git-lfs-2020-27955 No score

Git LFS 2.12.0 allows Remote Code Execution.

Record
BIT-git-lfs-2020-27955
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
github.com/git-lfs/git-lfs
Go
before 2.12.1
2.12.1
git-lfs
Bitnami
2.12.0 up to 2.12.1
2.12.1

Public exploits

Links only. Every CVE stores no exploit code.

Public exploits
SourceLinkDate
MetasploitGit Remote Code Execution via git-lfs (CVE-2020-27955)2020-11-04
PoC in GitHubArnoldqqq/CVE-2020-279552021-05-13
PoC in GitHubDeeLMind/CVE-2020-27955-LFS2021-04-30
PoC in GitHubExploitBox/git-lfs-RCE-exploit-CVE-2020-279552020-11-03
PoC in GitHubExploitBox/git-lfs-RCE-exploit-CVE-2020-27955-Go2020-11-04
PoC in GitHubFrostsaberX/CVE-2020-279552021-06-17
PoC in GitHubHK69s/CVE-2020-279552021-04-30
PoC in GitHubIanSmith123/CVE-2020-279552021-05-06
PoC in GitHubKimorea/CVE-2020-27955-LFS2023-02-02
PoC in GitHubMarsable/CVE-2020-27955-LFS2021-05-25
Show 9 moreShow less
Public exploits
SourceLinkDate
PoC in GitHubNeoDarwin/CVE-2020-279552021-03-30
PoC in GitHubTheTh1nk3r/cve-2020-279552020-12-28
PoC in GitHubnob0dy-3389/CVE-2020-279552021-05-23
PoC in GitHubr00t4dm/CVE-2020-279552020-11-24
PoC in GitHubthe-chivalrousZ/cve-2020-279552025-10-27
PoC in GitHubuserxfan/cve-2020-279552022-04-13
PoC in GitHubwhitetea2424/CVE-2020-27955-LFS-main2021-08-02
PoC in GitHubyhsung/cve-2020-27955-poc2020-11-22
PoC in GitHubz50913/CVE-2020-279552022-12-16

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, Metasploit, NVD, OSV, PoC in GitHub

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2020-27955 is a critical vulnerability (CVSS 9.8) in Git Large File Storage Project Large File Storage, published November 5, 2020. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 82.3%, the 99th percentile. Fixed in github.com/git-lfs/git-lfs 2.12.1.

References

Show 5 moreShow less
MoveEnter Open