{"id":"UBUNTU-CVE-2025-59801","details":"In Artifex GhostXPS before 10.06.0, there is a stack-based buffer overflow in xps_unpredict_tiff in xpstiff.c because the samplesperpixel value is not checked.","modified":"2025-09-25T05:19:13Z","published":"2025-09-22T04:15:00Z","withdrawn":"2025-09-26T05:16:38Z","upstream":["CVE-2025-59801"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2025-59801"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2025-59801"},{"type":"REPORT","url":"https://bugs.ghostscript.com/show_bug.cgi?id=708819"},{"type":"REPORT","url":"https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=d12002b16c59e12d97f42fb2c70caded8b1b6aa8"},{"type":"REPORT","url":"https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=99727069197d548a8db69ba5d63f766bff40eaab"}],"affected":[{"package":{"name":"ghostscript","ecosystem":"Ubuntu:Pro:16.04:LTS","purl":"pkg:deb/ubuntu/ghostscript@9.26~dfsg+0-0ubuntu0.16.04.14+esm9?arch=source&distro=esm-infra/xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"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","9.18~dfsg~0-0ubuntu2.7","9.18~dfsg~0-0ubuntu2.8","9.18~dfsg~0-0ubuntu2.9","9.25~dfsg+1-0ubuntu0.16.04.1","9.25~dfsg+1-0ubuntu0.16.04.2","9.25~dfsg+1-0ubuntu0.16.04.3","9.26~dfsg+0-0ubuntu0.16.04.1","9.26~dfsg+0-0ubuntu0.16.04.3","9.26~dfsg+0-0ubuntu0.16.04.4","9.26~dfsg+0-0ubuntu0.16.04.5","9.26~dfsg+0-0ubuntu0.16.04.6","9.26~dfsg+0-0ubuntu0.16.04.7","9.26~dfsg+0-0ubuntu0.16.04.8","9.26~dfsg+0-0ubuntu0.16.04.9","9.26~dfsg+0-0ubuntu0.16.04.10","9.26~dfsg+0-0ubuntu0.16.04.11","9.26~dfsg+0-0ubuntu0.16.04.12","9.26~dfsg+0-0ubuntu0.16.04.13","9.26~dfsg+0-0ubuntu0.16.04.14","9.26~dfsg+0-0ubuntu0.16.04.14+esm1","9.26~dfsg+0-0ubuntu0.16.04.14+esm2","9.26~dfsg+0-0ubuntu0.16.04.14+esm3","9.26~dfsg+0-0ubuntu0.16.04.14+esm4","9.26~dfsg+0-0ubuntu0.16.04.14+esm5","9.26~dfsg+0-0ubuntu0.16.04.14+esm6","9.26~dfsg+0-0ubuntu0.16.04.14+esm7","9.26~dfsg+0-0ubuntu0.16.04.14+esm8","9.26~dfsg+0-0ubuntu0.16.04.14+esm9"],"ecosystem_specific":{"binaries":[{"binary_name":"ghostscript","binary_version":"9.26~dfsg+0-0ubuntu0.16.04.14+esm9"},{"binary_name":"ghostscript-x","binary_version":"9.26~dfsg+0-0ubuntu0.16.04.14+esm9"},{"binary_version":"9.26~dfsg+0-0ubuntu0.16.04.14+esm9","binary_name":"libgs-dev"},{"binary_name":"libgs9","binary_version":"9.26~dfsg+0-0ubuntu0.16.04.14+esm9"},{"binary_name":"libgs9-common","binary_version":"9.26~dfsg+0-0ubuntu0.16.04.14+esm9"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59801.json"}},{"package":{"name":"ghostscript","ecosystem":"Ubuntu:Pro:18.04:LTS","purl":"pkg:deb/ubuntu/ghostscript@9.26~dfsg+0-0ubuntu0.18.04.18+esm4?arch=source&distro=esm-infra/bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.21~dfsg+1-0ubuntu3","9.22~dfsg+1-0ubuntu1","9.22~dfsg+1-0ubuntu1.1","9.22~dfsg+1-0ubuntu1.2","9.25~dfsg+1-0ubuntu0.18.04.1","9.25~dfsg+1-0ubuntu0.18.04.2","9.26~dfsg+0-0ubuntu0.18.04.1","9.26~dfsg+0-0ubuntu0.18.04.3","9.26~dfsg+0-0ubuntu0.18.04.4","9.26~dfsg+0-0ubuntu0.18.04.5","9.26~dfsg+0-0ubuntu0.18.04.6","9.26~dfsg+0-0ubuntu0.18.04.7","9.26~dfsg+0-0ubuntu0.18.04.8","9.26~dfsg+0-0ubuntu0.18.04.9","9.26~dfsg+0-0ubuntu0.18.04.10","9.26~dfsg+0-0ubuntu0.18.04.11","9.26~dfsg+0-0ubuntu0.18.04.12","9.26~dfsg+0-0ubuntu0.18.04.13","9.26~dfsg+0-0ubuntu0.18.04.14","9.26~dfsg+0-0ubuntu0.18.04.15","9.26~dfsg+0-0ubuntu0.18.04.16","9.26~dfsg+0-0ubuntu0.18.04.17","9.26~dfsg+0-0ubuntu0.18.04.18","9.26~dfsg+0-0ubuntu0.18.04.18+esm1","9.26~dfsg+0-0ubuntu0.18.04.18+esm2","9.26~dfsg+0-0ubuntu0.18.04.18+esm3","9.26~dfsg+0-0ubuntu0.18.04.18+esm4"],"ecosystem_specific":{"binaries":[{"binary_version":"9.26~dfsg+0-0ubuntu0.18.04.18+esm4","binary_name":"ghostscript"},{"binary_name":"ghostscript-x","binary_version":"9.26~dfsg+0-0ubuntu0.18.04.18+esm4"},{"binary_name":"libgs-dev","binary_version":"9.26~dfsg+0-0ubuntu0.18.04.18+esm4"},{"binary_name":"libgs9","binary_version":"9.26~dfsg+0-0ubuntu0.18.04.18+esm4"},{"binary_name":"libgs9-common","binary_version":"9.26~dfsg+0-0ubuntu0.18.04.18+esm4"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59801.json"}},{"package":{"name":"ghostscript","ecosystem":"Ubuntu:Pro:20.04:LTS","purl":"pkg:deb/ubuntu/ghostscript@9.50~dfsg-5ubuntu4.15+esm1?arch=source&distro=esm-infra/focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.27~dfsg+0-0ubuntu3","9.27~dfsg+0-0ubuntu4","9.50~dfsg-5ubuntu1","9.50~dfsg-5ubuntu2","9.50~dfsg-5ubuntu3","9.50~dfsg-5ubuntu4","9.50~dfsg-5ubuntu4.1","9.50~dfsg-5ubuntu4.2","9.50~dfsg-5ubuntu4.3","9.50~dfsg-5ubuntu4.4","9.50~dfsg-5ubuntu4.5","9.50~dfsg-5ubuntu4.6","9.50~dfsg-5ubuntu4.7","9.50~dfsg-5ubuntu4.8","9.50~dfsg-5ubuntu4.9","9.50~dfsg-5ubuntu4.10","9.50~dfsg-5ubuntu4.11","9.50~dfsg-5ubuntu4.12","9.50~dfsg-5ubuntu4.13","9.50~dfsg-5ubuntu4.14","9.50~dfsg-5ubuntu4.15","9.50~dfsg-5ubuntu4.15+esm1"],"ecosystem_specific":{"binaries":[{"binary_name":"ghostscript","binary_version":"9.50~dfsg-5ubuntu4.15+esm1"},{"binary_name":"ghostscript-x","binary_version":"9.50~dfsg-5ubuntu4.15+esm1"},{"binary_name":"libgs-dev","binary_version":"9.50~dfsg-5ubuntu4.15+esm1"},{"binary_name":"libgs9","binary_version":"9.50~dfsg-5ubuntu4.15+esm1"},{"binary_name":"libgs9-common","binary_version":"9.50~dfsg-5ubuntu4.15+esm1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59801.json"}},{"package":{"name":"ghostscript","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ghostscript@9.55.0~dfsg1-0ubuntu5.12?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["9.54.0~dfsg1-0ubuntu2","9.55.0~dfsg1-0ubuntu4","9.55.0~dfsg1-0ubuntu5","9.55.0~dfsg1-0ubuntu5.1","9.55.0~dfsg1-0ubuntu5.2","9.55.0~dfsg1-0ubuntu5.3","9.55.0~dfsg1-0ubuntu5.4","9.55.0~dfsg1-0ubuntu5.5","9.55.0~dfsg1-0ubuntu5.6","9.55.0~dfsg1-0ubuntu5.7","9.55.0~dfsg1-0ubuntu5.9","9.55.0~dfsg1-0ubuntu5.10","9.55.0~dfsg1-0ubuntu5.11","9.55.0~dfsg1-0ubuntu5.12"],"ecosystem_specific":{"binaries":[{"binary_name":"ghostscript","binary_version":"9.55.0~dfsg1-0ubuntu5.12"},{"binary_name":"ghostscript-x","binary_version":"9.55.0~dfsg1-0ubuntu5.12"},{"binary_name":"libgs-dev","binary_version":"9.55.0~dfsg1-0ubuntu5.12"},{"binary_name":"libgs9","binary_version":"9.55.0~dfsg1-0ubuntu5.12"},{"binary_name":"libgs9-common","binary_version":"9.55.0~dfsg1-0ubuntu5.12"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59801.json"}},{"package":{"name":"ghostscript","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/ghostscript@10.02.1~dfsg1-0ubuntu7.7?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["10.01.2~dfsg1-0ubuntu2","10.01.2~dfsg1-0ubuntu2.1","10.02.1~dfsg1-0ubuntu1","10.02.1~dfsg1-0ubuntu2","10.02.1~dfsg1-0ubuntu5","10.02.1~dfsg1-0ubuntu6","10.02.1~dfsg1-0ubuntu7","10.02.1~dfsg1-0ubuntu7.1","10.02.1~dfsg1-0ubuntu7.3","10.02.1~dfsg1-0ubuntu7.4","10.02.1~dfsg1-0ubuntu7.5","10.02.1~dfsg1-0ubuntu7.6","10.02.1~dfsg1-0ubuntu7.7"],"ecosystem_specific":{"binaries":[{"binary_name":"ghostscript","binary_version":"10.02.1~dfsg1-0ubuntu7.7"},{"binary_name":"libgs-common","binary_version":"10.02.1~dfsg1-0ubuntu7.7"},{"binary_name":"libgs-dev","binary_version":"10.02.1~dfsg1-0ubuntu7.7"},{"binary_name":"libgs10","binary_version":"10.02.1~dfsg1-0ubuntu7.7"},{"binary_name":"libgs10-common","binary_version":"10.02.1~dfsg1-0ubuntu7.7"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59801.json"}},{"package":{"name":"ghostscript","ecosystem":"Ubuntu:25.04","purl":"pkg:deb/ubuntu/ghostscript@10.05.0dfsg1-0ubuntu1.1?arch=source&distro=plucky"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["10.03.1~dfsg1-0ubuntu2","10.03.1~dfsg1-0ubuntu3","10.03.1~dfsg1-0ubuntu4","10.04.0~dfsg1-2ubuntu1","10.05.0~rc1~dfsg1-0ubuntu1","10.05.0dfsg1-0ubuntu1","10.05.0dfsg1-0ubuntu1.1"],"ecosystem_specific":{"binaries":[{"binary_version":"10.05.0dfsg1-0ubuntu1.1","binary_name":"ghostscript"},{"binary_name":"libgs-common","binary_version":"10.05.0dfsg1-0ubuntu1.1"},{"binary_name":"libgs-dev","binary_version":"10.05.0dfsg1-0ubuntu1.1"},{"binary_name":"libgs10","binary_version":"10.05.0dfsg1-0ubuntu1.1"},{"binary_name":"libgs10-common","binary_version":"10.05.0dfsg1-0ubuntu1.1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-59801.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N"},{"type":"Ubuntu","score":"medium"}]}