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

Medium 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: Medium

ID: 102494

File Name: git_for_windows_2_14_1.nasl

Version: 1.3

Type: local

Agent: windows

Family: Windows

Published: 2017/08/15

Updated: 2019/04/10

Dependencies: 80305

Risk Information

Risk Factor: Medium

CVSS v2.0

Base Score: 6.8

Temporal Score: 5.6

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

Temporal Vector: CVSS2#E:F/RL:OF/RC:C

CVSS v3.0

Base Score: 6.3

Temporal Score: 5.8

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

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: 2017/08/10

Vulnerability Publication Date: 2017/08/10

Exploitable With

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

Reference Information

CVE: CVE-2017-1000117