Bug 1527296 (CVE-2018-5345) - CVE-2018-5345 gcab: Extracting malformed .cab files causes stack smashing potentially leading to arbitrary code execution
Summary: CVE-2018-5345 gcab: Extracting malformed .cab files causes stack smashing pot...
Alias: CVE-2018-5345
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 1528141 1529602 1533173 1533174
Blocks: 1527298
TreeView+ depends on / blocked
Reported: 2017-12-19 07:02 UTC by Sam Fowler
Modified: 2019-09-29 14:28 UTC (History)
8 users (show)

Fixed In Version: gcab 1.0
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2018-03-19 14:29:13 UTC

Attachments (Terms of Use)

System ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:0350 normal SHIPPED_LIVE Important: gcab security update 2018-02-27 00:10:26 UTC

Description Sam Fowler 2017-12-19 07:02:13 UTC
Versions of gcab <= 7.4 are vulnerable to a stack-based buffer overflow when extracting maliciously constructed .cab files. An attacker could potentially exploit this to execute arbitrary code.

Original bug: 

Comment 1 Richard Hughes 2017-12-20 12:03:42 UTC
Upstream would like to make a new release before the holidays, but obviously would like to include the fix with the new tarball. Can we get some guidance on what we should do? Thanks.

Comment 2 Sam Fowler 2017-12-21 04:56:58 UTC
Created gcab tracking bugs for this issue:

Affects: fedora-all [bug 1528141]

Comment 6 Salvatore Bonaccorso 2018-01-12 07:57:56 UTC
Hi Sam Fowler, hi Richard,

Would it be possible to open up the original bug report? This has restricted access and there is no reference to either upstream commit fixing the issue or an upstream bug.

Is this bug about https://git.gnome.org/browse/gcab/commit/?id=c512f6ff0c82a1139b36db2b28f93edc01c74b4b ?


Comment 11 errata-xmlrpc 2018-02-26 19:05:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2018:0350 https://access.redhat.com/errata/RHSA-2018:0350

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