{"id":"CVE-2008-5624","aliases":["DSA-1789-1","DTSA-188-1","EUVD-2008-5598","GHSA-84wj-6mhh-jgr7"],"status":"published","title":"PHP 5 before 5.2.7 does not properly initialize the page_uid and page_gid global variables for...","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.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-07","score":0.02222,"percentile":0.82796,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-264"],"published":"2008-12-17T17:00:00Z","modified":"2026-06-16T23:00:40Z","affected":[{"source":"osv","ecosystem":"Debian:4.0","package":"php5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.0+dfsg-8+etch15"}]}],"versions":["5.2.0-10","5.2.0-10+lenny1","5.2.0-11","5.2.0-8+etch1","5.2.0-8+etch10","5.2.0-8+etch11","5.2.0-8+etch11~p1","5.2.0-8+etch13","5.2.0-8+etch3","5.2.0-8+etch4","5.2.0-8+etch5~pu1","5.2.0-8+etch6","5.2.0-8+etch7","5.2.0-8+etch8","5.2.0-8+etch9","5.2.0-8+etch9~bpo31+1","5.2.0-9"],"bundled":8},{"source":"osv","ecosystem":"Debian:5.0","package":"php5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.6.dfsg.1-1+lenny3"}]}],"versions":["5.2.6.dfsg.1-1+lenny2"],"bundled":8},{"source":"osv","ecosystem":"Debian:5.0","package":"php5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.6.dfsg.1-1+lenny2"}]}],"bundled":5}],"products":[{"vendor":"php","product":"php"}],"references":[{"url":"http://marc.info/?l=bugtraq\u0026m=125631037611762\u0026w=2","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://marc.info/?l=bugtraq\u0026m=124654546101607\u0026w=2","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/501376/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/47318","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://wiki.rpath.com/Advisories:rPSA-2009-0035","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.securityfocus.com/bid/32688","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://secunia.com/advisories/35003","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.php.net/ChangeLog-5.php#5.2.7","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2009:045","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred"]},{"url":"http://osvdb.org/50483","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"http://securityreason.com/achievement_securityalert/59","tags":["third-party-advisory","x_refsource_SREASONRES","x_transferred","Exploit"]},{"url":"http://osvdb.org/52207","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/498985/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://secunia.com/advisories/35650","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.debian.org/security/2009/dsa-1789","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2008-5624"},{"url":"https://github.com/advisories/GHSA-84wj-6mhh-jgr7"}],"sources":{"cve":[{"id":"CVE-2008-5624","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.","status":"published","published":"2008-12-17T17:00:00Z","modified":"2024-08-07T10:56:47.366Z","updated_at":"2026-11-02T14:34:43.943588Z"}],"euvd":[{"id":"EUVD-2008-5598","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.","status":"published","published":"2008-12-17T17:00:00Z","modified":"2024-08-07T10:56:47Z","updated_at":"2026-11-03T01:38:42.372366Z"}],"ghsa":[{"id":"GHSA-84wj-6mhh-jgr7","title":"PHP 5 before 5.2.7 does not properly initialize the page_uid and page_gid global variables for...","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.","status":"published","published":"2022-05-14T02:39:43Z","modified":"2023-02-02T05:06:37Z","updated_at":"2026-11-02T14:52:20.153716Z"}],"nvd":[{"id":"CVE-2008-5624","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.","status":"published","published":"2008-12-17T17:30:00.453Z","modified":"2026-06-16T23:00:40.94Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-264"],"updated_at":"2026-11-02T14:01:30.411919Z"}],"osv":[{"id":"DSA-1789-1","title":"php5 - several vulnerabilities","status":"published","published":"2009-05-04T00:00:00Z","modified":"2026-03-09T01:21:04.686666Z","updated_at":"2026-11-02T15:46:14.734124Z"},{"id":"DTSA-188-1","title":"php5 - several vulnerabilities","status":"published","published":"2009-01-28T00:00:00Z","modified":"2026-03-09T01:00:51.012573Z","updated_at":"2026-11-02T15:46:18.716547Z"}]}}
