An issue was discovered in Artifex Ghostscript before 9.26. LockSafetyParams is not checked correctly if another device is used.
https://www.ghostscript.com/doc/9.26/History9.htm#Version9.26
https://www.debian.org/security/2018/dsa-4346
https://usn.ubuntu.com/3831-1/
https://security.gentoo.org/glsa/201811-12
https://lists.debian.org/debian-lts-announce/2018/11/msg00036.html
https://git.ghostscript.com/?p=ghostpdl.git%3Ba=commit%3Bh=661e8d8fb8248c38d67958beda32f3a5876d0c3f
https://bugs.ghostscript.com/show_bug.cgi?id=700176