CVE-2006-5178
What it is
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.
At a glance
- Exploitability
- Can be exploited locally on the machine without logging in. High risk of data exposure, data tampering, service disruption.
- Exploit odds
- 0.7% chance of exploitation in the next 30 days (EPSS).
- Fix
- A patch, advisory or fixed version is referenced. Upgrade or apply it.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 0.7% in the next 30 days (EPSS).
- Severity: 6.2 MEDIUM (CVSS).
- Fix: a patch or advisory is linked.
Details
- Published
- Last modified
- Exploit probability
- 0.7% · EPSS, next 30 days
- Weakness
- CWE-362 · Race condition
- Record status
- Modified
Affected
- PHP ≤ 5.1.6
- PHP 4.0
- PHP 4.0.1
- PHP 4.0.2
- PHP 4.0.3
- PHP 4.0.4
- PHP 4.0.5
- PHP 4.0.6
Attack profile CVSS 2.0 · 6.2
- Attack vector
- Local
- Complexity
- High
- Authentication
- None
- Confidentiality
- Complete
- Integrity
- Complete
- Availability
- Complete
Raw vector
AV:L/AC:H/Au:N/C:C/I:C/A:C
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2006-5178.md and follow it. Check whether this project is affected by CVE-2006-5178. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
Fix and advisories
- http://secunia.com/advisories/22235
- http://www.hardened-php.net/advisory_082006.132.html
- http://secunia.com/advisories/22235
- http://www.hardened-php.net/advisory_082006.132.html
References
- http://lists.grok.org.uk/pipermail/full-disclosure/2006-October/049850.html
- http://secunia.com/advisories/22235
- http://secunia.com/advisories/22424
- http://securityreason.com/securityalert/1692
- http://securitytracker.com/id?1016977
- http://www.hardened-php.net/advisory_082006.132.html
- http://www.mandriva.com/security/advisories?name=MDKSA-2006:185
- http://www.neosecurityteam.net/index.php?action=advisories&id=26
- http://www.securityfocus.com/archive/1/447649/100/0/threaded
- http://www.securityfocus.com/archive/1/448020/100/0/threaded
- http://www.securityfocus.com/archive/1/448953/100/0/threaded
- http://www.securityfocus.com/bid/20326
- http://www.turbolinux.com/security/2006/TLSA-2006-38.txt
- http://www.vupen.com/english/advisories/2006/3901
- https://exchange.xforce.ibmcloud.com/vulnerabilities/29340
- http://lists.grok.org.uk/pipermail/full-disclosure/2006-October/049850.html
- http://secunia.com/advisories/22235
- http://secunia.com/advisories/22424
- http://securityreason.com/securityalert/1692
- http://securitytracker.com/id?1016977
- http://www.hardened-php.net/advisory_082006.132.html
- http://www.mandriva.com/security/advisories?name=MDKSA-2006:185
- http://www.neosecurityteam.net/index.php?action=advisories&id=26
- http://www.securityfocus.com/archive/1/447649/100/0/threaded
- http://www.securityfocus.com/archive/1/448020/100/0/threaded