Vulnerability in PHP
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 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.
Vulnerability class: Race Condition
Published · last modified .
CVSS v2 metric
CVSS v2 base score 6.2 (Medium). Vector: AV:L/AC:H/Au:N/C:C/I:C/A:C. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.007, 52.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- PHP — versions 4.0, 4.0.1, 4.0.2
Weakness classification (CWE)
Public exploits and proof-of-concept code
Also mentioned in 2 other repositories (Krisbpv5qz6topherEdwarlhk4m80zds/realpath_turbo, Whissi/realpath_turbo). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- 20061003 Advisory 08/2006: PHP open_basedir Race Condition Vulnerability (mailing-list, Exploit)
- OpenPKG-SA-2006.023 (vendor-advisory)
- 20061003 Advisory 08/2006: PHP open_basedir Race Condition Vulnerability (mailing-list)
- TLSA-2006-38 (vendor-advisory)
- www.securityfocus.com/bid/20326 (Exploit, vdb-entry)
- securityreason.com/securityalert/1692 (third-party-advisory)
- www.neosecurityteam.net/index.php
- secunia.com/advisories/22235 (Exploit, third-party-advisory, Vendor Advisory)
- 20061009 PHP open_basedir with symlink() function Race Condition PoC exploit (mailing-list)
- ADV-2006-3901 (vdb-entry)