Path traversal in PHP - CVE-2007-4825

 

Path traversal in PHP - CVE-2007-4825

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


Vulnerability identifier: #VU110363
CSH Severity: Medium
CVSS v4.0:
CVE-ID: CVE-2007-4825
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 PHP 5.2.4 and earlier. A remote authenticated attacker can send a specially crafted HTTP request and attackers to bypass open_basedir restrictions and possibly execute arbitrary code via a . (dot dot) in the dl function.


How to mitigate CVE-2007-4825

Install update from vendor's website.

Sources