Every CVE Search/ Get API key

CVE-2008-5624

PHP 5 before 5.2.7 does not properly initialize the page_uid and page_gid global variables for...

7.5 High

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.

Exploit likelihood

2.22%Down 0.5 points since Feb 4, 2022
90%50%10%1%

What each source reports

NVD Score used 7.5

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.

Record
CVE-2008-5624
CVSS 2.0
7.5 HighAV:N/AC:L/Au:N/C:P/I:P/A:P
Weakness
CWE-264
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2008-5624
Updated
2026-11-02
EUVDEUVD-2008-5598 No score

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.

Record
EUVD-2008-5598
Updated
2026-11-03
GitHub AdvisoriesGHSA-84wj-6mhh-jgr7 No score

PHP 5 before 5.2.7 does not properly initialize the page_uid and page_gid global variables for...

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.

Record
GHSA-84wj-6mhh-jgr7
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
php5
Debian:4.0
From an advisory covering 8 CVEs
before 5.2.0+dfsg-8+etch15, plus listed versions
5.2.0-105.2.0-10+lenny15.2.0-115.2.0-8+etch15.2.0-8+etch10
Show 12 moreShow less
5.2.0-8+etch115.2.0-8+etch11~p15.2.0-8+etch135.2.0-8+etch35.2.0-8+etch45.2.0-8+etch5~pu15.2.0-8+etch65.2.0-8+etch75.2.0-8+etch85.2.0-8+etch95.2.0-8+etch9~bpo31+15.2.0-9
5.2.0+dfsg-8+etch15
php5
Debian:5.0
From an advisory covering 8 CVEs
before 5.2.6.dfsg.1-1+lenny3, plus listed versions
5.2.6.dfsg.1-1+lenny2
5.2.6.dfsg.1-1+lenny3
php5
Debian:5.0
From an advisory covering 5 CVEs
before 5.2.6.dfsg.1-1+lenny2
5.2.6.dfsg.1-1+lenny2

History

History
RecordedChangedSources
affected, facts
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2008-5624 is a high vulnerability (CVSS 7.5) in Php, published December 17, 2008. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.22%, the 82nd percentile. No source names a fixed version.

References

Show 11 moreShow less
MoveEnter Open