Artifex Ghostscript through 2017-04-26 allows -dSAFER bypass and remote command execution via .rsdparams type confusion with a "/OutputFile (%pipe%" substring in a crafted .eps document that is an input to the gs program, as exploited in the wild in April 2017.
https://www.exploit-db.com/exploits/41955/
https://security.gentoo.org/glsa/201708-06
https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=04b37bbce174eed24edec7ad5b920eb93db4d47d
https://bugzilla.suse.com/show_bug.cgi?id=1036453
https://bugzilla.redhat.com/show_bug.cgi?id=1446063
https://bugs.ghostscript.com/show_bug.cgi?id=697808
https://access.redhat.com/errata/RHSA-2017:1230
http://www.securityfocus.com/bid/98476