Vulnerabilities > CVE-2008-4019 - Integer Overflow or Wraparound vulnerability in Microsoft products
Attack vector
NETWORK Attack complexity
MEDIUM Privileges required
NONE Confidentiality impact
COMPLETE Integrity impact
COMPLETE Availability impact
COMPLETE Summary
Integer overflow in the REPT function in Microsoft Excel 2000 SP3, 2002 SP3, 2003 SP2 and SP3, and 2007 Gold and SP1; Office Excel Viewer 2003 SP3; Office Excel Viewer; Office Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats Gold and SP1; Office SharePoint Server 2007 Gold and SP1; Office 2004 and 2008 for Mac; and Open XML File Format Converter for Mac allows remote attackers to execute arbitrary code via an Excel file containing a formula within a cell, aka "Formula Parsing Vulnerability."
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 16 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Forced Integer Overflow This attack forces an integer variable to go out of range. The integer variable is often used as an offset such as size of memory allocation or similarly. The attacker would typically control the value of such variable and try to get it out of range. For instance the integer in question is incremented past the maximum possible value, it may wrap to become a very small, or negative number, therefore providing a very incorrect value which can lead to unexpected behavior. At worst the attacker can execute arbitrary code.
Nessus
NASL family MacOS X Local Security Checks NASL id MACOSX_MS08-057.NASL description The remote Mac OS X host is running a version of Microsoft Excel that is affected by several vulnerabilities. If an attacker can trick a user on the affected host into opening a specially crafted Excel file, these issues could be leveraged to execute arbitrary code subject to the user last seen 2019-10-28 modified 2010-10-20 plugin id 50059 published 2010-10-20 reporter This script is Copyright (C) 2010-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/50059 title MS08-057: Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (956416) (Mac OS X) code #TRUSTED 99e4cd4e92040c2e768ff07027cdfe96e25df6803cbdfc4fe0f2e49cf094affa32dc163e85922b9b8248df16112be10aa5854e671b06bc736e186786cbb2736d5f1362d16ab9ea2f0a4b0dc6920e96eb3a1acb9bca35e50f31658324c651cb5831083a247ef0e630802c42b0d9e7c63148a512647fa5bdb1291926de6300d0c9a27577c3745fe84f1ff783eb8eac98f6bbfcbdc841b1dc26cc3c9161552c5efeea41bc1813e161878be5290d5591e9bdd1aa29bd493b0b36e4ad8301b3f8dfbbc8f63240ffbfc6b43726e754f781075652c722b302d01c449f4648789ba64c1719b60f4afa3fa10b0a20dc3c9a7c42119ec7bf0fd9f7b08e865a59e168e8c5c6485852285a6ff8702d21f1766fbe8e2460e71dda5f28afe319e0c3724bb275f5643a0ffb5dbe5ccb8cad40c165160e2ae20d2f8f359e2c8387e3ae01942cdcb6b5c095c7b6c7bb832a77807e912ea5d90b1fe8e4f229ff2fc168d9683fd48997fe3cea3e97e041bd4e13ad5684b1933212d6b6c9cf5351a24fcf08120ccb7310261d879bc7fc1e807a49a01dcbb75eb1ea422931c34142ad0ffc5906a01906ec92084d37e5804ee15bad89033e8fff3923f1d5d0024f8f53da59a7ba8ecbfe9b41cc12a86335330667a9804a37db1f970d9194d68cced85b85c0b2a7dcc547a9c3e1aed7e97f9c386d867b1db1351584b6b402b1dfd04589fa8a44bc05ff700a # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(50059); script_version("1.17"); script_set_attribute(attribute:"plugin_modification_date", value:"2018/07/14"); script_cve_id("CVE-2008-3471", "CVE-2008-4019"); script_bugtraq_id(31705, 31706); script_xref(name:"MSFT", value:"MS08-057"); script_xref(name:"MSKB", value:"956416"); script_xref(name:"MSKB", value:"958267"); script_xref(name:"MSKB", value:"958304"); script_xref(name:"MSKB", value:"958312"); script_name(english:"MS08-057: Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (956416) (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 Excel that is affected by several vulnerabilities. If an attacker can trick a user on the affected host into opening a specially crafted Excel 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-057"); script_set_attribute(attribute:"solution", value: "Microsoft has released a set of patches for Office 2004 for Mac, Office 2008 for Mac, and Open XML File Format Converter for Mac."); 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_cwe_id(189); script_set_attribute(attribute:"vuln_publication_date", value:"2008/10/14"); script_set_attribute(attribute:"patch_publication_date", value:"2008/10/14"); 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_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:open_xml_file_format_converter:::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.3'; 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.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 = 'Open XML File Format Converter for Mac'; plist = "/Applications/Open XML Converter.app/Contents/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); installs[prod] = version; ver = split(version, sep:'.', keep:FALSE); for (i=0; i<max_index(ver); i++) ver[i] = int(ver[i]); fixed_version = '1.0.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 / Open XML File Format Converter 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 family Windows : Microsoft Bulletins NASL id SMB_NT_MS08-057.NASL description The remote host is running a version of Microsoft Excel that is subject to various flaws which 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 seen 2020-06-01 modified 2020-06-02 plugin id 34402 published 2008-10-15 reporter This script is Copyright (C) 2008-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/34402 title MS08-057: Microsoft Excel Multiple Method Remote Code Execution (956416) code # # (C) Tenable Network Security, Inc. # include("compat.inc"); if (description) { script_id(34402); script_version("1.33"); script_cvs_date("Date: 2018/11/15 20:50:30"); script_cve_id("CVE-2008-3477", "CVE-2008-3471", "CVE-2008-4019"); script_bugtraq_id(31702, 31705, 31706); script_xref(name:"MSFT", value:"MS08-057"); script_xref(name:"MSKB", value:"955461"); script_xref(name:"MSKB", value:"955464"); script_xref(name:"MSKB", value:"955466"); script_xref(name:"MSKB", value:"955468"); script_xref(name:"MSKB", value:"955470"); script_xref(name:"MSKB", value:"955935"); script_name(english:"MS08-057: Microsoft Excel Multiple Method Remote Code Execution (956416)"); 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 which 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-057"); 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: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_cwe_id(189, 399); script_set_attribute(attribute:"vuln_publication_date", value:"2008/10/14"); script_set_attribute(attribute:"patch_publication_date", value:"2008/10/14"); script_set_attribute(attribute:"plugin_publication_date", value:"2008/10/15"); script_set_attribute(attribute:"plugin_type", value:"local"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:excel"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:excel_viewer"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:sharepoint_server"); script_set_attribute(attribute:"cpe", value:"cpe:/a:microsoft:office_compatibility_pack"); 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-057'; kbs = make_list("955461", "955464", "955466", "955468", "955470", "955935"); 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)) { # Excel 2000 - fixed in 9.0.0.8972 office_sp = get_kb_item("SMB/Office/2000/SP"); if (!isnull(office_sp) && office_sp == 3) { sub = ereg_replace(pattern:"^9\.00?\.00?\.([0-9]*)$", string:v, replace:"\1"); if(sub != v && int(sub) < 8972 ) { vuln++; kb = '955461'; hotfix_add_report(bulletin:bulletin, kb:kb); } } } else if(ereg(pattern:"^10\..*", string:v)) { # Excel XP - fixed in 10.0.6847.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) < 6847 ) { vuln++; kb = '955464'; hotfix_add_report(bulletin:bulletin, kb:kb); } } } else if(ereg(pattern:"^11\..*", string:v)) { # Excel 2003 - fixed in 11.0.8231.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) < 8231 ) { vuln++; kb = '955466'; hotfix_add_report(bulletin:bulletin, kb:kb); } } } else if(ereg(pattern:"^12\..*", string:v)) { # Excel 2007 - fixed in 12.0.6324.5001 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) < 6324 || ( int(middle) == 6324 && int(low) < 5001) ) ) ) { vuln++; kb = '955470'; hotfix_add_report(bulletin:bulletin, kb:kb); } } } } } # # Excel Viewer # 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.8231.0 middle = ereg_replace(pattern:"^11\.0\.([0-9]*)\.[0-9]*$", string:v, replace:"\1"); if(middle != v && int(middle) < 8231 ) { vuln++; kb = '955935'; hotfix_add_report(bulletin:bulletin, kb:kb); } } else if (v && ereg(pattern:"^12\..*", string:v)) { # Excel Viwever 2003 - fixed in 12.0.6325.5000 middle = ereg_replace(pattern:"^12\.0\.([0-9]*)\.[0-9]*$", string:v, replace:"\1"); if(middle != v && int(middle) < 6325) { vuln++; kb = '955468'; hotfix_add_report(bulletin:bulletin, kb:kb); } } } } if (vuln) { set_kb_item(name:"SMB/Missing/"+bulletin, value:TRUE); hotfix_security_hole(); exit(0); } audit(AUDIT_HOST_NOT, 'affected');
Oval
accepted | 2014-06-30T04:11:15.169-04:00 | ||||||||||||||||||||||||||||||||
class | vulnerability | ||||||||||||||||||||||||||||||||
contributors |
| ||||||||||||||||||||||||||||||||
definition_extensions |
| ||||||||||||||||||||||||||||||||
description | Integer overflow in the REPT function in Microsoft Excel 2000 SP3, 2002 SP3, 2003 SP2 and SP3, and 2007 Gold and SP1; Office Excel Viewer 2003 SP3; Office Excel Viewer; Office Compatibility Pack for Word, Excel, and PowerPoint 2007 File Formats Gold and SP1; Office SharePoint Server 2007 Gold and SP1; Office 2004 and 2008 for Mac; and Open XML File Format Converter for Mac allows remote attackers to execute arbitrary code via an Excel file containing a formula within a cell, aka "Formula Parsing Vulnerability." | ||||||||||||||||||||||||||||||||
family | windows | ||||||||||||||||||||||||||||||||
id | oval:org.mitre.oval:def:6102 | ||||||||||||||||||||||||||||||||
status | accepted | ||||||||||||||||||||||||||||||||
submitted | 2008-10-14T13:33:00 | ||||||||||||||||||||||||||||||||
title | Formula Parsing Vulnerability | ||||||||||||||||||||||||||||||||
version | 32 |
Saint
bid | 31706 |
description | Microsoft Excel formula parsing integer overflow |
id | win_patch_excel2000,win_patch_excel2003,win_patch_excel2007,win_patch_excelcpack,win_patch_excelview,win_patch_excelxp,win_patch_office2004macver,win_patch_office2008macver,win_patch_sharepoint2007 |
osvdb | 49078 |
title | excel_formula_parsing |
type | client |
Seebug
bulletinFamily | exploit |
description | BUGTRAQ ID: 31706 CVE(CAN) ID: CVE-2008-4019 Excel是微软Office办公套件中的电子表格工具。 Excel的REPT函数在处理单元格中的公式时存在整数溢出漏洞。如果用户受骗打开了特意的.xsl文档的话,就可以触发这个溢出,导致执行任意指令。 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-057)以及相应补丁: MS08-057:Vulnerabilities in Microsoft Excel Could Allow Remote Code Execution (956416) 链接:<a href=http://www.microsoft.com/technet/security/Bulletin/MS08-057.mspx?pf=true target=_blank>http://www.microsoft.com/technet/security/Bulletin/MS08-057.mspx?pf=true</a> |
id | SSV:4251 |
last seen | 2017-11-19 |
modified | 2008-10-16 |
published | 2008-10-16 |
reporter | Root |
title | Microsoft Excel公式解析整数溢出漏洞(MS08-057) |
References
- http://secunia.com/advisories/32211
- http://www.securityfocus.com/bid/31706
- http://www.securitytracker.com/id?1021044
- http://www.us-cert.gov/cas/techalerts/TA08-288A.html
- http://marc.info/?l=bugtraq&m=122479227205998&w=2
- http://www.vupen.com/english/advisories/2008/2808
- https://exchange.xforce.ibmcloud.com/vulnerabilities/45581
- https://exchange.xforce.ibmcloud.com/vulnerabilities/45580
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6102
- https://docs.microsoft.com/en-us/security-updates/securitybulletins/2008/ms08-057