PHP glob() function denial of service
| php-glob-dos (35437) |
Description:
PHP is vulnerable to a denial of service, caused by a memory corruption vulnerability in the glob() function. By persuading a victim to visit a specially-crafted Web site, a remote attacker could exploit this vulnerability using an invalid flags parameter to possibly execute arbitrary code on the vulnerable system or cause a denial of service.
Platforms Affected:
- Debian, Debian Linux 4.0
- Gentoo, Linux
- PHP, PHP 5.0.0 RC2
- PHP, PHP 5.0.0
- PHP, PHP 5.0.0 RC3
- PHP, PHP 5.0.0 RC1
- PHP, PHP 5.0.0 Beta1
- PHP, PHP 5.0.0 Beta4
- PHP, PHP 5.0.0 Beta3
- PHP, PHP 5.0.0 Beta2
- PHP, PHP 5.0.1
- PHP, PHP 5.0.2
- PHP, PHP 5.0.3
- PHP, PHP 5.0.4
- PHP, PHP 5.0.5
- PHP, PHP 5.1.0
- PHP, PHP 5.1.1
- PHP, PHP 5.1.2
- PHP, PHP 5.1.3
- PHP, PHP 5.1.4
- PHP, PHP 5.1.5
- PHP, PHP 5.1.6
- PHP, PHP 5.2.0
- PHP, PHP 5.2.1
- PHP, PHP 5.2.2
- PHP, PHP 5.2.3
Remedy:
Apply the patch for this vulnerability (initialize glob struct), available from the PHP CVS Repository. See References.
For other distributions:
Contact your vendor for upgrade or patch information.
Consequences:
Denial of Service
References:
- PHP CVS Repository, initialize glob struct at http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dir.c?view=log.
- PHP Web site, PHP: Hypertext Preprocessor at http://www.php.net/.
- BID-24922: PHP Glob() Function Arbitrary Code Execution Vulnerability
- BID-25498: PHP 5.2.3 and Prior Versions Multiple Vulnerabilities
- CVE-2007-3806: The glob function in PHP 5.2.3 allows context-dependent attackers to cause a denial of service and possibly execute arbitrary code via an invalid value of the flags parameter, probably related to memory corruption or an invalid read on win32 platforms, and possibly related to lack of initialization for a glob structure.
- DSA-1572: php5 -- several vulnerabilities
- DSA-1578: php4 -- several vulnerabilities
- FrSIRT/ADV-2007-2547: PHP glob() Function Arguments Processing Arbitrary Code Execution Vulnerability
- GLSA-200710-02: PHP: Multiple vulnerabilities
- SA26085: PHP "glob()" Code Execution Vulnerability
- SA26642: PHP Multiple Vulnerabilities
Reported:
Jul 14, 2007
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
