{"id":"UBUNTU-CVE-2017-9835","details":"The gs_alloc_ref_array function in psi/ialloc.c in Artifex Ghostscript 9.21 allows remote attackers to cause a denial of service (heap-based buffer overflow and application crash) or possibly have unspecified other impact via a crafted PostScript document. This is related to a lack of an integer overflow check in base/gsalloc.c.","modified":"2026-04-22T12:41:10.306053Z","published":"2017-07-26T00:00:00Z","related":["USN-3403-1"],"upstream":["CVE-2017-9835"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2017-9835"},{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-3403-1"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2017-9835"}],"affected":[{"package":{"name":"ghostscript","ecosystem":"Ubuntu:14.04:LTS","purl":"pkg:deb/ubuntu/ghostscript@9.10~dfsg-0ubuntu10.10?arch=source&distro=trusty"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.10~dfsg-0ubuntu10.10"}]}],"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","9.10~dfsg-0ubuntu10.5","9.10~dfsg-0ubuntu10.6","9.10~dfsg-0ubuntu10.7","9.10~dfsg-0ubuntu10.9"],"ecosystem_specific":{"binaries":[{"binary_name":"ghostscript","binary_version":"9.10~dfsg-0ubuntu10.10"},{"binary_name":"ghostscript-x","binary_version":"9.10~dfsg-0ubuntu10.10"},{"binary_name":"libgs9","binary_version":"9.10~dfsg-0ubuntu10.10"},{"binary_name":"libgs9-common","binary_version":"9.10~dfsg-0ubuntu10.10"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-9835.json"}},{"package":{"name":"ghostscript","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/ghostscript@9.18~dfsg~0-0ubuntu2.7?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"9.18~dfsg~0-0ubuntu2.7"}]}],"versions":["9.16~dfsg~0-0ubuntu3","9.16~dfsg~0-0ubuntu4","9.18~dfsg~0-0ubuntu1","9.18~dfsg~0-0ubuntu2","9.18~dfsg~0-0ubuntu2.2","9.18~dfsg~0-0ubuntu2.3","9.18~dfsg~0-0ubuntu2.4","9.18~dfsg~0-0ubuntu2.6"],"ecosystem_specific":{"binaries":[{"binary_name":"ghostscript","binary_version":"9.18~dfsg~0-0ubuntu2.7"},{"binary_name":"ghostscript-x","binary_version":"9.18~dfsg~0-0ubuntu2.7"},{"binary_name":"libgs9","binary_version":"9.18~dfsg~0-0ubuntu2.7"},{"binary_name":"libgs9-common","binary_version":"9.18~dfsg~0-0ubuntu2.7"}],"availability":"No subscription required"},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2017/UBUNTU-CVE-2017-9835.json"}}],"schema_version":"1.7.5","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"}]}