CVE-2008-5625 PHP 5 before 5.2.7 does not enforce the error_log safe_mode restrictions when safe_mode is enabled through a php_admin_flag setting in httpd.conf, which allows context-dependent attackers to write to....
HighCVSS 7.5
EPSS 7.3%
Public exploit
- Published
- Updated
- Exploit status
- Public exploit available
Description
PHP 5 before 5.2.7 does not enforce the error_log safe_mode restrictions when safe_mode is enabled through a php_admin_flag setting in httpd.conf, which allows context-dependent attackers to write to arbitrary files by placing a "php_value error_log" entry in a .htaccess file.
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP | <= 5.2.6 | No fix listed |
| 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 |
Show 2 more
| Product | Affected versions | Fixed in |
|---|---|---|
| PHP | = 5.2.4 | No fix listed |
| PHP | = 5.2.5 | No fix listed |
References
- 20081120 SecurityReason : PHP 5.2.6 (error_log) safe_mode bypass mailing-list
- SSRT090085 vendor-advisory
- HPSBUX02465 vendor-advisory
- 52205 vdb-entry
- 35650 third-party-advisory
- 20081120 PHP 5.2.6 (error_log) safe_mode bypass exploit third-party-advisory
- wiki.rpath.com
- MDVSA-2009:045 vendor-advisory
- www.php.net
- 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
- 32383 vdb-entry
- php-error-safemode-bypass(47314) vdb-entry
- 7171 exploit