CVE-2020-27955 Git LFS can execute a Git binary from the current directory

Critical 9.8 Published Updated

Git LFS allows remote code execution via untrusted repositories, requiring developers to upgrade to a patched version.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2020-27955?

CVE-2020-27955 is a critical code injection vulnerability in n/a, published on 5 Nov 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Git LFS 2.12.0 allows Remote Code Execution.

Weakness: CWE-427

Which versions are affected by CVE-2020-27955?

3 open source packages ship an affected version, including github.com/git-lfs/git-lfs and git-lfs. It affects 1 product.

PackageAffectedFixed in
github.com/git-lfs/git-lfs GoAll versions2.12.1
github.com/git-lfs/git-lfs GoAll versions2.12.1
git-lfs BitnamiFrom 2.12.02.12.1

Products include Git Large File Storage Project Git Large File Storage.

How do I fix CVE-2020-27955?

Upgrade github.com/git-lfs/git-lfs to 2.12.1 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2020-27955 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2020-27955 exists.

Public exploit code: 1 Metasploit module and 18 proofs of concept on GitHub.

Sources

Also known as BIT-git-lfs-2020-27955, GHSA-4g4p-42wc-9f3m.

Is CVE-2020-27955 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free