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 productsnot 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
- First public exploit (EDB-31937)
- 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
-
marc.info
/?l=bugtraq&m=125631037611762&w=2
vendor-advisory
-
security.gentoo.org
/glsa/glsa-200811-05.xml
vendor-advisory
-
marc.info
/?l=bugtraq&m=124654546101607&w=2
vendor-advisory
-
lists.apple.com
/archives/security-announce/2009/May/msg00002.html
vendor-advisory
-
secunia.com
/advisories/32746
third-party-advisory
- support.apple.com /kb/HT3549
-
securityreason.com
/securityalert/3942
third-party-advisory
-
securityfocus.com
/archive/1/501376/100/0/threaded
mailing-list
- wiki.rpath.com /Advisories:rPSA-2009-0035
-
securityfocus.com
/bid/29796
vdb-entry
-
secunia.com
/advisories/35074
third-party-advisory
-
exchange.xforce.ibmcloud.com
/vulnerabilities/43198
vdb-entry
-
us-cert.gov
/cas/techalerts/TA09-133A.html
third-party-advisory, us-government-resource
-
vupen.com
/english/advisories/2009/1297
vdb-entry
-
securitytracker.com
/id?1020328
vdb-entry
-
secunia.com
/advisories/35650
third-party-advisory
-
securityreason.com
/achievement_securityalert/55
third-party-advisory
Sources
- CVE List CVE-2008-2666
- NVD CVE-2008-2666
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.