PHP Open_BaseDir Security Restriction Bypass Vulnerability

BID:14957

Info

PHP Open_BaseDir Security Restriction Bypass Vulnerability

Bugtraq ID: 14957
Class: Design Error
CVE: CVE-2005-3054
Remote: Yes
Local: No
Published: Sep 27 2005 12:00AM
Updated: Jul 12 2009 05:06PM
Credit: thorben <[email protected]> is credited with the discovery of this vulnerability.
Vulnerable: Ubuntu Ubuntu Linux 5.0 4 powerpc
Ubuntu Ubuntu Linux 5.0 4 i386
Ubuntu Ubuntu Linux 5.0 4 amd64
Ubuntu Ubuntu Linux 4.1 ppc
Ubuntu Ubuntu Linux 4.1 ia64
Ubuntu Ubuntu Linux 4.1 ia32
Trustix Secure Linux 3.0
Trustix Secure Linux 2.2
Trustix Secure Enterprise Linux 2.0
Todd Miller Sudo 1.6.8 p2
+ Trustix Secure Linux 2.2
PHP PHP 5.0.5
PHP PHP 5.0 .0
PHP PHP 4.4 .0
PHP PHP 4.3.10
+ Gentoo Linux
+ Redhat Fedora Core3
+ Trustix Secure Enterprise Linux 2.0
+ Trustix Secure Linux 2.2
+ Trustix Secure Linux 2.1
+ Trustix Secure Linux 2.0
+ Trustix Secure Linux 1.5
PHP PHP 4.3.8
+ Mandriva Linux Mandrake 10.1 x86_64
+ Mandriva Linux Mandrake 10.1
+ S.u.S.E. Linux Personal 9.2
+ Turbolinux Turbolinux Server 10.0
+ Ubuntu Ubuntu Linux 4.1 ppc
+ Ubuntu Ubuntu Linux 4.1 ia64
+ Ubuntu Ubuntu Linux 4.1 ia32
Mandriva Linux Mandrake 2006.0 x86_64
Mandriva Linux Mandrake 2006.0
Mandriva Linux Mandrake 10.2 x86_64
Mandriva Linux Mandrake 10.2
Mandriva Linux Mandrake 10.1 x86_64
Mandriva Linux Mandrake 10.1
MandrakeSoft Multi Network Firewall 2.0
MandrakeSoft Corporate Server 3.0 x86_64
MandrakeSoft Corporate Server 3.0
MandrakeSoft Corporate Server 2.1 x86_64
MandrakeSoft Corporate Server 2.1
Gentoo Linux
Not Vulnerable: PHP PHP 5.1
PHP PHP 4.4.1

Discussion

PHP Open_BaseDir Security Restriction Bypass Vulnerability

PHP is prone to a vulnerability regarding the unauthorized access to directories outside the base directory.

The problem presents itself in the way PHP handles the 'open_basedir' directive.

Successful exploitation will grant an attacker access to directories outside the designated base directory. As a result, the attacker may access possibly privileged information.

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

Exploit / POC

PHP Open_BaseDir Security Restriction Bypass Vulnerability

No exploit is required.

Solution / Fix

PHP Open_BaseDir Security Restriction Bypass Vulnerability

Solution:

Please see the referenced advisories for details on obtaining and applying the appropriate updates.


Todd Miller Sudo 1.6.8 p2

PHP PHP 4.3.10

PHP PHP 4.3.8

PHP PHP 4.4 .0

PHP PHP 5.0 .0

PHP PHP 5.0.5

References

PHP Open_BaseDir Security 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