Skip to content

git-fastclone permits arbitrary shell command execution from .gitmodules

High severity GitHub Reviewed Published Aug 15, 2018 to the GitHub Advisory Database • Updated Aug 29, 2023

Package

bundler git-fastclone (RubyGems)

Affected versions

< 1.0.1

Patched versions

1.0.1

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.

References

Published to the GitHub Advisory Database Aug 15, 2018
Reviewed Jun 16, 2020
Last updated Aug 29, 2023

Severity

High
8.8
/ 10

CVSS base metrics

Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Weaknesses

CVE ID

CVE-2015-8968

GHSA ID

GHSA-8gg6-3r63-25m8

Source code

Checking history
See something to contribute? Suggest improvements for this vulnerability.