CVE-2008-5658 Path traversal in n/a
Attackers can write arbitrary files via path traversal in PHP's ZipArchive::extractTo function, potentially compromising the server.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2008-5658?
CVE-2008-5658 is a high-severity path traversal vulnerability in Php Php, published on 17 Dec 2008. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
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.
Weakness: CWE-22
Which versions are affected by CVE-2008-5658?
It affects 1 product.
Products include Php Php.
How do I fix CVE-2008-5658?
Upgrade to a fixed version.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2008-5658 being exploited?
There is no known exploitation of CVE-2008-5658 in the wild and no public exploit code.
Other vulnerabilities in Php Php
Sources
Also known as GHSA-3jwh-q6hx-pvmh.