CVE-2015-8968 git-fastclone permits arbitrary shell command execution from .gitmodules

High 8.8 Published Updated

Attackers can execute arbitrary shell commands via malicious .gitmodules files when users perform recursive clones or submodule updates.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2015-8968?

CVE-2015-8968 is a high-severity command injection vulnerability in git-fastclone ruby gem All versions before 1.0.1, published on 3 Nov 2016. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

git-fastclone before 1.0.1 permits arbitrary shell command execution from .gitmodules. If an attacker can instruct a user to run a recursive clone from a repository they control, they can get a client to run an arbitrary shell command. Alternately, if an attacker can MITM an unencrypted git clone, they could exploit this. The ext command will be run if the repository is recursively cloned or if submodules are updated. This attack works when cloning both local and remote repositories.

Weakness: CWE-77

Which versions are affected by CVE-2015-8968?

2 open source packages ship an affected version, including git-fastclone. It affects 1 product.

PackageAffectedFixed in
git-fastclone RubyGemsAll versions1.0.1
git-fastclone RubyGemsAll versions1.0.1

Products include Squareup Git-Fastclone.

How do I fix CVE-2015-8968?

Upgrade git-fastclone to 1.0.1 or later.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2015-8968 being exploited?

There is no known exploitation of CVE-2015-8968 in the wild and no public exploit code.

Sources

Also known as GHSA-8gg6-3r63-25m8.

Is CVE-2015-8968 in your software?

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

Check your SBOMs for free