Skip to content

CVE-2006-5178 Race condition in the symlink function in PHP 5.1.6 and earlier allows local users to bypass the open_basedir restriction by using a combination of symlink, mkdir, and unlink functions to change the f...

MediumCVSS 6.2 EPSS 0.66% Public exploit
Published
Updated
Exploit status
Public exploit available

Description

Race condition in the symlink function in PHP 5.1.6 and earlier allows local users to bypass the open_basedir restriction by using a combination of symlink, mkdir, and unlink functions to change the file path after the open_basedir check and before the file is opened by the underlying system, as demonstrated by symlinking a symlink into a subdirectory, to point to a parent directory via .. (dot dot) sequences, and then unlinking the resulting symlink.

Affected products

ProductAffected versionsFixed in
PHP <= 5.1.6 No fix listed
PHP = 4.0 No fix listed
PHP = 4.0.1 No fix listed
PHP = 4.0.1-patch1 No fix listed
PHP = 4.0.1-patch2 No fix listed
PHP = 4.0.2 No fix listed
PHP = 4.0.3-patch1 No fix listed
PHP = 4.0.4 No fix listed
PHP = 4.0.5 No fix listed
PHP = 4.0.6 No fix listed
PHP = 4.0.7 No fix listed
PHP = 4.0.7-rc1 No fix listed
PHP = 4.0.7-rc2 No fix listed
PHP = 4.0.7-rc3 No fix listed
PHP = 4.1.0 No fix listed
PHP = 4.1.1 No fix listed
PHP = 4.1.2 No fix listed
PHP = 4.2 No fix listed
PHP = 4.2.0 No fix listed
PHP = 4.2.1 No fix listed
PHP = 4.2.2 No fix listed
PHP = 4.2.3 No fix listed
PHP = 4.3.0 No fix listed
PHP = 4.3.1 No fix listed
PHP = 4.3.2 No fix listed
Show 29 more
ProductAffected versionsFixed in
PHP = 4.3.3 No fix listed
PHP = 4.3.4 No fix listed
PHP = 4.3.5 No fix listed
PHP = 4.3.6 No fix listed
PHP = 4.3.7 No fix listed
PHP = 4.3.8 No fix listed
PHP = 4.3.9 No fix listed
PHP = 4.3.10 No fix listed
PHP = 4.3.11 No fix listed
PHP = 4.4.0 No fix listed
PHP = 4.4.1 No fix listed
PHP = 4.4.2 No fix listed
PHP = 4.4.3 No fix listed
PHP = 4.4.4 No fix listed
PHP = 5.0-rc1 No fix listed
PHP = 5.0-rc2 No fix listed
PHP = 5.0-rc3 No fix listed
PHP = 5.0.0 No fix listed
PHP = 5.0.1 No fix listed
PHP = 5.0.2 No fix listed
PHP = 5.0.3 No fix listed
PHP = 5.0.4 No fix listed
PHP = 5.0.5 No fix listed
PHP = 5.1.0 No fix listed
PHP = 5.1.1 No fix listed
PHP = 5.1.2 No fix listed
PHP = 5.1.3 No fix listed
PHP = 5.1.4 No fix listed
PHP = 5.1.5 No fix listed

References