CVE-2008-5624: High severity PHP PHP vulnerability
PHP 5 before 5.2.7 does not properly initialize the pageuid and pagegid global variables for use by the SAPI phpgetuid function, which allows context-dependent attackers to bypass safemode restrictions via variable settings that are intended to be restricted to root, as demonstrated by a setting of /etc for the errorlog variable.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
PHPto a version that resolves this vulnerability.Fixed in 5.2.7
Event History
Frequently Asked Questions
What is the severity of CVE-2008-5624?
The severity of CVE-2008-5624 is considered medium due to its potential to bypass safe_mode restrictions.
How do I fix CVE-2008-5624?
To fix CVE-2008-5624, upgrade to PHP version 5.2.7 or later, where the vulnerability is addressed.
Which versions of PHP are affected by CVE-2008-5624?
CVE-2008-5624 affects PHP versions 5.0.0 through 5.2.6, prior to version 5.2.7.
What is the main issue caused by CVE-2008-5624?
CVE-2008-5624 allows context-dependent attackers to bypass safe_mode restrictions, which can lead to privilege escalation.
How can I detect if I'm vulnerable to CVE-2008-5624?
You can detect vulnerability to CVE-2008-5624 by checking the PHP version in use and seeing if it is older than 5.2.7.