CVE-2008-2666: Multiple directory traversal vulnerabilities in PHP 5.2.6 and earlier allow context-dependent attackers to bypass safe_mode restrictions…
CVE-2008-2666 affects 13 listed versions of PHP in the Dawnsentry catalogue.
Affected products and versions
The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.
PHP
13 of 250 listed versions are affected. Fixed in 5.2.6. The newest release, 8.6.0, is not affected.
5.2.6 5.2.5 5.2.4 5.2.3 5.1.6 5.1.5 5.1.4 5.1.3 5.1.2 5.1.1 5.1.0 5.0.5 5.0.4
What it is
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.
AV:N/AC:L/Au:N/C:P/I:N/A:N (NVD)
Published by MITRE on 20 June 2008. Last changed 16 June 2026.
Sources
Check one version you run: look CVE-2008-2666 up, or pick a product and version in the quick lookup.
Updated 1 December 2026.