Path Traversal in PHP

CVE-2008-5658

Directory traversal vulnerability in the ZipArchive::extractTo function in PHP 5.2.6 and earlier allows context-dependent attackers to write arbitrary files via a ZIP file with a file whose name contains .. (dot dot) sequences.

Vulnerability class: Path Traversal (Directory Traversal)

Published · last modified .

CVSS v2 metric

CVSS v2 base score 7.5 (High). Vector: AV:N/AC:L/Au:N/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.

EPSS exploit prediction

EPSS 0.040, 90.8th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

  • PHP — versions 5.0.0, 5.0.1, 5.0.2

Weakness classification (CWE)

References