{"id":"CVE-2008-5658","aliases":["DSA-1789-1","DTSA-188-1","EUVD-2008-5629","GHSA-3jwh-q6hx-pvmh","RHSA-2009:0350"],"status":"published","title":"Directory traversal vulnerability in the ZipArchive::extractTo function in PHP 5.2.6 and earlier...","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.","severity":{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.04028,"percentile":0.9066,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-22"],"published":"2008-12-17T20:00:00Z","modified":"2026-06-16T23:00:44Z","affected":[{"source":"osv","ecosystem":"Debian:4.0","package":"php5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.0+dfsg-8+etch15"}]}],"versions":["5.2.0-10","5.2.0-10+lenny1","5.2.0-11","5.2.0-8+etch1","5.2.0-8+etch10","5.2.0-8+etch11","5.2.0-8+etch11~p1","5.2.0-8+etch13","5.2.0-8+etch3","5.2.0-8+etch4","5.2.0-8+etch5~pu1","5.2.0-8+etch6","5.2.0-8+etch7","5.2.0-8+etch8","5.2.0-8+etch9","5.2.0-8+etch9~bpo31+1","5.2.0-9"],"bundled":8},{"source":"osv","ecosystem":"Debian:5.0","package":"php5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.6.dfsg.1-1+lenny3"}]}],"versions":["5.2.6.dfsg.1-1+lenny2"],"bundled":8},{"source":"osv","ecosystem":"Debian:5.0","package":"php5","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.6.dfsg.1-1+lenny2"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-bcmath","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-cli","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-common","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-dba","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-debuginfo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-devel","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-gd","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-imap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-ldap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-mbstring","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-mysql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-ncurses","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-odbc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-pdo","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-pgsql","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-snmp","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-soap","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-xml","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8},{"source":"osv","ecosystem":"Red Hat:rhel_application_stack:2","package":"php-xmlrpc","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:5.2.6-4.el5s2"}]}],"bundled":8}],"products":[{"vendor":"php","product":"php"}],"references":[{"url":"http://www.securityfocus.com/bid/32625","tags":["vdb-entry","x_refsource_BID","x_transferred"]},{"url":"http://marc.info/?l=bugtraq\u0026m=125631037611762\u0026w=2","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://www.securitytracker.com/id?1021303","tags":["vdb-entry","x_refsource_SECTRACK","x_transferred"]},{"url":"http://marc.info/?l=bugtraq\u0026m=124654546101607\u0026w=2","tags":["vendor-advisory","x_refsource_HP","x_transferred"]},{"url":"http://www.sektioneins.de/advisories/SE-2008-06.txt","tags":["x_refsource_MISC","x_transferred","Exploit"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01451.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"http://www.securityfocus.com/archive/1/501376/100/0/threaded","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://wiki.rpath.com/Advisories:rPSA-2009-0035","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://osvdb.org/50480","tags":["vdb-entry","x_refsource_OSVDB","x_transferred"]},{"url":"https://exchange.xforce.ibmcloud.com/vulnerabilities/47079","tags":["vdb-entry","x_refsource_XF","x_transferred"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2009-02/msg00002.html","tags":["vendor-advisory","x_refsource_SUSE","x_transferred"]},{"url":"http://www.redhat.com/support/errata/RHSA-2009-0350.html","tags":["vendor-advisory","x_refsource_REDHAT","x_transferred"]},{"url":"https://www.redhat.com/archives/fedora-package-announce/2009-May/msg01465.html","tags":["vendor-advisory","x_refsource_FEDORA","x_transferred"]},{"url":"http://secunia.com/advisories/35003","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.php.net/ChangeLog-5.php#5.2.7","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"http://www.openwall.com/lists/oss-security/2008/12/04/3","tags":["mailing-list","x_refsource_MLIST","x_transferred"]},{"url":"http://www.mandriva.com/security/advisories?name=MDVSA-2009:045","tags":["vendor-advisory","x_refsource_MANDRIVA","x_transferred"]},{"url":"http://archives.neohapsis.com/archives/bugtraq/2008-12/0039.html","tags":["mailing-list","x_refsource_BUGTRAQ","x_transferred"]},{"url":"http://secunia.com/advisories/35306","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://secunia.com/advisories/35650","tags":["third-party-advisory","x_refsource_SECUNIA","x_transferred"]},{"url":"http://www.debian.org/security/2009/dsa-1789","tags":["vendor-advisory","x_refsource_DEBIAN","x_transferred"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2008-5658","tags":["advisory"]},{"url":"https://github.com/advisories/GHSA-3jwh-q6hx-pvmh"},{"url":"https://access.redhat.com/errata/RHSA-2009:0350","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","tags":["article"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=459529","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=459572","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=474824","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=478425","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=478848","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=479272","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=480167","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=494530","tags":["report"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2009/rhsa-2009_0350.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2008-3658","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2008-3658","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2008-3658","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2008-3660","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2008-3660","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2008-3660","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2008-5498","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2008-5498","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2008-5498","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2008-5557","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2008-5557","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2008-5557","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2008-5658","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2008-5658","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2008-5814","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2008-5814","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2008-5814","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2009-0754","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2009-0754","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2009-0754","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2009-1271","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2009-1271","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2009-1271","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2008-5658","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.","status":"published","published":"2008-12-17T20:00:00Z","modified":"2024-08-07T11:04:44.067Z","updated_at":"2026-11-02T14:34:44.297409Z"}],"euvd":[{"id":"EUVD-2008-5629","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.","status":"published","published":"2008-12-17T20:00:00Z","modified":"2024-08-07T11:04:44Z","updated_at":"2026-11-03T01:38:42.372366Z"}],"ghsa":[{"id":"GHSA-3jwh-q6hx-pvmh","title":"Directory traversal vulnerability in the ZipArchive::extractTo function in PHP 5.2.6 and earlier...","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.","status":"published","published":"2022-05-14T02:39:44Z","modified":"2023-02-02T05:06:01Z","cwes":["CWE-22"],"updated_at":"2026-11-02T14:52:13.666892Z"}],"nvd":[{"id":"CVE-2008-5658","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.","status":"published","published":"2008-12-17T20:30:01.017Z","modified":"2026-06-16T23:00:44.81Z","cvss":[{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:01:30.411919Z"}],"osv":[{"id":"DSA-1789-1","title":"php5 - several vulnerabilities","status":"published","published":"2009-05-04T00:00:00Z","modified":"2026-03-09T01:21:04.686666Z","updated_at":"2026-11-02T15:46:14.734124Z"},{"id":"DTSA-188-1","title":"php5 - several vulnerabilities","status":"published","published":"2009-01-28T00:00:00Z","modified":"2026-03-09T01:00:51.012573Z","updated_at":"2026-11-02T15:46:18.716547Z"},{"id":"RHSA-2009:0350","title":"Red Hat Security Advisory: php security update","status":"published","published":"2024-09-15T17:47:04Z","modified":"2025-11-22T10:20:02Z","updated_at":"2026-11-02T15:53:00.468834Z"}]}}
