The remote VMware ESX / ESXi host is missing a security-related patch.
It is, therefore, affected by multiple vulnerabilities, including remote code execution vulnerabilities, in several components and third-party libraries :
#%NASL_MIN_LEVEL 70300
#
# (C) Tenable Network Security, Inc.
#
include('deprecated_nasl_level.inc');
include('compat.inc');
if (description)
{
script_id(89740);
script_version("1.6");
script_set_attribute(attribute:"plugin_modification_date", value:"2021/01/06");
script_cve_id(
"CVE-2006-6304",
"CVE-2007-4567",
"CVE-2009-0590",
"CVE-2009-1377",
"CVE-2009-1378",
"CVE-2009-1379",
"CVE-2009-1384",
"CVE-2009-1386",
"CVE-2009-1387",
"CVE-2009-2409",
"CVE-2009-2695",
"CVE-2009-2908",
"CVE-2009-2910",
"CVE-2009-3080",
"CVE-2009-3228",
"CVE-2009-3286",
"CVE-2009-3547",
"CVE-2009-3556",
"CVE-2009-3563",
"CVE-2009-3612",
"CVE-2009-3613",
"CVE-2009-3620",
"CVE-2009-3621",
"CVE-2009-3726",
"CVE-2009-3736",
"CVE-2009-3889",
"CVE-2009-3939",
"CVE-2009-4020",
"CVE-2009-4021",
"CVE-2009-4138",
"CVE-2009-4141",
"CVE-2009-4212",
"CVE-2009-4272",
"CVE-2009-4355",
"CVE-2009-4536",
"CVE-2009-4537",
"CVE-2009-4538",
"CVE-2010-0001",
"CVE-2010-0097",
"CVE-2010-0290",
"CVE-2010-0382",
"CVE-2010-0426",
"CVE-2010-0427"
);
script_bugtraq_id(
31692,
34256,
35001,
35112,
35138,
35174,
35417,
36304,
36472,
36576,
36639,
36706,
36723,
36824,
36827,
36901,
36936,
37019,
37068,
37069,
37118,
37128,
37255,
37339,
37519,
37521,
37523,
37749,
37806,
37865,
37876,
37886,
38432
);
script_xref(name:"VMSA", value:"2010-0009");
script_name(english:"VMware ESX / ESXi Third-Party Libraries and Components (VMSA-2010-0009) (remote check)");
script_summary(english:"Checks the ESX / ESXi version and build number.");
script_set_attribute(attribute:"synopsis", value:
"The remote VMware ESX / ESXi host is missing a security-related patch.");
script_set_attribute(attribute:"description", value:
"The remote VMware ESX / ESXi host is missing a security-related patch.
It is, therefore, affected by multiple vulnerabilities, including
remote code execution vulnerabilities, in several components and
third-party libraries :
- libpng
- VMnc Codec
- vmrun
- VMware Remote Console (VMrc)
- VMware Tools
- vmware-authd");
script_set_attribute(attribute:"see_also", value:"https://www.vmware.com/security/advisories/VMSA-2010-0009");
script_set_attribute(attribute:"see_also", value:"http://lists.vmware.com/pipermail/security-announce/2010/000099.html");
script_set_attribute(attribute:"solution", value:
"Apply the appropriate patch according to the vendor advisory that
pertains to ESX version 3.5 / 4.0 or ESXi version 3.5 / 4.0.");
script_set_cvss_base_vector("CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C");
script_set_cvss_temporal_vector("CVSS2#E:H/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:"exploited_by_malware", value:"true");
script_set_attribute(attribute:"exploit_framework_canvas", value:"true");
script_set_attribute(attribute:"canvas_package", value:'CANVAS');
script_cwe_id(20, 119, 189, 200, 264, 287, 310, 362, 399);
script_set_attribute(attribute:"plugin_type", value:"remote");
script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:esx");
script_set_attribute(attribute:"cpe", value:"cpe:/o:vmware:esxi");
script_set_attribute(attribute:"vuln_publication_date", value:"2006/12/18");
script_set_attribute(attribute:"patch_publication_date", value:"2010/05/27");
script_set_attribute(attribute:"plugin_publication_date", value:"2016/03/08");
script_end_attributes();
script_category(ACT_GATHER_INFO);
script_copyright(english:"This script is Copyright (C) 2016-2021 Tenable Network Security, Inc.");
script_family(english:"VMware ESX Local Security Checks");
script_dependencies("vmware_vsphere_detect.nbin");
script_require_keys("Host/VMware/version", "Host/VMware/release");
script_require_ports("Host/VMware/vsphere");
exit(0);
}
include("audit.inc");
include("global_settings.inc");
include("misc_func.inc");
ver = get_kb_item_or_exit("Host/VMware/version");
rel = get_kb_item_or_exit("Host/VMware/release");
port = get_kb_item_or_exit("Host/VMware/vsphere");
esx = '';
if ("ESX" >!< rel)
audit(AUDIT_OS_NOT, "VMware ESX/ESXi");
extract = eregmatch(pattern:"^(ESXi?) (\d\.\d).*$", string:ver);
if (isnull(extract))
audit(AUDIT_UNKNOWN_APP_VER, "VMware ESX/ESXi");
else
{
esx = extract[1];
ver = extract[2];
}
# fixed build numbers are the same for ESX and ESXi
fixes = make_array(
"4.0", "256968",
"3.5", "259926"
);
fix = FALSE;
fix = fixes[ver];
# get the build before checking the fix for the most complete audit trail
extract = eregmatch(pattern:'^VMware ESXi?.* build-([0-9]+)$', string:rel);
if (isnull(extract))
audit(AUDIT_UNKNOWN_BUILD, "VMware " + esx, ver);
build = int(extract[1]);
# if there is no fix in the array, fix is FALSE
if (!fix)
audit(AUDIT_INST_VER_NOT_VULN, "VMware " + esx, ver, build);
if (build < fix)
{
report = '\n Version : ' + esx + " " + ver +
'\n Installed build : ' + build +
'\n Fixed build : ' + fix +
'\n';
security_report_v4(port:port, extra:report, severity:SECURITY_HOLE);
exit(0);
}
else
audit(AUDIT_INST_VER_NOT_VULN, "VMware " + esx, ver, build);
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2006-6304
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-4567
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-0590
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1377
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1378
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1379
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1384
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1386
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-1387
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2409
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2695
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2908
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2910
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3080
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3228
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3286
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3547
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3556
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3563
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3612
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3613
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3620
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3621
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3726
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3736
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3889
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-3939
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4020
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4021
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4138
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4141
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4212
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4272
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4355
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4536
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4537
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-4538
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0001
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0097
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0290
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0382
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0426
cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2010-0427
lists.vmware.com/pipermail/security-announce/2010/000099.html
www.vmware.com/security/advisories/VMSA-2010-0009