Bug 1549734 (CVE-2018-7442)

Summary: CVE-2018-7442 leptonica: directory traversal in gplot rootname argument
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: jkucera, manisandro, rhel8-maint
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-10-21 19:55:36 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: 1549738, 1549735, 1549736, 1549737    
Bug Blocks:    

Description Laura Pardo 2018-02-27 17:55:07 UTC
An issue was discovered in Leptonica through 1.75.3. The gplotMakeOutput function does not block '/' characters in the gplot rootname argument, potentially leading to path traversal and arbitrary file overwrite. 


References:
https://lists.debian.org/debian-lts/2018/02/msg00086.html

Comment 1 Laura Pardo 2018-02-27 17:55:29 UTC
Created leptonica tracking bugs for this issue:

Affects: epel-all [bug 1549738]
Affects: fedora-all [bug 1549735]


Created mingw-leptonica tracking bugs for this issue:

Affects: fedora-all [bug 1549737]