{"id":"CVE-2006-5178","aliases":["EDB-10557"],"kind":"cve","tier":"cold","status":"published","title":"Race condition in the symlink function in PHP 5.1.6 and earlier allows local users to bypass the open_basedir restricti…","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.","ai_summary":null,"severity":"medium","cvss":{"score":6.2,"version":"2.0","vector":"AV:L/AC:H/Au:N/C:C/I:C/A:C","source":"NVD"},"scores":[{"score":6.2,"version":"2.0","vector":"AV:L/AC:H/Au:N/C:C/I:C/A:C","source":"nvd"}],"cwe":["CWE-362"],"remote":false,"remote_unauth":false,"epss":{"score":0.00658,"percentile":0.52929,"date":"2026-12-05"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":true,"exploitdb_ids":[10557]},"affected":[],"affected_products":[{"vendor":"n/a","product":"n/a","versions":"","source":"nvd"}],"ai_versions":null,"mitigation":"No fix listed yet: follow the vendor advisory.","technologies":[],"references":[{"url":"http://www.securityfocus.com/archive/1/448953/100/0/threaded","kind":"vendor"},{"url":"http://www.turbolinux.com/security/2006/TLSA-2006-38.txt","kind":"vendor"},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2006:185","kind":"vendor"},{"url":"http://lists.grok.org.uk/pipermail/full-disclosure/2006-October/049850.html","kind":"exploit"},{"url":"http://www.securityfocus.com/bid/20326","kind":"exploit"},{"url":"http://secunia.com/advisories/22235","kind":"exploit"},{"url":"http://www.hardened-php.net/advisory_082006.132.html","kind":"exploit"},{"url":"http://securitytracker.com/id?1016977","kind":"exploit"},{"url":"https://www.exploit-db.com/exploits/10557","kind":"exploit"},{"url":"http://www.securityfocus.com/archive/1/447649/100/0/threaded","kind":"other"},{"url":"http://securityreason.com/securityalert/1692","kind":"other"},{"url":"http://www.neosecurityteam.net/index.php?action=advisories&id=26","kind":"other"},{"url":"http://www.securityfocus.com/archive/1/448020/100/0/threaded","kind":"other"},{"url":"http://www.vupen.com/english/advisories/2006/3901","kind":"other"},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/29340","kind":"other"},{"url":"http://secunia.com/advisories/22424","kind":"other"}],"workarounds":null,"vendors":["php"],"products":["php"],"cpes":["cpe:2.3:a:php:php:*:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.0.1:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.0.1:patch1:*:*:*:*:*:*","cpe:2.3:a:php:php:4.0.1:patch2:*:*:*:*:*:*","cpe:2.3:a:php:php:4.0.2:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.0.3:patch1:*:*:*:*:*:*","cpe:2.3:a:php:php:4.0.4:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.0.5:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.0.6:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.0.7:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.0.7:rc1:*:*:*:*:*:*","cpe:2.3:a:php:php:4.0.7:rc2:*:*:*:*:*:*","cpe:2.3:a:php:php:4.0.7:rc3:*:*:*:*:*:*","cpe:2.3:a:php:php:4.0:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.1.0:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.1.1:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.1.2:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.2.0:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.2.1:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.2.2:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.2.3:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.2:*:dev:*:*:*:*:*","cpe:2.3:a:php:php:4.3.0:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.3.10:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.3.11:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.3.1:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.3.2:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.3.3:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.3.4:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.3.5:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.3.6:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.3.7:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.3.8:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.3.9:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.4.0:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.4.1:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.4.2:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.4.3:*:*:*:*:*:*:*","cpe:2.3:a:php:php:4.4.4:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.0.0:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.0.1:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.0.2:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.0.3:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.0.4:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.0.5:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.0:rc1:*:*:*:*:*:*","cpe:2.3:a:php:php:5.0:rc2:*:*:*:*:*:*","cpe:2.3:a:php:php:5.0:rc3:*:*:*:*:*:*","cpe:2.3:a:php:php:5.1.0:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.1.1:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.1.2:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.1.3:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.1.4:*:*:*:*:*:*:*","cpe:2.3:a:php:php:5.1.5:*:*:*:*:*:*:*"],"published_at":"2006-10-06T00:00:00.000Z","modified_at":"2026-06-16T22:30:40.070Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2006-5178"},{"source":"Exploit-DB","text":"Exploit metadata (ID and link only) from the Exploit Database","url":"https://www.exploit-db.com/exploits/10557"}],"links":{"html":"https://flawdb.com/CVE-2006-5178","markdown":"https://flawdb.com/CVE-2006-5178.md","json":"https://flawdb.com/api/v1/entries/CVE-2006-5178"}}