Path traversal in PHP - CVE-2008-5658

 

Path traversal in PHP - CVE-2008-5658

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


Vulnerability identifier: #VU110333
CSH Severity: Medium
CVSS v4.0:
CVE-ID: CVE-2008-5658
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 ZipArchive::extractTo function in PHP 5.2.6 and earlier. A remote authenticated attacker can send a specially crafted HTTP request and context-dependent attackers to write arbitrary files via a ZIP file with a file whose name contains . (dot dot) sequences.


How to mitigate CVE-2008-5658

Install update from vendor's website.

Sources