Vulnerabilities > CVE-2014-6364 - Use After Free Remote Code Execution vulnerability in Microsoft Office 2007/2010/2013

047910
CVSS 9.3 - CRITICAL
Attack vector
NETWORK
Attack complexity
MEDIUM
Privileges required
NONE
Confidentiality impact
COMPLETE
Integrity impact
COMPLETE
Availability impact
COMPLETE
network
microsoft
critical
nessus

Summary

Use-after-free vulnerability in Microsoft Office 2007 SP3; 2010 SP2; 2013 Gold, SP1, and SP2; and 2013 RT Gold and SP1 allows remote attackers to execute arbitrary code via a crafted Office document, aka "Microsoft Office Component Use After Free Vulnerability." <a href="http://cwe.mitre.org/data/definitions/416.html">CWE-416: Use After Free</a>

Vulnerable Configurations

Part Description Count
Application
Microsoft
8

Msbulletin

bulletin_idMS14-082
bulletin_url
date2014-12-09T00:00:00
impactRemote Code Execution
knowledgebase_id3017349
knowledgebase_url
severityImportant
titleVulnerability in Microsoft Office Could Allow Remote Code Execution

Nessus

NASL familyWindows : Microsoft Bulletins
NASL idSMB_NT_MS14-082.NASL
descriptionThe remote Windows host is running a version of Microsoft Office that is affected by a remote code execution vulnerability due to a use-after-free memory issue caused by Microsoft Word not properly handling objects in memory. A remote attacker can exploit this vulnerability by convincing a user to open a specially crafted Office file, resulting in execution of arbitrary code in the context of the current user.
last seen2020-06-01
modified2020-06-02
plugin id79831
published2014-12-09
reporterThis script is Copyright (C) 2014-2018 and is owned by Tenable, Inc. or an Affiliate thereof.
sourcehttps://www.tenable.com/plugins/nessus/79831
titleMS14-082: Vulnerability in Microsoft Office Could Allow Remote Code Execution (3017349)
code
#
# (C) Tenable Network Security, Inc.
#

include("compat.inc");

if (description)
{
  script_id(79831);
  script_version("1.11");
  script_cvs_date("Date: 2018/11/15 20:50:31");

  script_cve_id("CVE-2014-6364");
  script_bugtraq_id(71474);
  script_xref(name:"MSFT", value:"MS14-082");
  script_xref(name:"MSKB", value:"2596927");
  script_xref(name:"MSKB", value:"2553154");
  script_xref(name:"MSKB", value:"2726958");
  script_xref(name:"IAVA", value:"2014-A-0187");

  script_name(english:"MS14-082: Vulnerability in Microsoft Office Could Allow Remote Code Execution (3017349)");
  script_summary(english:"Checks the version of FM20.dll.");

  script_set_attribute(attribute:"synopsis", value:
"The remote Windows host is affected by a remote code execution
vulnerability.");
  script_set_attribute(attribute:"description", value:
"The remote Windows host is running a version of Microsoft Office that
is affected by a remote code execution vulnerability due to a
use-after-free memory issue caused by Microsoft Word not properly
handling objects in memory. A remote attacker can exploit this
vulnerability by convincing a user to open a specially crafted Office
file, resulting in execution of arbitrary code in the context of the
current user.");
  script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2014/ms14-082");
  script_set_attribute(attribute:"solution", value:
"Microsoft has released a set of patches for Microsoft Office 2007,
2010, and 2013.");
  script_set_cvss_base_vector("CVSS2#AV:N/AC:M/Au:N/C:C/I:C/A:C");
  script_set_cvss_temporal_vector("CVSS2#E:U/RL:OF/RC:C");
  script_set_cvss3_base_vector("CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H");
  script_set_cvss3_temporal_vector("CVSS:3.0/E:U/RL:O/RC:C");
  script_set_attribute(attribute:"exploitability_ease", value:"No known exploits are available");
  script_set_attribute(attribute:"exploit_available", value:"false");

  script_set_attribute(attribute:"vuln_publication_date", value:"2014/12/09");
  script_set_attribute(attribute:"patch_publication_date", value:"2014/12/09");
  script_set_attribute(attribute:"plugin_publication_date", value:"2014/12/09");

  script_set_attribute(attribute:"plugin_type", value:"local");
  script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office");
  script_set_attribute(attribute:"stig_severity", value:"II");
  script_end_attributes();

  script_category(ACT_GATHER_INFO);
  script_family(english:"Windows : Microsoft Bulletins");

  script_copyright(english:"This script is Copyright (C) 2014-2018 and is owned by Tenable, Inc. or an Affiliate thereof.");

  script_dependencies("office_installed.nasl", "smb_hotfixes.nasl", "ms_bulletin_checks_possible.nasl");
  script_require_keys("SMB/MS_Bulletin_Checks/Possible");
  script_require_ports(139, 445, 'Host/patch_management_checks');

  exit(0);
}

include("audit.inc");
include("smb_func.inc");
include("smb_hotfixes.inc");
include("smb_hotfixes_fcheck.inc");
include("misc_func.inc");

get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible");

bulletin = 'MS14-082';
kbs = make_list("2596927", "2553154", "2726958");

if (get_kb_item("Host/patch_management_checks")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE);

get_kb_item_or_exit('SMB/Registry/Enumerated');

share = hotfix_get_systemdrive(as_share:TRUE, exit_on_fail:TRUE);
if (!is_accessible_share(share:share)) audit(AUDIT_SHARE_FAIL, share);

office_ver = hotfix_check_office_version();
if (isnull(office_ver)) audit(AUDIT_NOT_INST, "Microsoft Office");

vuln = 0;

# Office 2013 SP0 or SP1
if (office_ver['15.0'])
{
  office_sp = get_kb_item("SMB/Office/2013/SP");
  bitness = get_kb_item("SMB/Office/15.0/Bitness");
  if (!isnull(office_sp) && (office_sp == 0 || office_sp == 1))
  {
    if (!isnull(bitness) && bitness == 'x64')
    {
      if (
        hotfix_is_vulnerable(file:"FM20.DLL", version:"15.0.4675.1001", min_version:"15.0.0.0", dir:"\System32", bulletin:bulletin, kb:"2726958")
      ) vuln++;
    }
    else if (!isnull(bitness) && bitness == 'x86')
    {
      if (
        hotfix_is_vulnerable(file:"FM20.DLL", arch:"x64", version:"15.0.4675.1001", min_version:"15.0.0.0", dir:"\SysWOW64", bulletin:bulletin, kb:"2726958") ||
        hotfix_is_vulnerable(file:"FM20.DLL", arch:"x86", version:"15.0.4675.1001", min_version:"15.0.0.0", dir:"\System32", bulletin:bulletin, kb:"2726958")
      ) vuln++;
    }
  }
}

# Office 2010 SP2
if (office_ver['14.0'])
{
  office_sp = get_kb_item("SMB/Office/2010/SP");
  bitness = get_kb_item("SMB/Office/14.0/Bitness");
  if (!isnull(office_sp) && office_sp == 2)
  {
    if (!isnull(bitness) && bitness == 'x64')
    {
      if (
        hotfix_is_vulnerable(file:"FM20.DLL", version:"14.0.7140.5001", min_version:"14.0.0.0", dir:"\System32", bulletin:bulletin, kb:"2553154")
      ) vuln++;
    }
    else if (!isnull(bitness) && bitness == 'x86')
    {
      if (
        hotfix_is_vulnerable(file:"FM20.DLL", arch:"x64", version:"14.0.7140.5001", min_version:"14.0.0.0", dir:"\SysWOW64", bulletin:bulletin, kb:"2553154") ||
        hotfix_is_vulnerable(file:"FM20.DLL", arch:"x86", version:"14.0.7140.5001", min_version:"14.0.0.0", dir:"\System32", bulletin:bulletin, kb:"2553154")
      ) vuln++;
    }
  }
}

# Office 2007 SP3
if (office_ver['12.0'])
{
  office_sp = get_kb_item("SMB/Office/2007/SP");
  if (!isnull(office_sp) && office_sp == 3)
  {
    if (
      hotfix_is_vulnerable(file:"FM20.dll", arch:"x86", version:"12.0.6713.5000", dir:"\System32", bulletin:bulletin, kb:"2596927") ||
      hotfix_is_vulnerable(file:"FM20.dll", arch:"x64", version:"12.0.6713.5000", dir:"\SysWOW64", bulletin:bulletin, kb:"2596927")
    ) vuln++;
  }
}

if (vuln)
{
  set_kb_item(name:'SMB/Missing/'+bulletin, value:TRUE);
  hotfix_security_hole();
  hotfix_check_fversion_end();
  exit(0);
}
else
{
  hotfix_check_fversion_end();
  audit(AUDIT_HOST_NOT, 'affected');
}