CVE-2008-2665: PHP - Path Traversal
- Cve: CVE-2008-2665
- Name: PHP - Path Traversal
- Description: Directory traversal vulnerability in the posix_access function in PHP 5.2.6 and earlier allows remote attackers to bypass safe_mode restrictions via a .. (dot dot) in an http URL, which results in the URL being canonicalized to a local filename after the safe_mode check has successfully run.
- Impact: Attackers can access arbitrary files outside the intended directory, potentially leading to information disclosure or system compromise.
- Remediation: Update to PHP 5.2.7 or later versions that fix this issue.
- Vulnerability type: path_traversal
- Vulnerability impact: information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5
- Cvss vector: CVSS:2.0/AV:N/AC:L/Au:N/C:P/I:N/A:N
- Epss score: 0.03377
- Epss percentile: 0.8908
- Assignee: [email protected]
- Published at: 2008-06-20T01:41:00Z
- Age in days: 6731
- Modified at: 2026-06-16T22:54:11Z
- Public exploits total: 1
- References total: 17
- Products total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2008-2665
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits capped, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-22 | Improper Limitation of a Pathname to a Restricted Directory |
Public exploits
| Url | Source | Added date |
|---|---|---|
| http://securityreason.com/achievement_securityalert/54 | nvd | 2008-06-20 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| php:php | = 5.2.6 | no | nvd | /v1/products/php/php |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2008-06-20
- Remote: yes
- Exposed hosts: 6175026
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports