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...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2018-17828
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 1635889 1635890 1641635 1772447 1986843
Blocks: 1635891
TreeView+ depends on / blocked
 
Reported: 2018-10-03 20:36 UTC by Laura Pardo
Modified: 2023-09-22 09:21 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:
Environment:
Last Closed: 2020-03-31 22:33:22 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2020:1178 0 None None None 2020-03-31 19:31:22 UTC
Red Hat Product Errata RHSA-2020:1653 0 None None None 2020-04-28 15:36:56 UTC

Internal Links: 1986843

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


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