Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1380327 - (CVE-2013-5653) CVE-2013-5653 ghostscript: getenv and filenameforall ignore -dSAFER
CVE-2013-5653 ghostscript: getenv and filenameforall ignore -dSAFER
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20131021,repor...
: Security
Depends On: 1390299 1390300 1390301 1390302 1390486
Blocks: 1380329
  Show dependency treegraph
 
Reported: 2016-09-29 06:03 EDT by Adam Mariš
Modified: 2017-01-04 06:10 EST (History)
13 users (show)

See Also:
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 06:10:03 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2017:0013 normal SHIPPED_LIVE Moderate: ghostscript security update 2017-01-04 10:09:56 EST
Red Hat Product Errata RHSA-2017:0014 normal SHIPPED_LIVE Moderate: ghostscript security update 2017-01-04 10:09:47 EST

  None (edit)
Description Adam Mariš 2016-09-29 06:03:47 EDT
It was found that getenv and filenameforall ignore -dSAFER possibly allowing filesystem enumeration.

Upstream bug:

http://bugs.ghostscript.com/show_bug.cgi?id=694724

Upstream patch:

http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=ab109aaeb3ddba59518b036fb288402a65cf7ce8

Reference:
http://seclists.org/oss-sec/2016/q3/651


Reproducer:

%!PS
(HOME) getenv { print (\n) print } { (variable not found\n) print } ifelse
Comment 5 Cedric Buissart 2016-11-01 04:42:05 EDT
Created ghostscript tracking bugs for this issue:

Affects: fedora-all [bug 1390486]
Comment 12 errata-xmlrpc 2017-01-04 05:10:07 EST
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 05:11:17 EST
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

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