PKWare PKZip Hostile Destination Path Vulnerability

BID:5933

Info

PKWare PKZip Hostile Destination Path Vulnerability

Bugtraq ID: 5933
Class: Access Validation Error
CVE: CVE-2001-1270
Remote: Yes
Local: No
Published: Jul 12 2001 12:00AM
Updated: Jul 11 2009 06:06PM
Credit: Reported by 3APA3A <[email protected]>.
Vulnerable: PKWare PKZip 4.0
PKWare PKZip 2.5.1
PKWare PKZip 2.5
- FreeBSD FreeBSD 5.0
- FreeBSD FreeBSD 4.6 -STABLE
- FreeBSD FreeBSD 4.6 -RELEASE
- FreeBSD FreeBSD 4.6
- FreeBSD FreeBSD 4.5 -STABLE
- FreeBSD FreeBSD 4.5 -RELEASE
- FreeBSD FreeBSD 4.5
- FreeBSD FreeBSD 4.4 -STABLE
- FreeBSD FreeBSD 4.4
Not Vulnerable: PKWare PKZip 5.5
PKWare PKZip 5.0

Discussion

PKWare PKZip Hostile Destination Path Vulnerability

PKWare PKZip is prone to a vulnerability in the handling of pathnames for archived files.

By specifying a path for an archived item which points outside the expected directory scope, the creator of the archive can cause the file to be extracted to arbitrary locations on the filesystem - including paths containing system binaries and other sensitive or confidential information.

This can be used to create or overwrite binaries in any desired location. Properly exploited, this grants the archive creator an elevation of privileges.

This issue is reported to exist in the console version of the software (pkzipc) and occurs when the recursive (-rec) command line option is specified during decompression.

Exploit / POC

PKWare PKZip Hostile Destination Path Vulnerability

There is no exploit required.

Solution / Fix

PKWare PKZip Hostile Destination Path Vulnerability

Solution:
Users should contact the vendor to determine if a fixed version is available for their operating system.

FreeBSD has released upgrades. Users are advised to upgrade their Ports
collection and reinstall the affected port.

References

PKWare PKZip Hostile Destination Path Vulnerability

References:

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report