Bug 1644216 (CVE-2018-18586)

Summary: CVE-2018-18586 libmspack: Directory traversal in chmextract.c
Product: [Other] Security Response Reporter: Andrej Nemec <anemec>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dan, janfrode, jorti, ms, rdieter, rjones
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: libmspack 0.8, cabextract 1.8 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 10:41:11 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: 1648376    
Bug Blocks: 1644217    

Description Andrej Nemec 2018-10-30 09:27:28 UTC
** DISPUTED ** chmextract.c in the chmextract sample program, as distributed with libmspack before 0.8alpha, does not protect against absolute/relative pathnames in CHM files, leading to Directory Traversal. NOTE: the vendor disputes that this is a libmspack vulnerability, because chmextract.c was only intended as a source-code example, not a supported application.

Upstream patch:

https://github.com/kyz/libmspack/commit/7cadd489698be117c47efcadd742651594429e6d

References:

https://www.openwall.com/lists/oss-security/2018/10/22/1

Comment 1 Stefan Cornelius 2018-11-09 15:05:54 UTC
Statement:

This issue did not affect the versions of libmspack as shipped with Red Hat Enterprise Linux 7.