All vulnerabilities

Servers and applications

CVE-2008-2666

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.

Severity
Medium 5.0
Published
20 Jun 2008
Last changed
16 Jun 2026
Added to UpHeron
14 Oct 2026
Exploit chance
14% in the next 30 daysHigher than 96% of CVEs. EPSS by FIRST, 12 Nov 2026
Weakness
Path traversal (CWE-22)
Attack
Over the network · No login needed
Attacker can
Read some data
CVSS vector
AV:N/AC:L/Au:N/C:P/I:N/A:N
Sources
NVD

Affected software

SoftwareAffected versions
PHPServers and applications · cpe:a:php:php
  • Version 5.2.5
  • Version 5.2.4
  • Version 5.2.3
  • Version 5.2.2
All 23 release lines
  • Every version up to 5.2.6
  • Version 5.0-rc1
  • Version 5.0-rc2
  • Version 5.0-rc3
  • Version 5.0.0
  • Version 5.0.1
  • Version 5.0.2
  • Version 5.0.3
  • Version 5.0.4
  • Version 5.0.5
  • Version 5.1.0
  • Version 5.1.1
  • Version 5.1.2
  • Version 5.1.3
  • Version 5.1.4
  • Version 5.1.5
  • Version 5.1.6
  • Version 5.2.0
  • Version 5.2.1
  • Version 5.2.2
  • Version 5.2.3
  • Version 5.2.4
  • Version 5.2.5

References

  • NVD https://nvd.nist.gov/vuln/detail/CVE-2008-2666
  • CVE.org https://www.cve.org/CVERecord?id=CVE-2008-2666