Back
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…
High7.5EPSS 2.2%
- Published
- Updated
- Reserved
- Assigned by
- mitre
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.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | High7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
- EPSS (exploitation in 30 days)
- 2.2% · top 17% of all CVEs (4 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.5.
Weakness
Affected products
n/a
- affected n/a
References (15)
- HPSBUX02465 (opens in a new tab)vendor-advisoryx_refsource_HPx_transferred
- SSRT090085 (opens in a new tab)vendor-advisoryx_refsource_HPx_transferred
- 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 (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- php-getuid-safemode-bypass(47318) (opens in a new tab)vdb-entryx_refsource_XFx_transferred
- http://wiki.rpath.com/Advisories:rPSA-2009-0035 (opens in a new tab)x_refsource_CONFIRMx_transferred
- 32688 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- 35003 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- http://www.php.net/ChangeLog-5.php#5.2.7 (opens in a new tab)x_refsource_CONFIRMx_transferred
- MDVSA-2009:045 (opens in a new tab)vendor-advisoryx_refsource_MANDRIVAx_transferred
- 50483 (opens in a new tab)vdb-entryx_refsource_OSVDBx_transferred
- 20081205 PHP 5.2.6 SAPI php_getuid() overload (opens in a new tab)third-party-advisoryx_refsource_SREASONRESx_transferred
- 52207 (opens in a new tab)vdb-entryx_refsource_OSVDBx_transferred
- 20081206 SecurityReason: PHP 5.2.6 SAPI php_getuid() overload (opens in a new tab)mailing-listx_refsource_BUGTRAQx_transferred
- 35650 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- DSA-1789 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://trackcve.app/cve/CVE-2008-5624)Record last updated .