CVE-2008-2666
publishedphp: chdir(), ftok() (standard ext) safe_mode bypass safe_mode bypass
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
Description
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
17- APPLE-SA-2009-05-12 http://lists.apple.com/archives/security-announce/2009/May/msg00002.html
- SSRT090085 http://marc.info/?l=bugtraq&m=124654546101607&w=2
- HPSBUX02465 http://marc.info/?l=bugtraq&m=125631037611762&w=2
- 32746 http://secunia.com/advisories/32746
- 35074 http://secunia.com/advisories/35074
- 35650 http://secunia.com/advisories/35650
- GLSA-200811-05 http://security.gentoo.org/glsa/glsa-200811-05.xml
- 20080617 PHP 5.2.6 chdir(),ftok() (standard ext) safe_mode bypass http://securityreason.com/achievement_securityalert/55
- 3942 http://securityreason.com/securityalert/3942
- http://support.apple.com/kb/HT3549
- http://wiki.rpath.com/Advisories:rPSA-2009-0035
- 20090302 rPSA-2009-0035-1 php php-cgi php-imap php-mcrypt php-mysql php-mysqli php-pgsql php-soap php-xsl php5 php5-cgi php5-imap php5-mcrypt php5-mysql php5-mysqli php5-pear php5-pgsql php5-soap php5-xsl http://www.securityfocus.com/archive/1/501376/100/0/threaded
- 29796 http://www.securityfocus.com/bid/29796
- 1020328 http://www.securitytracker.com/id?1020328
- TA09-133A http://www.us-cert.gov/cas/techalerts/TA09-133A.html
- ADV-2009-1297 http://www.vupen.com/english/advisories/2009/1297
- php-chdir-ftoc-security-bypass(43198) https://exchange.xforce.ibmcloud.com/vulnerabilities/43198
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 203113ca3354b6e6a37b44e132a1cc88305d669d820be58e36e1d24b02996ed2
- Ingested
- 23 Sep 2026, 07:38:24 UTC
- Source record
- Official CVE record