U.S. flag   An official website of the United States government
Dot gov

Official websites use .gov
A .gov website belongs to an official government organization in the United States.

Https

Secure .gov websites use HTTPS
A lock (Dot gov) or https:// means you've safely connected to the .gov website. Share sensitive information only on official, secure websites.

CVE-2008-5658 Detail

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.


Metrics

NVD enrichment efforts reference publicly available information to associate vector strings. CVSS information contributed by other sources is also displayed.
CVSS 2.0 Severity and Vector Strings:

National Institute of Standards and Technology
NIST: NVD
Base Score:  7.5 HIGH
Vector:  (AV:N/AC:L/Au:N/C:P/I:P/A:P)

Vendor Statements (disclaimer)

Official Statement from Red Hat (04/15/2009)

This issue did not affect PHP versions as shipped in Red Hat Enterprise Linux 2.1, 3, 4, and 5, and Red Hat Application Stack v1. PHP version in Red Hat Application Stack v2 was fixed via: https://rhn.redhat.com/errata/RHSA-2009-0350.html

References to Advisories, Solutions, and Tools

By selecting these links, you will be leaving NIST webspace. We have provided these links to other web sites because they may have information that would be of interest to you. No inferences should be drawn on account of other sites being referenced, or not, from this page. There may be other web sites that are more appropriate for your purpose. NIST does not necessarily endorse the views expressed, or concur with the facts presented on these sites. Further, NIST does not endorse any commercial products that may be mentioned on these sites. Please address comments about this page to nvd@nist.gov.

URL Source(s) Tag(s)
http://archives.neohapsis.com/archives/bugtraq/2008-12/0039.html CVE, MITRE
http://lists.opensuse.org/opensuse-security-announce/2009-02/msg00002.html CVE, MITRE
http://marc.info/?l=bugtraq&m=124654546101607&w=2 CVE, MITRE
http://marc.info/?l=bugtraq&m=125631037611762&w=2 CVE, MITRE
http://osvdb.org/50480 CVE, MITRE
http://secunia.com/advisories/35003 CVE, MITRE
http://secunia.com/advisories/35306 CVE, MITRE
http://secunia.com/advisories/35650 CVE, MITRE
http://wiki.rpath.com/Advisories:rPSA-2009-0035 CVE, MITRE
http://www.debian.org/security/2009/dsa-1789 CVE, MITRE
http://www.mandriva.com/security/advisories?name=MDVSA-2009:045 CVE, MITRE
http://www.openwall.com/lists/oss-security/2008/12/04/3 CVE, MITRE
http://www.php.net/ChangeLog-5.php#5.2.7 CVE, MITRE
http://www.redhat.com/support/errata/RHSA-2009-0350.html CVE, MITRE
http://www.securityfocus.com/archive/1/501376/100/0/threaded CVE, MITRE
http://www.securityfocus.com/bid/32625 CVE, MITRE
http://www.securitytracker.com/id?1021303 CVE, MITRE
http://www.sektioneins.de/advisories/SE-2008-06.txt CVE, MITRE Exploit 
https://exchange.xforce.ibmcloud.com/vulnerabilities/47079 CVE, MITRE
https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01451.html CVE, MITRE
https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01465.html CVE, MITRE

Weakness Enumeration

CWE-ID CWE Name Source
CWE-22 Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') cwe source acceptance level NIST  

Known Affected Software Configurations Switch to CPE 2.2

Configuration 1 ( hide )
 cpe:2.3:a:php:php:5.0.0:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:beta1:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:beta2:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:beta3:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:beta4:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:rc1:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:rc2:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.0:rc3:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.1:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.2:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.3:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.4:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.0.5:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.1.0:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.1.1:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.1.2:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.1.3:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.1.4:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.1.5:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.1.6:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.0:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.1:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.2:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.3:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.4:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:5.2.5:*:*:*:*:*:*:*
   Show Matching CPE(s)
 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
   Show Matching CPE(s)
Up to (including)
5.2.6

Denotes Vulnerable Software
Are we missing a CPE here? Please let us know.

Change History

5 change records found show changes

Quick Info

CVE Dictionary Entry:
CVE-2008-5658
NVD Published Date:
12/17/2008
NVD Last Modified:
04/08/2025
Source:
MITRE