CVE-2008-5658
Directory traversal vulnerability in the ZipArchive::extractTo function in PHP 5.2.6 and earlier...
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.
Exploit likelihood
What each source reports
NVD Score used
7.5
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.
- Record
CVE-2008-5658- CVSS 2.0
- 7.5 High
AV:N/AC:L/Au:N/C:P/I:P/A:P - Weakness
- CWE-22
- Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2008-5658- Updated
- 2026-11-02
EUVDEUVD-2008-5629 No score
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.
- Record
EUVD-2008-5629- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-3jwh-q6hx-pvmh No score
Directory traversal vulnerability in the ZipArchive::extractTo function in PHP 5.2.6 and earlier...
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.
- Record
GHSA-3jwh-q6hx-pvmh- Weakness
- CWE-22
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
php5Debian:4.0 |
before 5.2.0+dfsg-8+etch15, plus listed versions 5.2.0-105.2.0-10+lenny15.2.0-115.2.0-8+etch15.2.0-8+etch10 Show 12 moreShow less5.2.0-8+etch115.2.0-8+etch11~p15.2.0-8+etch135.2.0-8+etch35.2.0-8+etch45.2.0-8+etch5~pu15.2.0-8+etch65.2.0-8+etch75.2.0-8+etch85.2.0-8+etch95.2.0-8+etch9~bpo31+15.2.0-9 |
5.2.0+dfsg-8+etch15 |
php5Debian:5.0 |
before 5.2.6.dfsg.1-1+lenny3, plus listed versions 5.2.6.dfsg.1-1+lenny2 |
5.2.6.dfsg.1-1+lenny3 |
php5Debian:5.0 |
before 5.2.6.dfsg.1-1+lenny2 | 5.2.6.dfsg.1-1+lenny2 |
phpRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-bcmathRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-cliRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-commonRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-dbaRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-debuginfoRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-develRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
Show 13 moreShow less
| Package | Affected | Fixed |
|---|---|---|
php-gdRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-imapRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-ldapRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-mbstringRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-mysqlRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-ncursesRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-odbcRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-pdoRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-pgsqlRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-snmpRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-soapRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-xmlRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
php-xmlrpcRed Hat:rhel_application_stack:2 |
before 0:5.2.6-4.el5s2 | 0:5.2.6-4.el5s2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2008-5658 is a high vulnerability (CVSS 7.5) in Php, published December 17, 2008. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 4.03%, the 90th percentile. Fixed in php5 5.2.0+dfsg-8+etch15.
References
securityfocus.com/bid/32625
marc.info?l=bugtraq&m=125631037611762&w=2
securitytracker.com/id?1021303
marc.info?l=bugtraq&m=124654546101607&w=2
sektioneins.de/advisories/SE-2008-06.txt
redhat.com/archives/fedora-package-announce/2009-May/msg01451.html
Show 51 moreShow less
securityfocus.com/archive/1/501376/100/0/threaded
wiki.rpath.com/Advisories:rPSA-2009-0035
osvdb.org/50480
exchange.xforce.ibmcloud.com/vulnerabilities/47079
lists.opensuse.org/opensuse-security-announce/2009-02/msg00002.html
redhat.com/support/errata/RHSA-2009-0350.html
redhat.com/archives/fedora-package-announce/2009-May/msg01465.html
secunia.com/advisories/35003
php.net/ChangeLog-5.php
openwall.com/lists/oss-security/2008/12/04/3
mandriva.com/security/advisories?name=MDVSA-2009:045
archives.neohapsis.com/archives/bugtraq/2008-12/0039.html
secunia.com/advisories/35306
secunia.com/advisories/35650
debian.org/security/2009/dsa-1789
nvd.nist.gov/vuln/detail/CVE-2008-5658
github.com/advisories/GHSA-3jwh-q6hx-pvmh
access.redhat.com/errata/RHSA-2009:0350
access.redhat.com/security/updates/classification
bugzilla.redhat.com/show_bug.cgi?id=459529
bugzilla.redhat.com/show_bug.cgi?id=459572
bugzilla.redhat.com/show_bug.cgi?id=474824
bugzilla.redhat.com/show_bug.cgi?id=478425
bugzilla.redhat.com/show_bug.cgi?id=478848
bugzilla.redhat.com/show_bug.cgi?id=479272
bugzilla.redhat.com/show_bug.cgi?id=480167
bugzilla.redhat.com/show_bug.cgi?id=494530
security.access.redhat.com/data/csaf/v2/advisories/2009/rhsa-2009_0350.json
access.redhat.com/security/cve/CVE-2008-3658
cve.org/CVERecord?id=CVE-2008-3658
nvd.nist.gov/vuln/detail/CVE-2008-3658
access.redhat.com/security/cve/CVE-2008-3660
cve.org/CVERecord?id=CVE-2008-3660
nvd.nist.gov/vuln/detail/CVE-2008-3660
access.redhat.com/security/cve/CVE-2008-5498
cve.org/CVERecord?id=CVE-2008-5498
nvd.nist.gov/vuln/detail/CVE-2008-5498
access.redhat.com/security/cve/CVE-2008-5557
cve.org/CVERecord?id=CVE-2008-5557
nvd.nist.gov/vuln/detail/CVE-2008-5557
access.redhat.com/security/cve/CVE-2008-5658
cve.org/CVERecord?id=CVE-2008-5658
access.redhat.com/security/cve/CVE-2008-5814
cve.org/CVERecord?id=CVE-2008-5814
nvd.nist.gov/vuln/detail/CVE-2008-5814
access.redhat.com/security/cve/CVE-2009-0754
cve.org/CVERecord?id=CVE-2009-0754
nvd.nist.gov/vuln/detail/CVE-2009-0754
access.redhat.com/security/cve/CVE-2009-1271
cve.org/CVERecord?id=CVE-2009-1271
nvd.nist.gov/vuln/detail/CVE-2009-1271