CVE-2017-8291

NameCVE-2017-8291
DescriptionArtifex 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SuSE, Mageia, GitHub code/issues, web search, more)
ReferencesDLA-932-1, DSA-3838-1
NVD severitymedium (attack range: remote)
Debian Bugs861295

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
ghostscript (PTS)wheezy9.05~dfsg-6.3+deb7u2vulnerable
wheezy (security)9.05~dfsg-6.3+deb7u7fixed
jessie (security), jessie9.06~dfsg-2+deb8u5fixed
stretch9.20~dfsg-3.2fixed
buster, sid9.21~dfsg-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
ghostscriptsource(unstable)9.20~dfsg-3.1medium861295
ghostscriptsourcejessie9.06~dfsg-2+deb8u5mediumDSA-3838-1
ghostscriptsourcewheezy9.05~dfsg-6.3+deb7u6mediumDLA-932-1

Notes

https://bugs.ghostscript.com/show_bug.cgi?id=697808 (duplicate of 697799)
https://bugs.ghostscript.com/show_bug.cgi?id=697799 (made private)
Full report viewable at: https://bugzilla.suse.com/show_bug.cgi?id=1036453
Fixed by: https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=04b37bbce174eed24edec7ad5b920eb93db4d47d
Fixed by: https://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=4f83478c88c2e05d6e8d79ca4557eb039354d2f3

Search for package or bug name: Reporting problems