Apple Safari WebKit pcre_compile.cpp buffer overflow
| apple-safari-webkit-pcrecompile-bo (41859) |
Description:
Apple Safari WebKit is vulnerable to a heap-based buffer overflow, caused by improper bounds checking by pcre_compile.cpp. By persuading a victim to visit a Web site containing JavaScript regular expressions with large, nested repetition counts, an attacker could overflow a buffer and execute arbitrary code on the system with elevated privileges or cause the application to crash.
Platforms Affected:
- Apple, iPhone 1.0
- Apple, iPhone 1.1.1
- Apple, iPhone 1.1.2
- Apple, iPhone 1.1.3
- Apple, iPhone 1.1.4
- Apple, iPod touch 1.1
- Apple, iPod touch 1.1.1
- Apple, iPod touch 1.1.2
- Apple, iPod touch 1.1.3
- Apple, iPod touch 1.1.4
- Apple, Safari 1.0
- Apple, Safari 1.1
- Apple, Safari 1.2
- Apple, Safari 1.2.1
- Apple, Safari 1.2.2
- Apple, Safari 1.2.3
- Apple, Safari 1.3
- Apple, Safari 1.3.1
- Apple, Safari 2.0.1
- Apple, Safari 2.0.2
- Apple, Safari 2.0.3
- Apple, Safari 2.0.4
- Apple, Safari 3 Beta
- Apple, Safari 3
- Apple, Safari 3.0.1 Beta
- Apple, Safari 3.0.2 Beta
- Apple, Safari 3.0.3
- Apple, Safari 3.0.4 Beta
- Apple, Safari 3.1 Beta
- Apple, Safari 3.1
- Apple, Safari Beta2
Remedy:
Refer to APPLE-SA-2008-04-16 for patch, upgrade or suggested workaround information. See References.
For other distributions:
Apply the appropriate update for your system. See References.
Consequences:
Gain Access
References:
- Apple Web site, About the security content of iPhone v2.0 and iPod touch v2.0 at http://support.apple.com/kb/HT2351.
- APPLE-SA-2008-04-16, APPLE-SA-2008-04-16 Safari 3.1.1 at http://lists.apple.com/archives/security-announce/2008/Apr/msg00001.html.
- ZDI-08-022, Apple Safari WebKit PCRE Handling Integer Overflow Vulnerability at http://www.zerodayinitiative.com/advisories/ZDI-08-022/.
- BID-28815: Apple Safari WebKit JavaScript Regular Expression Repetition Counts Buffer Overflow Vulnerability
- BID-30186: Apple iPhone and iPod Touch Prior to Version 2.0 Multiple Remote Vulnerabilities
- CVE-2008-1026: Integer overflow in the PCRE regular expression compiler (JavaScriptCore/pcre/pcre_compile.cpp) in Apple WebKit, as used in Safari before 3.1.1, allows remote attackers to execute arbitrary code via a regular expression with large, nested repetition counts, which triggers a heap-based buffer overflow.
- FrSIRT/ADV-2008-1250: Apple Safari Code Execution and Cross Site Scripting Vulnerabilities
- FrSIRT/ADV-2008-2094: Apple iPhone and iPod touch Multiple Code Execution Vulnerabilities
- SA29846: Safari Multiple Vulnerabilities
- SA31074: Apple iPhone / iPod touch Multiple Vulnerabilities
- SECTRACK ID: 1019870: Safari WebKit Bug in Processing JavaScript Regular Expressions Lets Remote Users Execute Arbitrary Code
Reported:
Apr 16, 2008
The information within this database may change without notice. Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. In no event shall the author/distributor (Internet Security Systems X-Force) be held liable for any damages whatsoever arising out of or in connection with the use or spread of this information.
Copyright (c) 1994-2008 Internet Security Systems, Inc. All rights reserved worldwide.
For corrections or additions please email xforce@iss.net
