Bug 1380327 (CVE-2013-5653)

Summary: CVE-2013-5653 ghostscript: getenv and filenameforall ignore -dSAFER
Product: [Other] Security Response Reporter: Adam Mariš <amaris>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: abhgupta, carnil, cbuissar, deekej, dmcphers, jialiu, jokerman, kseifried, lmeyer, mmccomas, tiwillia, twaugh, zdohnal
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
It was found that the ghostscript functions getenv and filenameforall did not honor the -dSAFER option, usually used when processing untrusted documents, leading to information disclosure. A specially crafted postscript document could read environment variable and list directory respectively, from the target.
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-04 11:10:03 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 1390299, 1390300, 1390301, 1390302, 1390486    
Bug Blocks: 1380329    

Description Adam Mariš 2016-09-29 10:03:47 UTC
It was found that getenv and filenameforall ignore -dSAFER possibly allowing filesystem enumeration.

Upstream bug:


Upstream patch:




(HOME) getenv { print (\n) print } { (variable not found\n) print } ifelse

Comment 5 Cedric Buissart 2016-11-01 08:42:05 UTC
Created ghostscript tracking bugs for this issue:

Affects: fedora-all [bug 1390486]

Comment 12 errata-xmlrpc 2017-01-04 10:10:07 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2017:0014 https://rhn.redhat.com/errata/RHSA-2017-0014.html

Comment 13 errata-xmlrpc 2017-01-04 10:11:17 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2017:0013 https://rhn.redhat.com/errata/RHSA-2017-0013.html