Vulnerabilities > CVE-2012-2524 - Buffer Errors vulnerability in Microsoft Office 2007/2010

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
CWE-119
critical
nessus

Summary

Microsoft Office 2007 SP2 and SP3 and 2010 SP1 allows remote attackers to execute arbitrary code or cause a denial of service (memory corruption) via a crafted Computer Graphics Metafile (CGM) file, aka "CGM File Format Memory Corruption Vulnerability."

Vulnerable Configurations

Part Description Count
Application
Microsoft
3

Common Attack Pattern Enumeration and Classification (CAPEC)

  • Buffer Overflow via Environment Variables
    This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
  • Overflow Buffers
    Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
  • Client-side Injection-induced Buffer Overflow
    This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
  • Filter Failure through Buffer Overflow
    In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
  • MIME Conversion
    An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.

Msbulletin

bulletin_idMS12-057
bulletin_url
date2012-08-14T00:00:00
impactRemote Code Execution
knowledgebase_id2731879
knowledgebase_url
severityImportant
titleVulnerabilities in Microsoft Office Could Allow for Remote Code Execution

Nessus

NASL familyWindows : Microsoft Bulletins
NASL idSMB_NT_MS12-057.NASL
descriptionThe remote Windows host has a version of Microsoft Office that is potentially affected by a remote code execution vulnerability. Specially crafted Computer Graphics Metafile (CGM) graphics files can be used to exploit this vulnerability and allow an attacker to take control of an affected system.
last seen2020-06-01
modified2020-06-02
plugin id61532
published2012-08-15
reporterThis script is Copyright (C) 2012-2018 Tenable Network Security, Inc.
sourcehttps://www.tenable.com/plugins/nessus/61532
titleMS12-057: Vulnerabilities in Microsoft Office Could Allow Remote Code Execution (2731879)
code
#
# (C) Tenable Network Security, Inc.
#


include("compat.inc");


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

  script_cve_id("CVE-2012-2524");
  script_bugtraq_id(54876);
  script_xref(name:"MSFT", value:"MS12-057");
  script_xref(name:"IAVB", value:"2012-B-0075");
  script_xref(name:"MSKB", value:"2553260");
  script_xref(name:"MSKB", value:"2589322");
  script_xref(name:"MSKB", value:"2596615");
  script_xref(name:"MSKB", value:"2596754");
  script_xref(name:"MSKB", value:"2687501");
  script_xref(name:"MSKB", value:"2687510");

  script_name(english:"MS12-057: Vulnerabilities in Microsoft Office Could Allow Remote Code Execution (2731879)");
  script_summary(english:"Checks versions of mso.dll and msconv97.dll");

  script_set_attribute(
    attribute:"synopsis",
    value:
"Arbitrary code can be executed on the remote host through Microsoft
Office."
  );
  script_set_attribute(
    attribute:"description",
    value:
"The remote Windows host has a version of Microsoft Office that is
potentially affected by a remote code execution vulnerability.
Specially crafted Computer Graphics Metafile (CGM) graphics files can be
used to exploit this vulnerability and allow an attacker to take control
of an affected system."
  );
  script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2012/ms12-057");
  script_set_attribute(attribute:"solution", value:"Microsoft has released a set of patches for Office 2007 and 2010.");
  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_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:"2012/08/14");
  script_set_attribute(attribute:"patch_publication_date", value:"2012/08/14");
  script_set_attribute(attribute:"plugin_publication_date", value:"2012/08/15");

  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) 2012-2018 Tenable Network Security, Inc.");

  script_dependencies("smb_nt_ms02-031.nasl", "office_installed.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("smb_func.inc");
include("smb_hotfixes.inc");
include("smb_hotfixes_fcheck.inc");
include("misc_func.inc");
include("audit.inc");

get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible");

bulletin = 'MS12-057';
kbs = make_list("2553260", "2589322", "2596615", "2596754", "2687501", "2687510");
if (get_kb_item("Host/patch_management_checks")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE);


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

common = hotfix_get_commonfilesdir();
if (!common) exit(1, "hotfix_get_commonfilesdir() failed.");

share = ereg_replace(pattern:"^([A-Za-z]):.*", replace:"\1$", string:common);
if (!is_accessible_share(share:share)) audit(AUDIT_SHARE_FAIL, share);

vuln = FALSE;
# Office 2010
if (office_vers["14.0"])
{
  office_sp = get_kb_item("SMB/Office/2010/SP");
  if (!isnull(office_sp) && office_sp == 1)
  {
    x86_path = common + "\Microsoft Shared\Office14";
    x64_path = hotfix_get_programfilesdirx86() + "\Common Files\Microsoft Shared\Office14";

    if (
      hotfix_is_vulnerable(file:"Mso.dll", version:"14.0.6123.5001", min_version:'14.0.0.0', path:x86_path, bulletin:bulletin, kb:"2687501") ||
      hotfix_is_vulnerable(file:"Mso.dll", version:"14.0.6123.5001", min_version:'14.0.0.0', path:x64_path, bulletin:bulletin, kb:"2687501") ||

      hotfix_is_vulnerable(file:"Msconv97.dll", version:"2010.1400.6123.5000", min_version:'2010.0.0.0', path:x86_path, bulletin:bulletin, kb:"2687510") ||
      hotfix_is_vulnerable(file:"Msconv97.dll", version:"2010.1400.6123.5000", min_version:'2010.0.0.0', path:x64_path, bulletin:bulletin, kb:"2687510")
    ) vuln = TRUE;
  }
}
# Office 2007
if (office_vers["12.0"])
{
  office_sp = get_kb_item("SMB/Office/2007/SP");
  if (!isnull(office_sp) && (office_sp == 2 || office_sp == 3))
  {
    x86_path = common + "\Microsoft Shared\Office12";
    x64_path = hotfix_get_programfilesdirx86() + "\Common Files\Microsoft Shared\Office12";

    if (
      hotfix_is_vulnerable(file:"Mso.dll", version:"12.0.6662.5000", min_version:'12.0.0.0', path:x86_path, bulletin:bulletin, kb:"2596615") ||
      hotfix_is_vulnerable(file:"Mso.dll", version:"12.0.6662.5000", min_version:'12.0.0.0', path:x64_path, bulletin:bulletin, kb:"2596615") ||

      hotfix_is_vulnerable(file:"Msconv97.dll", version:"2006.1200.6662.5000", min_version:'2006.0.0.0', path:x86_path, bulletin:bulletin, kb:"2596754") ||
      hotfix_is_vulnerable(file:"Msconv97.dll", version:"2006.1200.6662.5000", min_version:'2006.0.0.0', path:x64_path, bulletin:bulletin, kb:"2596754")
    ) vuln = TRUE;
  }
}

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');
}

Oval

accepted2014-04-07T04:01:59.413-04:00
classvulnerability
contributors
  • nameSecPod Team
    organizationSecPod Technologies
  • namePradeep R B
    organizationSecPod Technologies
  • nameMaria Kedovskaya
    organizationALTX-SOFT
  • nameMaria Kedovskaya
    organizationALTX-SOFT
  • nameDragos Prisaca
    organizationG2, Inc.
  • nameMaria Mikhno
    organizationALTX-SOFT
definition_extensions
  • commentMicrosoft Office 2007 SP2 is installed
    ovaloval:org.mitre.oval:def:15607
  • commentMicrosoft Office 2007 SP3 is installed
    ovaloval:org.mitre.oval:def:15704
  • commentMicrosoft Office 2010 SP1 is installed
    ovaloval:org.mitre.oval:def:15198
descriptionMicrosoft Office 2007 SP2 and SP3 and 2010 SP1 allows remote attackers to execute arbitrary code or cause a denial of service (memory corruption) via a crafted Computer Graphics Metafile (CGM) file, aka "CGM File Format Memory Corruption Vulnerability."
familywindows
idoval:org.mitre.oval:def:15702
statusaccepted
submitted2012-08-20T18:19:45
titleCGM File Format Memory Corruption Vulnerability - MS12-057
version32

Seebug

bulletinFamilyexploit
descriptionBugtraq ID:54876 CVE ID:CVE-2012-2524 Microsoft Office是一款微软开发的流行的办公软件套件。 当解析CGM文件时存在内存破坏错误,允许攻击者构建嵌入恶意CGM图像内容的CGM文件或OFFICE文档,诱使应用程序解析,成功利用漏洞可以以应用程序上下文执行任意代码。 0 Microsoft Office 2010 (64-bit edition) SP1 Microsoft Office 2010 (32-bit edition) SP1 Microsoft Office 2007 SP3 Microsoft Office 2007 SP2 厂商解决方案 用户可参考如下供应商提供的安全公告获得补丁信息: http://technet.microsoft.com/en-us/security/bulletin/MS12-059
idSSV:60328
last seen2017-11-19
modified2012-08-18
published2012-08-18
reporterRoot
titleMicrosoft Office内存破坏 远程代码执行漏洞(CVE-2012-2524)