Vulnerabilities > CVE-2008-3006 - Resource Management Errors vulnerability in Microsoft products

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-399
critical
nessus

Summary

Microsoft Office Excel 2000 SP3, 2002 SP3, 2003 SP2 and SP3, and 2007 Gold and SP1; Office Excel Viewer 2003 Gold and SP3; Office Excel Viewer; Office Compatibility Pack 2007 Gold and SP1; Office SharePoint Server 2007 Gold and SP1; and Office 2004 and 2008 for Mac do not properly parse Country record values when loading Excel files, which allows remote attackers to execute arbitrary code via a crafted Excel file, aka the "Excel Record Parsing Vulnerability." This vulnerability has multiple attack vectors and CIA impact. Please review the following guidance from Microsoft for more information: An attack against a user's local Excel client can result in remote code execution. An attacker who successfully exploited this vulnerability could take complete control of an affected system remotely. An attacker could then install programs or view, change, or delete data; or create new accounts with full user rights. An attack against a Microsoft Office SharePoint Server 2007 site can result in elevation of privilege. An attacker who successfully exploited this vulnerability could gain an elevation of privilege within SharePoint server, as opposed to elevation of privilege within the workstation or server environment. In an attack against a SharePoint site, an attacker would first need an account on the SharePoint site with sufficient rights to upload a specially crafted Excel file and then create a web part using the file on the SharePoint site.

Common Weakness Enumeration (CWE)

Nessus

  • NASL familyMacOS X Local Security Checks
    NASL idMACOSX_MS_OFFICE_AUG2008.NASL
    descriptionThe remote Mac OS X host is running a version of Microsoft Office that is affected by several vulnerabilities. If an attacker can trick a user on the affected host into opening a specially crafted Excel or PowerPoint file, these issues could be leveraged to execute arbitrary code subject to the user
    last seen2020-03-18
    modified2010-10-20
    plugin id50058
    published2010-10-20
    reporterThis script is Copyright (C) 2010-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/50058
    titleMS08-043 / MS08-051: Vulnerabilities in Microsoft Could Allow Remote Code Execution (954066 / 949785) (Mac OS X)
    code
    #TRUSTED 4e2b48695f9a51bbff8dc924e9535b83695f9c951de474ffbeb0e78a50a6c4866b5acf9cf387235efd19b20682505033bf860c2bc24e0c94c7fef763135c8f2d72852f8925faf33add695049d4119def762ea1c27dda67964f546ff3499a4c5fc5569a91c7dec6ffbc77ebbc14bcb02130f0172d96773458fed56027770a87cfd8b5c8f2bb4ac6d654c90c24fdf6997fa026aeab72c3abd561c1bdce3a69ef141bc91874730aadac15babd1aca6e6da4e38ce6487b1452f1a4f9f5749fe3e845a8ae0257a7493acc90be9dcc41948e29b54fd809c6f7da6e820f52760402d3c533ab3824ba9c8641b1aed0962fa60e2e90ac68ad0165ed57b9218c4d2f9a3660d7ab2feaad182d596fe3f25729ee4d360b9c33d9c4c77e572520c8f3995337ea87ae868b1e1d32e9944872071998e76c0f92e52dbaa4744eff0058a61eb7a61e2f56afd90e502ae233ac61543b2fc10597a15f6310be8b73e4aebf7cb48b8375c56d52c664c254abaaac4b755ecfa836fe7772a48113b8701d68f84d4f514ec2db03bf2481390e5fbfbd06aa54b80853fd76b123cd843d40bb695abdbbc80419b09289003db8e951dee7b65f45151fed516cf208017147dc1f01cf0d85d7bb81de8b45f16881513e2eebec466a4429b0bb1d342abc09279a5b226a27c08b904eef7e7458cb47bbabf59a373a56b34d72bfe62fdf9df1228243215f20fdfcb458
    #
    # (C) Tenable Network Security, Inc.
    #
    
    
    include("compat.inc");
    
    
    if (description)
    {
      script_id(50058);
      script_version("1.18");
      script_set_attribute(attribute:"plugin_modification_date", value:"2018/07/14");
    
      script_cve_id(
        "CVE-2008-1455",
        "CVE-2008-3003",
        "CVE-2008-3004",
        "CVE-2008-3005",
        "CVE-2008-3006"
      );
      script_bugtraq_id(30579, 30638, 30639, 30640, 30641);
      script_xref(name:"MSFT", value:"MS08-043");
      script_xref(name:"MSFT", value:"MS08-051");
      script_xref(name:"MSKB", value:"949785");
      script_xref(name:"MSKB", value:"954066");
      script_xref(name:"MSKB", value:"956343");
      script_xref(name:"MSKB", value:"956344");
    
      script_name(english:"MS08-043 / MS08-051: Vulnerabilities in Microsoft Could Allow Remote Code Execution (954066 / 949785) (Mac OS X)");
      script_summary(english:"Check version of Microsoft Office");
    
      script_set_attribute(attribute:"synopsis", value:
    "An application installed on the remote Mac OS X host is affected by
    multiple remote code execution vulnerabilities.");
      script_set_attribute(attribute:"description", value:
    "The remote Mac OS X host is running a version of Microsoft Office that
    is affected by several vulnerabilities.
    
    If an attacker can trick a user on the affected host into opening a
    specially crafted Excel or PowerPoint file, these issues could be
    leveraged to execute arbitrary code subject to the user's privileges.");
      script_set_attribute(attribute:"see_also", value:"http://technet.microsoft.com/en-us/security/bulletin/ms08-043");
      script_set_attribute(attribute:"see_also", value:"http://technet.microsoft.com/en-us/security/bulletin/ms08-051");
      script_set_attribute(attribute:"solution", value:
    "Microsoft has released a set of patches for Office 2004 for Mac and
    Office 2008 for Mac.");
      script_set_cvss_base_vector("CVSS2#AV:N/AC:H/Au:N/C:C/I:C/A:C");
      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_cwe_id(399);
    
      script_set_attribute(attribute:"vuln_publication_date", value:"2008/08/12");
      script_set_attribute(attribute:"patch_publication_date", value:"2008/08/12");
      script_set_attribute(attribute:"plugin_publication_date", value:"2010/10/20");
    
      script_set_attribute(attribute:"plugin_type", value:"local");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office:2004::mac");
      script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office:2008::mac");
      script_end_attributes();
    
      script_category(ACT_GATHER_INFO);
      script_family(english:"MacOS X Local Security Checks");
    
      script_copyright(english:"This script is Copyright (C) 2010-2018 Tenable Network Security, Inc.");
    
      script_dependencies("ssh_get_info.nasl");
      script_require_keys("Host/MacOSX/packages", "Host/uname");
    
      exit(0);
    }
    
    
    include("misc_func.inc");
    include("ssh_func.inc");
    include("macosx_func.inc");
    
    
    
    if(sshlib::get_support_level() >= sshlib::SSH_LIB_SUPPORTS_COMMANDS)
      enable_ssh_wrappers();
    else disable_ssh_wrappers();
    
    function exec(cmd)
    {
      local_var buf, ret;
    
      if (islocalhost())
        buf = pread(cmd:"/bin/bash", argv:make_list("bash", "-c", cmd));
      else
      {
        ret = ssh_open_connection();
        if (!ret) exit(1, "ssh_open_connection() failed.");
        buf = ssh_cmd(cmd:cmd);
        ssh_close_connection();
      }
      return buf;
    }
    
    
    packages = get_kb_item("Host/MacOSX/packages");
    if (!packages) exit(1, "The 'Host/MacOSX/packages' KB item is missing.");
    
    uname = get_kb_item("Host/uname");
    if (!uname) exit(1, "The 'Host/uname' KB item is missing.");
    if (!egrep(pattern:"Darwin.*", string:uname)) exit(1, "The host does not appear to be using the Darwin sub-system.");
    
    
    # Gather version info.
    info = '';
    installs = make_array();
    
    prod = 'Office 2008 for Mac';
    plist = "/Applications/Microsoft Office 2008/Office/MicrosoftComponentPlugin.framework/Versions/12/Resources/Info.plist";
    cmd =  'cat \'' + plist + '\' | ' +
      'grep -A 1 CFBundleShortVersionString | ' +
      'tail -n 1 | ' +
      'sed \'s/.*string>\\(.*\\)<\\/string>.*/\\1/g\'';
    version = exec(cmd:cmd);
    if (version && version =~ "^[0-9]+\.")
    {
      version = chomp(version);
      if (version !~ "^12\.") exit(1, "Failed to get the version for "+prod+" - '"+version+"'.");
    
      installs[prod] = version;
    
      ver = split(version, sep:'.', keep:FALSE);
      for (i=0; i<max_index(ver); i++)
        ver[i] = int(ver[i]);
    
      fixed_version = '12.1.2';
      fix = split(fixed_version, sep:'.', keep:FALSE);
      for (i=0; i<max_index(fix); i++)
        fix[i] = int(fix[i]);
    
      for (i=0; i<max_index(fix); i++)
        if ((ver[i] < fix[i]))
        {
          info +=
            '\n  Product           : ' + prod +
            '\n  Installed version : ' + version +
            '\n  Fixed version     : ' + fixed_version + '\n';
          break;
        }
        else if (ver[i] > fix[i])
          break;
    }
    
    prod = 'Office 2004 for Mac';
    cmd = GetCarbonVersionCmd(file:"Microsoft Component Plugin", path:"/Applications/Microsoft Office 2004/Office");
    version = exec(cmd:cmd);
    if (version && version =~ "^[0-9]+\.")
    {
      version = chomp(version);
      if (version !~ "^11\.") exit(1, "Failed to get the version for "+prod+" - '"+version+"'.");
    
      installs[prod] = version;
    
      ver = split(version, sep:'.', keep:FALSE);
      for (i=0; i<max_index(ver); i++)
        ver[i] = int(ver[i]);
    
      fixed_version = '11.5.1';
      fix = split(fixed_version, sep:'.', keep:FALSE);
      for (i=0; i<max_index(fix); i++)
        fix[i] = int(fix[i]);
    
      for (i=0; i<max_index(fix); i++)
        if ((ver[i] < fix[i]))
        {
          info +=
            '\n  Product           : ' + prod +
            '\n  Installed version : ' + version +
            '\n  Fixed version     : ' + fixed_version + '\n';
          break;
        }
        else if (ver[i] > fix[i])
          break;
    }
    
    
    # Report findings.
    if (info)
    {
      gs_opt = get_kb_item("global_settings/report_verbosity");
      if (gs_opt && gs_opt != 'Quiet') security_hole(port:0, extra:info);
      else security_hole(0);
    
      exit(0);
    }
    else
    {
      if (max_index(keys(installs)) == 0) exit(0, "Office for Mac is not installed.");
      else
      {
        msg = 'The host has ';
        foreach prod (sort(keys(installs)))
          msg += prod + ' ' + installs[prod] + ' and ';
        msg = substr(msg, 0, strlen(msg)-1-strlen(' and '));
    
        msg += ' installed and thus is not affected.';
    
        exit(0, msg);
      }
    }
    
  • NASL familyWindows : Microsoft Bulletins
    NASL idSMB_NT_MS08-043.NASL
    descriptionThe remote host is running a version of Microsoft Excel that is subject to various flaws that could allow arbitrary code to be run. An attacker may use this to execute arbitrary code on this host. To succeed, the attacker would have to send a rogue file to a user of the remote computer and have it open it with Microsoft Excel.
    last seen2020-06-01
    modified2020-06-02
    plugin id33872
    published2008-08-13
    reporterThis script is Copyright (C) 2008-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/33872
    titleMS08-043: Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (954066)
    code
    #
    # (C) Tenable Network Security, Inc.
    #
    
    include("compat.inc");
    
    if (description)
    {
     script_id(33872);
     script_version("1.33");
     script_cvs_date("Date: 2018/11/15 20:50:30");
    
     script_cve_id(
       "CVE-2008-3003",
       "CVE-2008-3004",
       "CVE-2008-3005",
       "CVE-2008-3006"
     );
     script_bugtraq_id(30638, 30639, 30640, 30641);
     script_xref(name:"MSFT", value:"MS08-043");
     script_xref(name:"MSKB", value:"951546");
     script_xref(name:"MSKB", value:"951548");
     script_xref(name:"MSKB", value:"951551");
     script_xref(name:"MSKB", value:"951582");
     script_xref(name:"MSKB", value:"951589");
     script_xref(name:"MSKB", value:"955472");
    
     script_name(english:"MS08-043: Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (954066)");
     script_summary(english:"Determines the version of Excel.exe");
    
     script_set_attribute(attribute:"synopsis", value:
    "Arbitrary code can be executed on the remote host through Microsoft
    Excel.");
     script_set_attribute(attribute:"description", value:
    "The remote host is running a version of Microsoft Excel that is subject
    to various flaws that could allow arbitrary code to be run.
    
    An attacker may use this to execute arbitrary code on this host.
    
    To succeed, the attacker would have to send a rogue file to a user of
    the remote computer and have it open it with Microsoft Excel.");
     script_set_attribute(attribute:"see_also", value:"https://docs.microsoft.com/en-us/security-updates/SecurityBulletins/2008/ms08-043");
     script_set_attribute(attribute:"solution", value:
    "Microsoft has released a set of patches for Excel 2000, XP, 2003 and
    2007.");
     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: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_cwe_id(20, 399);
    
     script_set_attribute(attribute:"vuln_publication_date", value:"2008/08/12");
     script_set_attribute(attribute:"patch_publication_date", value:"2008/08/12");
     script_set_attribute(attribute:"plugin_publication_date", value:"2008/08/13");
    
     script_set_attribute(attribute:"plugin_type", value:"local");
     script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office");
     script_end_attributes();
    
     script_category(ACT_GATHER_INFO);
    
     script_copyright(english:"This script is Copyright (C) 2008-2018 Tenable Network Security, Inc.");
     script_family(english:"Windows : Microsoft Bulletins");
    
     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_hotfixes_fcheck.inc");
    include("smb_hotfixes.inc");
    include("misc_func.inc");
    include("audit.inc");
    
    get_kb_item_or_exit("SMB/MS_Bulletin_Checks/Possible");
    
    bulletin = 'MS08-043';
    kbs = make_list("951546", "951548", "951551", "951582", "951589", "955472");
    if (get_kb_item("Host/patch_management_checks")) hotfix_check_3rd_party(bulletin:bulletin, kbs:kbs, severity:SECURITY_HOLE);
    port = get_kb_item("SMB/transport");
    
    
    
    #
    # Excel
    #
    vuln = 0;
    list = get_kb_list("SMB/Office/Excel/*/ProductPath");
    if (!isnull(list))
    {
      foreach item (keys(list))
      {
        v = item - 'SMB/Office/Excel/' - '/ProductPath';
        if(ereg(pattern:"^9\..*", string:v))
        {
          office_sp = get_kb_item("SMB/Office/2000/SP");
          if (!isnull(office_sp) && office_sp == 3)
          {
            # Excel 2000 - fixed in 9.0.0.8971
            sub =  ereg_replace(pattern:"^9\.00?\.00?\.([0-9]*)$", string:v, replace:"\1");
            if(sub != v && int(sub) < 8971 ) {
              vuln++;
              hotfix_add_report(bulletin:bulletin, kb:'951582');
            }
          }
        }
        else if(ereg(pattern:"^10\..*", string:v))
        {
          # Excel XP - fixed in 10.0.6845.0
          office_sp = get_kb_item("SMB/Office/XP/SP");
          if (!isnull(office_sp) && office_sp == 3)
          {
            middle =  ereg_replace(pattern:"^10\.0\.([0-9]*)\.[0-9]*$", string:v, replace:"\1");
            if(middle != v && int(middle) < 6845 ) {
              vuln++;
              hotfix_add_report(bulletin:bulletin, kb:'951551');
            }
          }
        }
        else if(ereg(pattern:"^11\..*", string:v))
        {
          # Excel 2003 - fixed in 11.0.8220.0
          office_sp = get_kb_item("SMB/Office/2003/SP");
          if (!isnull(office_sp) && (office_sp == 2 || office_sp == 3))
          {
            middle =  ereg_replace(pattern:"^11\.0\.([0-9]*)\.[0-9]*$", string:v, replace:"\1");
            if(middle != v && int(middle) < 8220 ) {
              vuln++;
              hotfix_add_report(bulletin:bulletin, kb:'951548');
            }
          }
        }
        else if(ereg(pattern:"^12\..*", string:v))
        {
          # Excel 2007 - fixed in 12.0.6323.5000
          office_sp = get_kb_item("SMB/Office/2007/SP");
          if (!isnull(office_sp) && (office_sp == 0 || office_sp == 1))
          {
            middle =  ereg_replace(pattern:"^12\.0\.([0-9]*)\.[0-9]*$", string:v, replace:"\1");
            low =  ereg_replace(pattern:"^12\.0\.[0-9]*\.([0-9]*)$", string:v, replace:"\1");
            if(middle != v && ( int(middle) < 6323 ) ) {
              vuln++;
              hotfix_add_report(bulletin:bulletin, kb:'951546');
            }
          }
        }
      }
    }
    
    
    #
    # Excel Viever
    #
    list = get_kb_list("SMB/Office/ExcelViewer/*/ProductPath");
    if (!isnull(list))
    {
      foreach item (keys(list))
      {
        v = item - 'SMB/Office/ExcelViewer/' - '/ProductPath';
        if (v && ereg(pattern:"^11\..*", string:v))
        {
          # Excel Viwever 2003 - fixed in 11.0.8220.0
          middle =  ereg_replace(pattern:"^11\.0\.([0-9]*)\.[0-9]*$", string:v, replace:"\1");
          if(middle != v && int(middle) < 8220 ) {
            vuln++;
            hotfix_add_report(bulletin:bulletin, kb:'951589');
          }
        }
        else if (v && ereg(pattern:"^12\..*", string:v))
        {
          # Excel Viwever 2003 - fixed in 12.0.6324.5000
          middle =  ereg_replace(pattern:"^12\.0\.([0-9]*)\.[0-9]*$", string:v, replace:"\1");
          if(middle != v && int(middle) < 6324) {
            vuln++;
            hotfix_add_report(bulletin:bulletin, kb:'955472');
          }
        }
      }
    }
    if (vuln)
    {
      set_kb_item(name:"SMB/Missing/"+bulletin, value:TRUE);
      hotfix_security_hole();
      exit(0);
    }
    else audit(AUDIT_HOST_NOT, 'affected');
    

Oval

accepted2014-06-30T04:11:02.944-04:00
classvulnerability
contributors
  • nameSudhir Gandhe
    organizationSecure Elements, Inc.
  • nameChandan S
    organizationSecPod Technologies
  • nameShane Shaffer
    organizationG2, Inc.
  • nameJosh Turpin
    organizationSymantec Corporation
  • nameMaria Kedovskaya
    organizationALTX-SOFT
  • nameMaria Mikhno
    organizationALTX-SOFT
  • nameMaria Mikhno
    organizationALTX-SOFT
definition_extensions
  • commentMicrosoft Excel 2000 is installed
    ovaloval:org.mitre.oval:def:758
  • commentMicrosoft Excel 2002 is installed
    ovaloval:org.mitre.oval:def:473
  • commentMicrosoft Excel 2003 is installed
    ovaloval:org.mitre.oval:def:764
  • commentMicrosoft Excel 2007 is installed
    ovaloval:org.mitre.oval:def:1745
  • commentMicrosoft Office Compatibility Pack is installed
    ovaloval:org.mitre.oval:def:1853
  • commentMicrosoft Office SharePoint Server 2007 is installed.
    ovaloval:org.mitre.oval:def:2313
  • commentMicrosoft Excel Viewer 2003 is installed
    ovaloval:org.mitre.oval:def:439
  • commentMicrosoft Excel Viewer 2007 is installed
    ovaloval:org.mitre.oval:def:6006
descriptionMicrosoft Office Excel 2000 SP3, 2002 SP3, 2003 SP2 and SP3, and 2007 Gold and SP1; Office Excel Viewer 2003 Gold and SP3; Office Excel Viewer; Office Compatibility Pack 2007 Gold and SP1; Office SharePoint Server 2007 Gold and SP1; and Office 2004 and 2008 for Mac do not properly parse Country record values when loading Excel files, which allows remote attackers to execute arbitrary code via a crafted Excel file, aka the "Excel Record Parsing Vulnerability."
familywindows
idoval:org.mitre.oval:def:5561
statusaccepted
submitted2008-08-13T09:28:00
titleExcel Record Parsing Vulnerability
version32

Seebug

bulletinFamilyexploit
descriptionBUGTRAQ ID: 30640 CVE(CAN) ID: CVE-2008-3006 Excel是Microsoft Office办公软件套件中的电子表格工具。 Excel没有正确地处理BIFF文件格式,在处理文件中的畸形Country(0x8c)记录时可能会触发内存破坏,导致以当前登录用户的权限执行任意指令。 Microsoft Excel Viewer 2003 SP3 Microsoft Excel Viewer 2003 Microsoft Excel Viewer Microsoft Excel 2007 SP1 Microsoft Excel 2007 Microsoft Excel 2003 SP3 Microsoft Excel 2003 SP2 Microsoft Excel 2002 SP3 Microsoft Excel 2000 SP3 Microsoft Office 2008 for Mac Microsoft Office 2004 for Mac Microsoft Office SharePoint Server 2007 SP1 Microsoft Office SharePoint Server 2007 临时解决方法: * 不要打开或保存从不受信任来源或从受信任来源意外收到的文档。 厂商补丁: Microsoft --------- Microsoft已经为此发布了一个安全公告(MS08-043)以及相应补丁: MS08-043:Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (954066) 链接:<a href=http://www.microsoft.com/technet/security/Bulletin/MS08-043.mspx?pf=true target=_blank>http://www.microsoft.com/technet/security/Bulletin/MS08-043.mspx?pf=true</a>
idSSV:3846
last seen2017-11-19
modified2008-08-15
published2008-08-15
reporterRoot
titleMicrosoft Excel COUNTRY记录内存破坏漏洞(MS08-043)