Vulnerabilities · 2006 · Php
CVE-2006-5178
Php vulnerability
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.
Affected products
Php. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Php runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Set the orderSystems that can be reached from the internet come first, then the rest.
References
- secunia.com/advisories/22235 · Exploit
- www.hardened-php.net/advisory_082006.132.html · Exploit
- lists.grok.org.uk/pipermail/full-disclosure/2006-October/049850.html · Exploit
- securitytracker.com/id?1016977 · Exploit
- www.securityfocus.com/bid/20326 · Exploit
- secunia.com/advisories/22424
- securityreason.com/securityalert/1692
- www.mandriva.com/security/advisories?name=MDKSA-2006:185
- nvd.nist.gov/vuln/detail/CVE-2006-5178
- cve.org/CVERecord?id=CVE-2006-5178
More vulnerabilities in Php products
CVE-2025-14180CVE-2025-14178CVE-2025-14177CVE-2025-6491CVE-2025-1861CVE-2025-1736CVE-2025-1735CVE-2025-1734All 740
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.