The getenv and filenameforall functions in Ghostscript 9.10 ignore the "-dSAFER" argument, which allows remote attackers to read data via a crafted postscript file.
https://bugzilla.redhat.com/show_bug.cgi?id=1380327
https://bugs.ghostscript.com/show_bug.cgi?id=697169
https://bugs.ghostscript.com/show_bug.cgi?id=694724
http://www.securityfocus.com/bid/96497
http://www.openwall.com/lists/oss-security/2016/09/29/5
http://www.openwall.com/lists/oss-security/2016/09/29/28
http://www.debian.org/security/2016/dsa-3691