{"id":"UBUNTU-CVE-2016-8602","details":"The .sethalftone5 function in psi/zht2.c in Ghostscript before 9.21 allows remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted Postscript document that calls .sethalftone5 with an empty operand stack.","modified":"2026-01-30T01:26:05.363128Z","published":"2016-10-12T00:00:00Z","related":["USN-3148-1"],"upstream":["CVE-2016-8602"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2016-8602"},{"type":"REPORT","url":"http://openwall.com/lists/oss-security/2016/10/11/7"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3148-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2016-8602"}],"affected":[{"package":{"name":"ghostscript","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/ghostscript@9.10~dfsg-0ubuntu10.5?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.10~dfsg-0ubuntu10.5"}]}],"versions":["9.10~dfsg-0ubuntu2","9.10~dfsg-0ubuntu3","9.10~dfsg-0ubuntu4","9.10~dfsg-0ubuntu5","9.10~dfsg-0ubuntu6","9.10~dfsg-0ubuntu7","9.10~dfsg-0ubuntu8","9.10~dfsg-0ubuntu9","9.10~dfsg-0ubuntu10","9.10~dfsg-0ubuntu10.1","9.10~dfsg-0ubuntu10.2","9.10~dfsg-0ubuntu10.3","9.10~dfsg-0ubuntu10.4"],"ecosystem_specific":{"binaries":[{"binary_version":"9.10~dfsg-0ubuntu10.5","binary_name":"ghostscript"},{"binary_version":"9.10~dfsg-0ubuntu10.5","binary_name":"ghostscript-x"},{"binary_version":"9.10~dfsg-0ubuntu10.5","binary_name":"libgs-dev"},{"binary_version":"9.10~dfsg-0ubuntu10.5","binary_name":"libgs9"},{"binary_version":"9.10~dfsg-0ubuntu10.5","binary_name":"libgs9-common"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-8602.json"}},{"package":{"name":"ghostscript","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ghostscript@9.18~dfsg~0-0ubuntu2.2?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.18~dfsg~0-0ubuntu2.2"}]}],"versions":["9.16~dfsg~0-0ubuntu3","9.16~dfsg~0-0ubuntu4","9.18~dfsg~0-0ubuntu1","9.18~dfsg~0-0ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"9.18~dfsg~0-0ubuntu2.2","binary_name":"ghostscript"},{"binary_version":"9.18~dfsg~0-0ubuntu2.2","binary_name":"ghostscript-x"},{"binary_version":"9.18~dfsg~0-0ubuntu2.2","binary_name":"libgs-dev"},{"binary_version":"9.18~dfsg~0-0ubuntu2.2","binary_name":"libgs9"},{"binary_version":"9.18~dfsg~0-0ubuntu2.2","binary_name":"libgs9-common"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2016/UBUNTU-CVE-2016-8602.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}