Path Traversal in PHP

CVE-2008-2666

Multiple directory traversal vulnerabilities in PHP 5.2.6 and earlier allow context-dependent attackers to bypass safe_mode restrictions by creating a subdirectory named http: and then placing ../ (dot dot slash) sequences in an http URL argument to the (1) chdir or (2) ftok function.

Vulnerability class: Path Traversal (Directory Traversal)

Published · last modified .

CVSS v2 metric

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

EPSS exploit prediction

EPSS 0.139, 96.6th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

  • PHP — versions 5.0, 5.0.0, 5.0.1

Weakness classification (CWE)

References