{"id":"CVE-2008-2666","aliases":["EUVD-2008-2661","GHSA-h2vh-q3r8-9vv4"],"status":"published","title":"Multiple directory traversal vulnerabilities in PHP 5.2.6 and earlier allow context-dependent...","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.","severity":{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.13923,"percentile":0.96566,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":true,"fix_available":false},"cwes":["CWE-22"],"published":"2008-06-20T01:00:00Z","modified":"2026-06-16T22:54:11Z","exploits":[{"source":"exploitdb","id":"EDB-31937","title":"PHP 5.2.6 - 'chdir()' Function http URL Argument Safe_mode Restriction Bypass","type":"local","platform":"php","date":"2008-06-18","verified":true,"url":"https://www.exploit-db.com/exploits/31937"}],"products":[{"vendor":"php","product":"php"}],"references":[{"url":"http://secunia.com/advisories/32746","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://marc.info/?l=bugtraq\u0026m=125631037611762\u0026w=2","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://support.apple.com/kb/HT3549","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://securityreason.com/securityalert/3942","tags":["third-party-advisory","x_refsource_SREASON","x_transferred"]},{"url":"http://security.gentoo.org/glsa/glsa-200811-05.xml","tags":["vendor-advisory","x_refsource_GENTOO","x_transferred"]},{"url":"http://marc.info/?l=bugtraq\u0026m=124654546101607\u0026w=2","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/501376/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://wiki.rpath.com/Advisories:rPSA-2009-0035","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.securityfocus.com/bid/29796","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://secunia.com/advisories/35074","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://lists.apple.com/archives/security-announce/2009/May/msg00002.html","tags":["vendor-advisory","x_refsource_APPLE","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/43198","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://www.us-cert.gov/cas/techalerts/TA09-133A.html","tags":["third-party-advisory","x_refsource_CERT","x_transferred","US Government Resource"]},{"url":"http://www.vupen.com/english/advisories/2009/1297","tags":["vdb-entry","x_refsource_VUPEN","x_transferred"]},{"url":"http://www.securitytracker.com/id?1020328","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"http://secunia.com/advisories/35650","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://securityreason.com/achievement_securityalert/55","tags":["third-party-advisory","x_refsource_SREASONRES","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2008-2666"},{"url":"https://github.com/advisories/GHSA-h2vh-q3r8-9vv4"}],"sources":{"cve":[{"id":"CVE-2008-2666","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.","status":"published","published":"2008-06-20T01:00:00Z","modified":"2024-08-07T09:05:30.452Z","updated_at":"2026-11-02T14:34:45.083276Z"}],"euvd":[{"id":"EUVD-2008-2661","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.","status":"published","published":"2008-06-20T01:00:00Z","modified":"2024-08-07T09:05:30Z","updated_at":"2026-11-03T01:38:55.740161Z"}],"ghsa":[{"id":"GHSA-h2vh-q3r8-9vv4","title":"Multiple directory traversal vulnerabilities in PHP 5.2.6 and earlier allow context-dependent...","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.","status":"published","published":"2022-05-01T23:52:06Z","modified":"2023-01-31T05:06:32Z","cwes":["CWE-22"],"updated_at":"2026-11-02T14:49:02.986271Z"}],"nvd":[{"id":"CVE-2008-2666","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.","status":"published","published":"2008-06-20T01:41:00Z","modified":"2026-06-16T22:54:11.787Z","cvss":[{"version":"2.0","score":5,"vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:01:26.626719Z"}]}}
