PT-2017-10820

CVE-2017-1000117

·

Published

2017-08-10

·

Updated

2026-09-30

Description by

CVSS 3.1
8.8
High
MetricsAV: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=.
Exploitability
Exploit
Impacts
Vendors
Affected products
Related identifiers
ALT-PU-2017-2039
CESA-2017_2484
CESA-2017_2485
CLEANSTART-2025-KP82477
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_2484
RHSA-2017:2485
RHSA-2017_2485
RHSA-2017:2491
RHSA-2017:2674
SUSE-SU-2017:2225-1
SUSE-SU-2017_2225-1
SUSE-SU-2017:2320-1
SUSE-SU-2017_2320-1
SUSE-SU-2020_0992-1
USN-3387-1
Found an issue in the description? Have something to add? Feel free to write us 👾