PT-2017-10820 · Git+5 · Git-Scm+7

Brian Neel

+2

·

Published

2017-08-10

·

Updated

2025-11-14

·

CVE-2017-1000117

CVSS v3.1

8.8

High

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions git versions prior to 6.20170818 git-scm git (affected versions not specified)
Description A malicious third-party can give a crafted "ssh://..." URL to an unsuspecting victim, and an attempt to visit the URL can result in any program that exists on the victim's machine being executed. This can be done by placing the URL in the .gitmodules file of a malicious project, and an unsuspecting victim could be tricked into running "git clone --recurse-submodules" to trigger the issue. The git-annex command is also vulnerable to command injection via malicious SSH hostname. If the hostname parsed from the URL is something like -eProxyCommand=evil, this could result in arbitrary local code execution. An attacker could exploit this by tricking the victim into adding a remote something like ssh://-eProxyCommand=evil/blah or by using initremote with an SSH remote and embedding the URL in the git-annex branch.
Recommendations For git versions prior to 6.20170818, update to version 6.20170818 or later to resolve the issue. For git-scm git, at the moment, there is no information about a newer version that contains a fix for this vulnerability. As a temporary workaround, consider avoiding the use of git clone --recurse-submodules with untrusted projects and restricting the use of git-annex with SSH remotes until a patch is available. Avoid using URLs that start with ssh:// and contain potentially malicious hostnames, such as those starting with -eProxyCommand=.

Exploit

Open Redirect

Weakness Enumeration

Related Identifiers

ALT-PU-2017-2039
ALT-PU-2018-2508
ALT-PU-2020-1641
ALT-PU-2020-2914
CESA-2017_2480
CESA-2017_2484
CESA-2017_2485
CESA-2017_2489
CESA-2018_1957
CESA-2018_3408
CESA-2020_0316
CVE-2017-1000117
DLA-1068-1
DLA-1495-1
DSA-3934-1
ELSA-2017-2484
ELSA-2017-2485
HSEC-2023-0009
MGASA-2017-0266
OPENSUSE-SU-2017_2182-1
OPENSUSE-SU-2017_2331-1
OPENSUSE-SU-2024:10786-1
RHSA-2017:2484
RHSA-2017:2485
RHSA-2017:2491
RHSA-2017:2674
RHSA-2017_2480
RHSA-2017_2484
RHSA-2017_2485
RHSA-2017_2489
SUSE-SU-2017:2225-1
SUSE-SU-2017:2320-1
SUSE-SU-2017_2225-1
SUSE-SU-2017_2320-1
SUSE-SU-2020_0992-1
USN-3387-1

Affected Products

Alt Linux
Centos
Red Hat
Suse
Ubuntu
Git
Git-Annex
Git-Scm