National Vulnerability Database

National Vulnerability Database

National Vulnerability
Database

CVE-2008-5625 Detail

Description

PHP 5 before 5.2.7 does not enforce the error_log safe_mode restrictions when safe_mode is enabled through a php_admin_flag setting in httpd.conf, which allows context-dependent attackers to write to arbitrary files by placing a "php_value error_log" entry in a .htaccess file.

Source:  MITRE      Last Modified:  12/17/2008

Quick Info

CVE Dictionary Entry:
CVE-2008-5625
Original release date:
12/17/2008
Last revised:
09/28/2017
Source:
US-CERT/NIST

Impact

CVSS Severity (version 2.0):
CVSS v2 Base Score:
7.5 HIGH
Vector:
(AV:N/AC:L/Au:N/C:P/I:P/A:P) (legend)
Impact Subscore:
6.4
Exploitability Subscore:
10.0
CVSS Version 2 Metrics:
Access Vector:
Network exploitable
Access Complexity:
Low
Authentication:
Not required to exploit
Impact Type:
Provides unauthorized access, Allows partial confidentiality, integrity, and availability violation; Allows unauthorized disclosure of information; Allows disruption of service

Vendor Statements (disclaimer)

Official Statement from Red Hat (03/31/2009)

We do not consider this to be a security issue. For more details see http://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=169857#c1 and http://www.php.net/security-note.php

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

Hyperlink Resource Type Source Name
http://archives.neohapsis.com/archives/bugtraq/2008-11/0152.html External Source BUGTRAQ 20081120 SecurityReason : PHP 5.2.6 (error_log) safe_mode bypass
http://marc.info/?l=bugtraq&m=124654546101607&w=2 External Source HP HPSBUX02431
http://marc.info/?l=bugtraq&m=125631037611762&w=2 External Source HP HPSBUX02465
http://securityreason.com/achievement_securityalert/57 Exploit External Source SREASONRES 20081120 PHP 5.2.6 (error_log) safe_mode bypass
http://wiki.rpath.com/Advisories:rPSA-2009-0035 External Source CONFIRM http://wiki.rpath.com/Advisories:rPSA-2009-0035
http://www.mandriva.com/security/advisories?name=MDVSA-2009:045 External Source MANDRIVA MDVSA-2009:045
http://www.php.net/ChangeLog-5.php#5.2.7 External Source CONFIRM http://www.php.net/ChangeLog-5.php#5.2.7
http://www.securityfocus.com/archive/1/archive/1/501376/100/0/threaded External Source BUGTRAQ 20090302 rPSA-2009-0035-1 php php-cgi php-imap php-mcrypt php-mysql php-mysqli php-pgsql php-soap php-xsl php5 php5-cgi php5-imap php5-mcrypt php5-mysql php5-mysqli php5-pear php5-pgsql php5-soap php5-xsl
http://www.securityfocus.com/bid/32383 External Source BID 32383
https://exchange.xforce.ibmcloud.com/vulnerabilities/47314 External Source XF php-error-safemode-bypass(47314)
https://www.exploit-db.com/exploits/7171 External Source EXPLOIT-DB 7171

Technical Details

Vulnerability Type (View All)

  • Permissions, Privileges, and Access Control (CWE-264)

Change History 3 change records found - show changes