Skip to content
Fencer Vulns
medium 5.0

CVE-2008-2666 json

Multiple directory traversal vulnerabilities in PHP 5.2.6 and earlier allow context-dependent attackers to bypass safe_mode restrictions by…

published 2008-06-20 18 y ago modified 2026-06-16 4 mo ago also EUVD-2008-2661

cvss
5.0
version 2.0, NVD
cisa kev
Not listed
not in CISA's catalog
epss
13.9%
EPSS 13.9% chance of exploitation in 30 days, percentile 96%
public exploits
1
Exploit-DB

Summary

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.

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2008-2666 updated

php: chdir(), ftok() (standard ext) safe_mode bypass safe_mode bypass

  • Red Hat All currently supported Red Hat products
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

Timeline

  1. First public exploit (EDB-31937)
  2. Published

Exploit prediction

13.92% chance of exploitation in the next 30 days, higher than 96% of all scored CVEs (FIRST EPSS, 2026-11-08).

Exploits and checks

  • EDB-31937 PHP 5.2.6 - 'chdir()' Function http URL Argument Safe_mode Restriction Bypass local, 2008-06-18

CVSS scores

assigned by version score vector
NVD 2.0 5.0 AV:N/AC:L/Au:N/C:P/I:N/A:N

Classification

Weakness
  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory
Technology feeds

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.