CVE-2008-5624
publishedphp: missing initialization of BG(page_uid) and BG(page_gid)
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Debian | etch | php5 | Advisory build | 5.2.0+dfsg-8+etch15 | DSA-1789-1 |
| Debian | lenny | php5 | Advisory build | 5.2.6.dfsg.1-1+lenny3 | DSA-1789-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
15- SSRT090085 http://marc.info/?l=bugtraq&m=124654546101607&w=2
- HPSBUX02465 http://marc.info/?l=bugtraq&m=125631037611762&w=2
- 50483 http://osvdb.org/50483
- 52207 http://osvdb.org/52207
- 35003 http://secunia.com/advisories/35003
- 35650 http://secunia.com/advisories/35650
- 20081205 PHP 5.2.6 SAPI php_getuid() overload http://securityreason.com/achievement_securityalert/59
- http://wiki.rpath.com/Advisories:rPSA-2009-0035
- DSA-1789 http://www.debian.org/security/2009/dsa-1789
- MDVSA-2009:045 http://www.mandriva.com/security/advisories?name=MDVSA-2009:045
- http://www.php.net/ChangeLog-5.php#5.2.7
- 20081206 SecurityReason: PHP 5.2.6 SAPI php_getuid() overload http://www.securityfocus.com/archive/1/498985/100/0/threaded
- 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 http://www.securityfocus.com/archive/1/501376/100/0/threaded
- 32688 http://www.securityfocus.com/bid/32688
- php-getuid-safemode-bypass(47318) https://exchange.xforce.ibmcloud.com/vulnerabilities/47318
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 57410ad61cb0647630e1dea967f2689699c09c268fc58eecf8fe398ce29303dc
- Ingested
- 23 Sep 2026, 07:38:30 UTC
- Source record
- Official CVE record