CVE-2008-2666 Path traversal in n/a
Attackers can bypass safe_mode restrictions via directory traversal in chdir or ftok functions, potentially accessing restricted files.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2008-2666?
CVE-2008-2666 is a medium-severity path traversal vulnerability in Php Php, published on 20 Jun 2008. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
Multiple directory traversal vulnerabilities in PHP 5.2.6 and earlier allow context-dependent attackers to bypass safe_mode restrictions by creating a subdirectory named http: and then placing ../ (dot dot slash) sequences in an http URL argument to the (1) chdir or (2) ftok function.
Weakness: CWE-22
Which versions are affected by CVE-2008-2666?
It affects 1 product.
Products include Php Php.
How do I fix CVE-2008-2666?
No fix has been published for CVE-2008-2666 yet. Limit exposure of the affected software until one is available.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2008-2666 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2008-2666 exists.
Public exploit code: 1 Exploit-DB entry.
Other vulnerabilities in Php Php
Sources
Also known as GHSA-h2vh-q3r8-9vv4.