7.5 High
CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
9.8 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
0.944 High
EPSS
Percentile
99.2%
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.
#
# (C) Tenable Network Security, Inc.
#
include("compat.inc");
if (description)
{
script_id(80306);
script_version("1.7");
script_cvs_date("Date: 2018/07/12 19:01:16");
script_cve_id("CVE-2014-9390");
script_bugtraq_id(71732);
script_name(english:"Git for Windows .git/config Command Execution");
script_summary(english:"Checks the version of git.exe.");
script_set_attribute(attribute:"synopsis", value:
"The remote Windows host has an application installed that is affected
by a command execution vulnerability.");
script_set_attribute(attribute:"description", value:
"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.");
# https://github.com/msysgit/msysgit/releases/tag/Git-1.9.5-preview20141217
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?f1d723da");
# https://github.com/blog/1938-vulnerability-announced-update-your-git-clients
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?ad68bb83");
script_set_attribute(attribute:"see_also", value:"http://article.gmane.org/gmane.linux.kernel/1853266");
# http://git-blame.blogspot.com/2014/12/git-1856-195-205-214-and-221-and.html
script_set_attribute(attribute:"see_also", value:"http://www.nessus.org/u?afc47628");
script_set_attribute(attribute:"solution", value:"Upgrade to Git for Windows 1.9.5 (Git-1.9.5-preview20141217) or later.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P");
script_set_cvss_temporal_vector("CVSS2#E:F/RL:OF/RC:C");
script_set_attribute(attribute:"exploitability_ease", value:"Exploits are available");
script_set_attribute(attribute:"exploit_available", value:"true");
script_set_attribute(attribute:"exploit_framework_core", value:"true");
script_set_attribute(attribute:"metasploit_name", value:'Malicious Git and Mercurial HTTP Server For CVE-2014-9390');
script_set_attribute(attribute:"exploit_framework_metasploit", value:"true");
script_set_attribute(attribute:"vuln_publication_date", value:"2014/12/18");
script_set_attribute(attribute:"patch_publication_date", value:"2014/12/17");
script_set_attribute(attribute:"plugin_publication_date", value:"2014/12/30");
script_set_attribute(attribute:"plugin_type", value:"local");
script_set_attribute(attribute:"cpe", value:"cpe:/a:git_for_windows_project:git_for_windows");
script_set_attribute(attribute:"in_the_news", value:"true");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_family(english:"Windows");
script_copyright(english:"This script is Copyright (C) 2014-2018 Tenable Network Security, Inc.");
script_dependencies("git_for_windows_installed.nbin");
script_require_keys("installed_sw/Git for Windows");
exit(0);
}
include("global_settings.inc");
include("audit.inc");
include("install_func.inc");
include("misc_func.inc");
get_kb_item_or_exit("SMB/Registry/Enumerated");
appname = 'Git for Windows';
install = get_single_install(app_name:appname);
path = install['path'];
version = install['version'];
if (!isnull(install['display_version']))
report_version = install['display_version'] + ' ('+version+')';
else
report_version = version;
fix = '1.9.5';
report_fix = '1.9.5-preview20141217 (1.9.5)';
if (ver_compare(ver:version, fix:fix, strict:FALSE) < 0)
{
port = get_kb_item("SMB/transport");
if (!port) port = 445;
if (report_verbosity > 0)
{
report =
'\n Path : ' + path +
'\n Installed version : ' + report_version +
'\n Fixed version : ' + report_fix +
'\n';
security_warning(port:port, extra:report);
}
else security_warning(port);
exit(0);
}
else audit(AUDIT_INST_PATH_NOT_VULN, appname, version, path);
Vendor | Product | Version | CPE |
---|---|---|---|
git_for_windows_project | git_for_windows | cpe:/a:git_for_windows_project:git_for_windows |
7.5 High
CVSS2
Attack Vector
NETWORK
Attack Complexity
LOW
Authentication
NONE
Confidentiality Impact
PARTIAL
Integrity Impact
PARTIAL
Availability Impact
PARTIAL
AV:N/AC:L/Au:N/C:P/I:P/A:P
9.8 High
CVSS3
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality Impact
HIGH
Integrity Impact
HIGH
Availability Impact
HIGH
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
0.944 High
EPSS
Percentile
99.2%