PHP Error_Log Safe_Mode Restriction-Bypass Vulnerability

BID:18645

CVE-2006-3011 |

Info

PHP Error_Log Safe_Mode Restriction-Bypass Vulnerability

Bugtraq ID: 18645
Class: Input Validation Error
CVE: CVE-2006-3011
Remote: No
Local: Yes
Published: Jun 26 2006 12:00AM
Updated: Sep 01 2006 04:38PM
Credit: Maksymilian Arciemowicz discovered these issues.
Vulnerable: PHP PHP 5.1.4
PHP PHP 4.4.2
Mandriva Linux Mandrake 2006.0 x86_64
Mandriva Linux Mandrake 2006.0
Mandriva Linux Mandrake 10.2 x86_64
Mandriva Linux Mandrake 10.2
MandrakeSoft Multi Network Firewall 2.0
MandrakeSoft Corporate Server 3.0 x86_64
MandrakeSoft Corporate Server 3.0
Not Vulnerable:

Discussion

PHP Error_Log Safe_Mode Restriction-Bypass Vulnerability

PHP is prone to a 'safe_mode' and 'open_basedir' restriction-bypass vulnerability. Successful exploits could allow an attacker to write files in unauthorized locations.

This vulnerability would be an issue in shared-hosting configurations where multiple users can create and execute arbitrary PHP script code, with the 'safe_mode' and 'open_basedir' restrictions assumed to isolate the users from each other.

This issue is reported to affect PHP versions 4.4.2 and 5.1.4; other versions may also be vulnerable.

Exploit / POC

PHP Error_Log Safe_Mode Restriction-Bypass Vulnerability

Attackers may exploit these issues with standard PHP code.

Example PHP code exploiting the 'error_log()' issue is available:

Solution / Fix

PHP Error_Log Safe_Mode Restriction-Bypass Vulnerability

Solution:
Currently we are not aware of any vendor-supplied patches for this issue. If you feel we are in error or if you are aware of more recent information, please mail us at: [email protected]:[email protected].

Please see the referenced advisories for information on obtaining and applying fixes.

References

PHP Error_Log Safe_Mode Restriction-Bypass Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report