Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 1537043 - (CVE-2018-1000035) CVE-2018-1000035 unzip: Heap-based buffer overflow in fileio.c:UzpPassword function allows code execution
CVE-2018-1000035 unzip: Heap-based buffer overflow in fileio.c:UzpPassword fu...
Status: NEW
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
low Severity low
: ---
: ---
Assigned To: Red Hat Product Security
impact=low,public=20180207,reported=2...
: Security
Depends On: 1537044 1543337
Blocks: 1537057
  Show dependency treegraph
 
Reported: 2018-01-22 05:33 EST by Adam Mariš
Modified: 2018-02-08 04:45 EST (History)
6 users (show)

See Also:
Fixed In Version: unzip 6.1c23
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed:
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Adam Mariš 2018-01-22 05:33:50 EST
Heap-based buffer overflow vulnerability in UzpPassword function was found, possibly allowing arbitrary code execution when uncompressing specially crafted password protected ZIP archives.

Vulnerable code:

[1591]  if ((prompt = (char *)malloc(2*FILNAMSIZ + 15)) != (char *)NULL) {
[1592]          sprintf(prompt, LoadFarString(PasswPrompt),
[1593]                                  FnFilter1(zfn), FnFilter2(efn));
...
[1595]  } 

The buffer can be overrun since the attacker can arbitrarily choose name for files residing inside archive file.
Comment 4 Adam Mariš 2018-01-22 07:48:01 EST
Acknowledgments:

Name: R. Freingruber (SEC Consult Vulnerability Lab)
Comment 5 Pedro Yóssis Silva Barbosa 2018-01-25 10:46:47 EST
Statement:

This issue affects the versions of unzip as shipped with Red Hat Enterprise Linux 5, 6 and 7. Red Hat Product Security has rated this issue as having Low security impact. A future update may address this issue. For additional information, refer to the Issue Severity Classification: https://access.redhat.com/security/updates/classification/.
Comment 7 Adam Mariš 2018-02-08 04:45:03 EST
Created unzip tracking bugs for this issue:

Affects: fedora-all [bug 1543337]

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