Bug 1635888 (CVE-2018-17828)

Summary: CVE-2018-17828 zziplib: directory traversal in unzzip_cat in the bins/unzzipcat-mem.c
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abokovoy, jamartis
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-31 22:33:22 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1635889, 1635890, 1641635, 1772447, 1986843    
Bug Blocks: 1635891    

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. 


References:
https://github.com/gdraheim/zziplib/issues/62

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:
https://github.com/gdraheim/zziplib/files/2482517/patch.txt

Comment 8 errata-xmlrpc 2020-03-31 19:31:20 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2020:1178 https://access.redhat.com/errata/RHSA-2020:1178

Comment 9 Product Security DevOps Team 2020-03-31 22:33:22 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2018-17828

Comment 10 errata-xmlrpc 2020-04-28 15:36:52 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2020:1653 https://access.redhat.com/errata/RHSA-2020:1653