CVE-2008-5624 PHP 5 before 5.2.7 does not properly initialize the page_uid and page_gid global variables for use by the SAPI php_getuid function, which allows context-dependent attackers to bypass safe_mode restric...
HighCVSS 7.5
EPSS 2.2%
- Published
- Updated
- Exploit status
- No public exploit known
Description
PHP 5 before 5.2.7 does not properly initialize the page_uid and page_gid global variables for use by the SAPI php_getuid function, which allows context-dependent attackers to bypass safe_mode restrictions via variable settings that are intended to be restricted to root, as demonstrated by a setting of /etc for the error_log variable.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP | = 5.0.0 | No fix listed |
| PHP | = 5.0.0-beta1 | No fix listed |
| PHP | = 5.0.0-beta2 | No fix listed |
| PHP | = 5.0.0-beta3 | No fix listed |
| PHP | = 5.0.0-beta4 | No fix listed |
| PHP | = 5.0.0-rc1 | No fix listed |
| PHP | = 5.0.0-rc2 | No fix listed |
| PHP | = 5.0.0-rc3 | No fix listed |
| PHP | = 5.0.1 | No fix listed |
| PHP | = 5.0.2 | No fix listed |
| PHP | = 5.0.3 | No fix listed |
| PHP | = 5.0.4 | No fix listed |
| PHP | = 5.0.5 | No fix listed |
| PHP | = 5.1.0 | No fix listed |
| PHP | = 5.1.1 | No fix listed |
| PHP | = 5.1.2 | No fix listed |
| PHP | = 5.1.3 | No fix listed |
| PHP | = 5.1.4 | No fix listed |
| PHP | = 5.1.5 | No fix listed |
| PHP | = 5.1.6 | No fix listed |
| PHP | = 5.2.0 | No fix listed |
| PHP | = 5.2.1 | No fix listed |
| PHP | = 5.2.2 | No fix listed |
| PHP | = 5.2.3 | No fix listed |
| PHP | = 5.2.4 | No fix listed |
Show 3 more
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP | = 5.2.5 | No fix listed |
| PHP | = 5.2.6 | No fix listed |
| PHP | = 5.2.7 | No fix listed |
References
- SSRT090085 vendor-advisory
- HPSBUX02465 vendor-advisory
- 50483 vdb-entry
- 52207 vdb-entry
- 35003 third-party-advisory
- 35650 third-party-advisory
- 20081205 PHP 5.2.6 SAPI php_getuid() overload exploit third-party-advisory
- wiki.rpath.com
- DSA-1789 vendor-advisory
- MDVSA-2009:045 vendor-advisory
- www.php.net
- 20081206 SecurityReason: PHP 5.2.6 SAPI php_getuid() overload mailing-list
- 20090302 rPSA-2009-0035-1 php php-cgi php-imap php-mcrypt php-mysql php-mysqli php-pgsql php-soap php-xsl php5 php5-cgi php5-imap php5-mcrypt php5-mysql php5-mysqli php5-pear php5-pgsql php5-soap php5-xsl mailing-list
- 32688 vdb-entry
- php-getuid-safemode-bypass(47318) vdb-entry