CVE-2008-2666: PHP

Medium severity, CVSS 5.0. EPSS: 13.9% chance of exploitation in the next 30 days.

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.

Affected products

  • PHP PHP: up to and including 5.2.6; version 5.0 only; version 5.0.0 only; version 5.0.1 only; version 5.0.2 only; version 5.0.3 only; …

Published 2008-06-20. Last modified 2026-06-16.