CVE-2020-27955
JSON

9.8critical

Git LFS can execute a Git binary from the current directory

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
81.7% (higher than 99% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-4g4p-42wc-9f3mBIT-GIT-LFS-2020-27955

Description

Git LFS 2.12.0 allows Remote Code Execution.

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
github.com/git-lfs/git-lfs (Go)before 2.12.1GitHub Advisory Database
git_large_file_storage_project git_large_file_storage2.12.0NVD
git-lfs (Bitnami)from 2.12.0 before 2.12.1Bitnami Vulnerability Database

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD10.0high CVSS:2.0AV:N/AC:L/Au:N/C:C/I:C/A:C
Bitnami Vulnerability Databasecritical rating

Classification

What each source says

CVE List

Git LFS 2.12.0 allows Remote Code Execution.

GitHub Advisory Database
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.
NVD (es)

Git LFS versión 2.12.0, permite una ejecución de código remota

References

https://legalhackers.comadvisory, third-party-advisory
https://exploitbox.ioadvisory, exploit, third-party-advisory
https://github.com/git-lfs/git-lfs/releasesadvisory, release-notes, third-party-advisory, web
https://legalhackers.com/advisories/Git-LFS-RCE-Exploit-CVE-2020-27955.htmladvisory, exploit, third-party-advisory, web
http://seclists.org/fulldisclosure/2020/Nov/1advisory, exploit, mailing-list, third-party-advisory, web
http://packetstormsecurity.com/files/159923/git-lfs-Remote-Code-Execution.htmladvisory, exploit, third-party-advisory, vdb-entry
http://packetstormsecurity.com/files/164180/Git-git-lfs-Remote-Code-Execution.htmladvisory, exploit, third-party-advisory, vdb-entry
https://github.com/git-lfs/git-lfs/security/advisories/GHSA-4g4p-42wc-9f3mweb
https://nvd.nist.gov/vuln/detail/CVE-2020-27955advisory, web
https://github.com/git-lfs/git-lfspackage

Sources

SourceRecordLicence
CVE ListCVE-2020-27955 changed 2024-08-04CVE Terms of Use
GitHub Advisory DatabaseGHSA-4g4p-42wc-9f3m changed 2023-12-06CC-BY-4.0
NVDCVE-2020-27955 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GIT-LFS-2020-27955 changed 2026-09-08Apache-2.0