Rapid7 Vulnerability & Exploit Database

Git Remote Code Execution via git-lfs (CVE-2020-27955)

Back to Search

Git Remote Code Execution via git-lfs (CVE-2020-27955)

Disclosed
11/04/2020
Created
09/20/2021

Description

A critical vulnerability (CVE-2020-27955) in Git Large File Storage (Git LFS), an open source Git extension for versioning large files, allows attackers to achieve remote code execution if the Windows-using victim is tricked into cloning the attacker’s malicious repository using a vulnerable Git version control tool

Author(s)

  • Dawid Golunski
  • space-r7
  • jheysel-r7

Platform

Windows

Architectures

x86, x64

Development

Module Options

To display the available options, load the module within the Metasploit console and run the commands 'show options' or 'show advanced':

msf > use exploit/windows/http/git_lfs_rce
msf exploit(git_lfs_rce) > show targets
    ...targets...
msf exploit(git_lfs_rce) > set TARGET < target-id >
msf exploit(git_lfs_rce) > show options
    ...show and set options...
msf exploit(git_lfs_rce) > exploit

Time is precious, so I don’t want to do something manually that I can automate. Leveraging the Metasploit Framework when automating any task keeps us from having to re-create the wheel as we can use the existing libraries and focus our efforts where it matters.

– Jim O’Gorman | President, Offensive Security

;