Path traversal in PHP - CVE-2008-2665

 

Path traversal in PHP - CVE-2008-2665

Published: October 11, 2018 / Updated: June 8, 2025


Vulnerability identifier: #VU110342
CSH Severity: Medium
CVSS v4.0:
CVE-ID: CVE-2008-2665
CWE-ID: CWE-22
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: PHP Group
Affected software:
PHP

Detailed vulnerability description

The vulnerability allows a remote attacker to perform directory traversal attacks.

The vulnerability exists due to input validation error when processing directory traversal sequences in the posix_access function in PHP 5.2.6 and earlier. A remote authenticated attacker can send a specially crafted HTTP request and 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.


How to mitigate CVE-2008-2665

Install update from vendor's website.

Sources