CVE-2008-5624

PHP 5 < 5.2.7 - Safe Mode Bypass via Uninitialized page_uid and page_gid Variables

Title source: llm
STIX 2.1

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.

References (15)

Core 15
Core References
Mailing List vendor-advisory x_refsource_hp
http://marc.info/?l=bugtraq&m=125631037611762&w=2
Mailing List vendor-advisory x_refsource_hp
http://marc.info/?l=bugtraq&m=124654546101607&w=2
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/501376/100/0/threaded
Third Party Advisory, VDB Entry vdb-entry x_refsource_xf
https://exchange.xforce.ibmcloud.com/vulnerabilities/47318
Third Party Advisory x_refsource_confirm
http://wiki.rpath.com/Advisories:rPSA-2009-0035
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/32688
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/35003
Vendor Advisory x_refsource_confirm
http://www.php.net/ChangeLog-5.php#5.2.7
Vendor Advisory vendor-advisory x_refsource_mandriva
http://www.mandriva.com/security/advisories?name=MDVSA-2009:045
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://osvdb.org/50483
Exploit third-party-advisory x_refsource_sreasonres
http://securityreason.com/achievement_securityalert/59
Third Party Advisory, VDB Entry vdb-entry x_refsource_osvdb
http://osvdb.org/52207
Third Party Advisory, VDB Entry mailing-list x_refsource_bugtraq
http://www.securityfocus.com/archive/1/498985/100/0/threaded
Third Party Advisory third-party-advisory x_refsource_secunia
http://secunia.com/advisories/35650
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2009/dsa-1789

Scores

EPSS 0.0150
EPSS Percentile 81.4%

Details

CWE
CWE-264
Status published
Products (21)
php/php 5.0.0 (8 CPE variants)
php/php 5.0.1
php/php 5.0.2
php/php 5.0.3
php/php 5.0.4
php/php 5.0.5
php/php 5.1.0
php/php 5.1.1
php/php 5.1.2
php/php 5.1.3
... and 11 more
Published Dec 17, 2008
Tracked Since Feb 18, 2026