Git for Windows .git/config Command Execution

medium Nessus Plugin ID 80306

Synopsis

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

Description

The version of Git for Windows (also known as msysGit) installed on the remote host is prior to 1.9.5. It is, therefore, affected by a command execution vulnerability when processing specially crafted git trees in a case-insensitive or case-normalizing file system. A remote attacker, using a specially crafted git tree, can overwrite a user's '.git/config' file when the user clones or checks out a repository, allowing arbitrary command execution.

Solution

Upgrade to Git for Windows 1.9.5 (Git-1.9.5-preview20141217) or later.

See Also

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

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

http://article.gmane.org/gmane.linux.kernel/1853266

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

Plugin Details

Severity: Medium

ID: 80306

File Name: git_for_windows_1_9_5.nasl

Version: 1.7

Type: local

Agent: windows

Family: Windows

Published: 12/30/2014

Updated: 7/12/2018

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

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: 12/17/2014

Vulnerability Publication Date: 12/18/2014

Exploitable With

Core Impact

Metasploit (Malicious Git and Mercurial HTTP Server For CVE-2014-9390)

Reference Information

CVE: CVE-2014-9390

BID: 71732