Alternative PHP Cache (APC) apc_search_paths() buffer overflow
| apc-apcsearchpaths-bo (41420) |
Description:
Alternative PHP Cache (APC) is vulnerable to a stack-based buffer overflow, caused by improper bounds checking by the apc_search_paths() function. By sending an overly long filename to the include() function, a remote attacker could overflow a buffer and execute arbitrary code on the system with Web server privileges or cause the Web server to crash.
Platforms Affected:
- Alternative PHP Cache, Alternative PHP Cache 3.0.11 - 3.0.16
- Gentoo, Linux
- MandrakeSoft, Mandrake Linux Corporate Server 4.0 X86_64
- MandrakeSoft, Mandrake Linux Corporate Server 4.0
Remedy:
Upgrade to the latest version of Alternative PHP Cache (APC) (3.0.17 or later), available from the PECL Web site. See References.
Consequences:
Gain Access
References:
- Bug #13415, Usage of strcpy in apc.c can cause stack corruption with long filenames at http://pecl.php.net/bugs/bug.php?id=13415.
- dannyp Advisories, apcsmash.php: PHP-APC-Stacksmash at http://papasian.org/~dannyp/apcsmash.php.txt.
- PECL Web site, APC 3.0.17 at http://pecl.php.net/package/APC/3.0.17.
- BID-28457: PECL Alternative PHP Cache Extension 'apc_search_paths()' Buffer Overflow Vulnerability
- CVE-2008-1488: Stack-based buffer overflow in apc.c in Alternative PHP Cache (APC) 3.0.11 through 3.0.16 allows remote attackers to execute arbitrary code via a long filename.
- GLSA-200804-07: PECL APC: Buffer Overflow
- MDVSA-2008:082: Updated php-apc packages fix vulnerability
- SA29509: PECL Alternative PHP Cache "apc_search_paths" Buffer Overflow Vulnerability
Reported:
Mar 17, 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
