{"id":"CVE-2006-5178","aliases":["EUVD-2006-5163","GHSA-qq66-666f-6x36"],"status":"published","title":"Race condition in the symlink function in PHP 5.1.6 and earlier allows local users to bypass the...","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.","severity":{"version":"2.0","score":6.2,"vector":"AV:L/AC:H/Au:N/C:C/I:C/A:C","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00658,"percentile":0.51797,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-362"],"published":"2006-10-06T00:00:00Z","modified":"2026-06-16T22:30:40Z","exploits":[{"source":"exploitdb","id":"EDB-10557","title":"PHP 5.2.12/5.3.1 - 'symlink()' open_basedir Bypass","type":"local","platform":"php","date":"2009-12-19","verified":true,"url":"https://www.exploit-db.com/exploits/10557"}],"products":[{"vendor":"php","product":"php"}],"references":[{"url":"http://lists.grok.org.uk/pipermail/full-disclosure/2006-October/049850.html","tags":["mailing-list","x_refsource_FULLDISC","x_transferred","Exploit"]},{"url":"http://www.securityfocus.com/archive/1/448953/100/0/threaded","tags":["vendor-advisory","x_refsource_OPENPKG","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/447649/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.turbolinux.com/security/2006/TLSA-2006-38.txt","tags":["vendor-advisory","x_refsource_TURBO","x_transferred"]},{"url":"http://www.securityfocus.com/bid/20326","tags":["vdb-entry","x_refsource_BID","x_transferred","Exploit"]},{"url":"http://securityreason.com/securityalert/1692","tags":["third-party-advisory","x_refsource_SREASON","x_transferred"]},{"url":"http://www.neosecurityteam.net/index.php?action=advisories\u0026id=26","tags":["x_refsource_MISC","x_transferred"]},{"url":"http://secunia.com/advisories/22235","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred","Exploit","Vendor Advisory"]},{"url":"http://www.securityfocus.com/archive/1/448020/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://www.vupen.com/english/advisories/2006/3901","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/29340","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://www.mandriva.com/security/advisories?name=MDKSA-2006:185","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred"]},{"url":"http://www.hardened-php.net/advisory_082006.132.html","tags":["x_refsource_MISC","x_transferred","Exploit","Vendor Advisory"]},{"url":"http://securitytracker.com/id?1016977","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred","Exploit"]},{"url":"http://secunia.com/advisories/22424","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2006-5178"},{"url":"https://github.com/advisories/GHSA-qq66-666f-6x36"}],"sources":{"cve":[{"id":"CVE-2006-5178","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.","status":"published","published":"2006-10-06T00:00:00Z","modified":"2024-08-07T19:41:04.388Z","updated_at":"2026-11-02T14:33:48.116532Z"}],"euvd":[{"id":"EUVD-2006-5163","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.","status":"published","published":"2006-10-06T00:00:00Z","modified":"2024-08-07T19:41:04Z","updated_at":"2026-11-03T01:15:48.962734Z"}],"ghsa":[{"id":"GHSA-qq66-666f-6x36","title":"Race condition in the symlink function in PHP 5.1.6 and earlier allows local users to bypass the...","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.","status":"published","published":"2022-05-01T07:25:50Z","modified":"2023-01-31T05:02:24Z","cwes":["CWE-362"],"updated_at":"2026-11-02T14:48:14.874123Z"}],"nvd":[{"id":"CVE-2006-5178","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.","status":"published","published":"2006-10-10T04:06:00Z","modified":"2026-06-16T22:30:40.07Z","cvss":[{"version":"2.0","score":6.2,"vector":"AV:L/AC:H/Au:N/C:C/I:C/A:C","level":"medium","assessor":"primary"}],"cwes":["CWE-362"],"updated_at":"2026-11-02T14:01:06.675668Z"}]}}
