CVE-2006-5178

NONE EPSS 0.66%
Updated Apr 23, 2026
PHP
Parameter Value
Affected Versions before 5.1.6
Type CWE-362 (Race Condition)
Vendor PHP
Public PoC No

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.

Weakness Type (CWE)

Vulnerable Products 54

Configuration From (including) Up to (excluding)
Php Php
cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
— <= 5.1.6
Php Php
cpe:2.3:a:php:php:4.0:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.0.1:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.0.1:patch1:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.0.1:patch2:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.0.2:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.0.3:patch1:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.0.4:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.0.5:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.0.6:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.0.7:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.0.7:rc1:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.0.7:rc2:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.0.7:rc3:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.1.0:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.1.1:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.1.2:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.2:*:dev:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.2.0:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.2.1:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.2.2:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.2.3:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.3.0:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.3.1:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.3.2:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.3.3:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.3.4:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.3.5:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.3.6:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.3.7:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.3.8:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.3.9:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.3.10:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.3.11:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.4.0:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.4.1:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.4.2:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.4.3:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:4.4.4:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:5.0:rc1:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:5.0:rc2:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:5.0:rc3:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:5.0.0:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:5.0.1:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:5.0.2:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:5.0.3:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:5.0.4:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:5.0.5:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:5.1.0:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:5.1.1:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:5.1.2:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:5.1.3:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:5.1.4:*:*:*:*:*:*:*
— —
Php Php
cpe:2.3:a:php:php:5.1.5:*:*:*:*:*:*:*
— —