Skip to content
OpenAdvisories
Unscored CVE-2008-5624 EUVD-2008-5598GHSA-84wj-6mhh-jgr7

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 Dec 17, 2008 · Updated Aug 7, 2024 · 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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 5.0 php5 5.2.6.dfsg.1-1+lenny2 DTSA-188-1, DSA-1789-1
Debian 4.0 php5 5.2.0+dfsg-8+etch15 DSA-1789-1

Advisories 2

References