CVE-2008-5624 json
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 a…
published 2008-12-17 17 y ago modified 2026-06-16 4 mo ago also EUVD-2008-5598
- cvss
- 7.5
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 2.2%
- EPSS 2.2% chance of exploitation in 30 days, percentile 82%
- public exploits
- 0
- none known
Summary
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.
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2008-5624 updated
php: missing initialization of BG(page_uid) and BG(page_gid)
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
2.22% chance of exploitation in the next 30 days, higher than 82% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- securityreason.com http://securityreason.com/achievement_securityalert/59 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 7.5 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
- Weakness
-
- CWE-264 Permissions, Privileges, and Access Controls
- Technology feeds
References
-
securityreason.com
/achievement_securityalert/59
third-party-advisory, exploit
-
marc.info
/?l=bugtraq&m=125631037611762&w=2
vendor-advisory
-
marc.info
/?l=bugtraq&m=124654546101607&w=2
vendor-advisory
-
mandriva.com
/security/advisories?name=MDVSA-2009:045
vendor-advisory
-
debian.org
/security/2009/dsa-1789
vendor-advisory
-
securityfocus.com
/archive/1/501376/100/0/threaded
mailing-list
-
exchange.xforce.ibmcloud.com
/vulnerabilities/47318
vdb-entry
- wiki.rpath.com /Advisories:rPSA-2009-0035
-
securityfocus.com
/bid/32688
vdb-entry
-
secunia.com
/advisories/35003
third-party-advisory
- php.net /ChangeLog-5.php#5.2.7
-
osvdb.org
/50483
vdb-entry
-
osvdb.org
/52207
vdb-entry
-
securityfocus.com
/archive/1/498985/100/0/threaded
mailing-list
-
secunia.com
/advisories/35650
third-party-advisory
Sources
- CVE List CVE-2008-5624
- NVD CVE-2008-5624
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.