Git for Windows 2.7.x < 2.7.6 / 2.8.x < 2.8.6 / 2.9.x < 2.9.5 / 2.10.x < 2.10.4 / 2.11.x < 2.11.13 / 2.12.x < 2.12.4 / 2.13.x < 2.13.5 / 2.14.x < 2.14.1 Malicious SSH URL Command Execution

high Nessus Plugin ID 102494

Synopsis

The remote Windows host has an application installed that is affected by a command execution vulnerability.

Description

The version of Git for Windows installed on the remote host is version 2.7.x prior to 2.7.6, 2.8.x prior to 2.8.6, 2.9.x prior to 2.9.5, 2.10.x prior to 2.10.4, 2.11.x prior to 2.11.13, 2.12.x prior to 2.12.4, 2.13.x prior to 2.13.5, or 2.14.x prior to 2.14.1. It is, therefore, affected by a command execution vulnerability due to a flaw in the handling of 'ssh://' URLs that begin with a dash. A maliciously crafted 'ssh://' URL causes Git clients to run an arbitrary shell command. Such a URL could be placed in the .gitmodules file of a malicious project, and an unsuspecting victim could be tricked into running 'git clone --recurse-submodules' to trigger the vulnerability.

Solution

Upgrade to Git for Windows 2.7.6 / 2.8.6 / 2.9.5 / 2.10.4 / 2.11.13 / 2.12.4 / 2.13.5 / 2.14.1 or later.

See Also

http://www.nessus.org/u?894dcb77

http://www.nessus.org/u?c0aca1c0

http://www.nessus.org/u?4798389e

http://www.nessus.org/u?a099ed51

http://www.nessus.org/u?4c6ad422

http://www.nessus.org/u?6a506ef2

http://www.nessus.org/u?0d9668c9

http://www.nessus.org/u?d38639e5

http://www.nessus.org/u?aea2c8f6

http://www.nessus.org/u?aafcb0d4

Plugin Details

Severity: High

ID: 102494

File Name: git_for_windows_2_14_1.nasl

Version: 1.4

Type: local

Agent: windows

Family: Windows

Published: 8/15/2017

Updated: 11/12/2019

Supported Sensors: Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: High

Score: 7.4

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Temporal Score: 5.6

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS Score Source: CVE-2017-1000117

CVSS v3

Risk Factor: High

Base Score: 8.8

Temporal Score: 8.2

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:F/RL:O/RC:C

Vulnerability Information

CPE: cpe:/a:git_for_windows_project:git_for_windows

Required KB Items: installed_sw/Git for Windows

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 8/10/2017

Vulnerability Publication Date: 8/10/2017

Exploitable With

Metasploit (Malicious Git HTTP Server For CVE-2017-1000117)

Reference Information

CVE: CVE-2017-1000117