Vulnerability in PHP
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 arbitrary files by placing a "php_value error_log" entry in a .htaccess file.
Published · last modified .
CVSS v2 metric
CVSS v2 base score 7.5 (High). Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.073, 94.5th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PHP — versions 5.0.0, 5.0.1, 5.0.2
Weakness classification (CWE)
References
- HPSBUX02465 (vendor-advisory)
- SSRT090085 (vendor-advisory)
- 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)
- wiki.rpath.com/Advisories:rPSA-2009-0035
- php-error-safemode-bypass(47314) (vdb-entry)
- www.securityfocus.com/bid/32383 (vdb-entry)
- 20081120 PHP 5.2.6 (error_log) safe_mode bypass (Exploit, third-party-advisory)
- osvdb.org/52205 (vdb-entry)
- www.php.net/ChangeLog-5.php
- MDVSA-2009:045 (vendor-advisory)