It was discovered that the ghostscript did not properly validate the operands passed to the setcolor function. A specially crafted PostScript document could possibly exploit this to crash ghostscript or, possibly, execute arbitrary code in the context of the ghostscript process.
External References: http://seclists.org/oss-sec/2018/q3/142
Mitigation: Please see https://bugzilla.redhat.com/show_bug.cgi?id=1619748#c3
Patch: http://git.ghostscript.com/?p=ghostpdl.git;a=commitdiff;h=b326a716
Acknowledgments: Name: Tavis Ormandy (Google Project Zero)
Statement: This issue did not affect the versions of ghostscript as shipped with Red Hat Enterprise Linux 5, 6, and 7.