Vulnerability in PHP
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 restrictions via variable settings that are intended to be restricted to root, as demonstrated by a setting of /etc for the error_log variable.
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.022, 83.0th 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)
- php-getuid-safemode-bypass(47318) (vdb-entry)
- wiki.rpath.com/Advisories:rPSA-2009-0035
- www.securityfocus.com/bid/32688 (vdb-entry)
- secunia.com/advisories/35003 (third-party-advisory)
- www.php.net/ChangeLog-5.php
- MDVSA-2009:045 (vendor-advisory)
- osvdb.org/50483 (vdb-entry)