Path traversal in PHP - CVE-2007-4825
Published: October 15, 2018 / Updated: June 8, 2025
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
Sources
- http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html
- http://osvdb.org/45902
- http://secunia.com/advisories/27102
- http://secunia.com/advisories/28658
- http://securityreason.com/securityalert/3119
- http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml
- http://www.php.net/ChangeLog-5.php#5.2.5
- http://www.php.net/releases/5_2_5.php
- http://www.securityfocus.com/archive/1/478985/100/0/threaded
- http://www.securityfocus.com/archive/1/478988/100/0/threaded
- http://www.securityfocus.com/archive/1/478989/100/0/threaded
- https://exchange.xforce.ibmcloud.com/vulnerabilities/36528