CVE-2006-5178 Race condition in n/a
Local attackers can bypass open_basedir restrictions via a race condition in symlink handling, allowing unauthorized file access.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2006-5178?
CVE-2006-5178 is a medium-severity vulnerability in Php Php, published on 6 Oct 2006. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-362
Which versions are affected by CVE-2006-5178?
It affects 1 product.
Products include Php Php.
How do I fix CVE-2006-5178?
No fix has been published for CVE-2006-5178 yet. Limit exposure of the affected software until one is available.
Is CVE-2006-5178 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2006-5178 exists.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in Php Php
Sources
Also known as GHSA-qq66-666f-6x36.