Bug 1635888 (CVE-2018-17828) - CVE-2018-17828 zziplib: directory traversal in unzzip_cat in the bins/unzzipcat-mem.c
Summary: CVE-2018-17828 zziplib: directory traversal in unzzip_cat in the bins/unzzipc...
Status: NEW
Alias: CVE-2018-17828
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1635889 1641635 1772447 1635890
Blocks: 1635891
TreeView+ depends on / blocked
Reported: 2018-10-03 20:36 UTC by Laura Pardo
Modified: 2019-11-14 11:35 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
It was discovered that zziplib is vulnerable to a directory traversal flaw in most of its unzip binaries, including unzip-mem, unzzipcat-mem, unzzipcat-big, unzzipcat-mix, and unzzipcat-zip. An attacker may use this flaw to write files outside the intended target directory, overwriting existing files, or creating new ones.
Clone Of:
Last Closed:

Attachments (Terms of Use)

Description Laura Pardo 2018-10-03 20:36:19 UTC
A flaw was found in ZZIPlib 0.13.69. A directory traversal vulnerability allows attackers to overwrite arbitrary files via a .. (dot dot) in a zip file, because of the function unzzip_cat in the bins/unzzipcat-mem.c file. 


Comment 1 Laura Pardo 2018-10-03 20:36:47 UTC
Created zziplib tracking bugs for this issue:

Affects: fedora-all [bug 1635889]

Comment 4 Riccardo Schirone 2018-10-22 11:17:04 UTC
The same flaw is present in unzzipcat-big.c, unzzipcat-mix.c and unzzipcat-zip.c.

Comment 5 Riccardo Schirone 2018-10-22 11:46:14 UTC
The same problem is also present in unzip-mem.c.

Proposed patch for unzip-mem.c:

Note You need to log in before you can comment on or make changes to this bug.