CVE-2016-9601
ghostscript before version 9.21 is vulnerable to a heap based buffer overflow that was found in...
ghostscript before version 9.21 is vulnerable to a heap based buffer overflow that was found in the ghostscript jbig2_decode_gray_scale_image function which is used to decode halftone segments in a JBIG2 image. A document (PostScript or PDF) with an embedded, specially crafted, jbig2 image could trigger a segmentation fault in ghostscript.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
5.3
ghostscript before version 9.21 is vulnerable to a heap based buffer overflow that was found in the ghostscript jbig2_decode_gray_scale_image function which is used to decode halftone segments in a JBIG2 image. A document (PostScript or PDF) with an embedded, specially crafted, jbig2 image could trigger a segmentation fault in ghostscript.
- Record
CVE-2016-9601- CVSS 3.0
- 5.3 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-190
- Updated
- 2026-11-02
EUVDEUVD-2016-10405
5.3
ghostscript before version 9.21 is vulnerable to a heap based buffer overflow that was found in the ghostscript jbig2_decode_gray_scale_image function which is used to decode halftone segments in a JBIG2 image. A document (PostScript or PDF) with an embedded, specially crafted, jbig2 image could trigger a segmentation fault in ghostscript.
- Record
EUVD-2016-10405- CVSS 3.0
- 5.3 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-03
GitHub AdvisoriesGHSA-vf87-jj8q-h556
5.5
ghostscript before version 9.21 is vulnerable to a heap based buffer overflow that was found in...
ghostscript before version 9.21 is vulnerable to a heap based buffer overflow that was found in the ghostscript jbig2_decode_gray_scale_image function which is used to decode halftone segments in a JBIG2 image. A document (PostScript or PDF) with an embedded, specially crafted, jbig2 image could trigger a segmentation fault in ghostscript.
- Record
GHSA-vf87-jj8q-h556- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Weakness
- CWE-119
- Updated
- 2026-11-02
NVD
5.3
ghostscript before version 9.21 is vulnerable to a heap based buffer overflow that was found in the ghostscript jbig2_decode_gray_scale_image function which is used to decode halftone segments in a JBIG2 image. A document (PostScript or PDF) with an embedded, specially crafted, jbig2 image could trigger a segmentation fault in ghostscript.
- Record
CVE-2016-9601- CVSS 3.0
- 5.3 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 2.0
- 4.3 Medium
AV:N/AC:M/Au:N/C:N/I:N/A:P - Weakness
- CWE-190, CWE-119
- Updated
- 2026-11-02
OSVBELL-CVE-2016-9601
5.5
CVE-2016-9601 does not affect BellSoft software
- Record
BELL-CVE-2016-9601- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSV
5.5
ghostscript before version 9.21 is vulnerable to a heap based buffer overflow that was found in the ghostscript jbig2_decode_gray_scale_image function which is used to decode halftone segments in a JBIG2 image. A document (PostScript or PDF) with an embedded, specially crafted, jbig2 image could trigger a segmentation fault in ghostscript.
- Record
CVE-2016-9601- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
Show 9 moreShow less
OSVDEBIAN-CVE-2016-9601
5.5
ghostscript before version 9.21 is vulnerable to a heap based buffer overflow that was found in the ghostscript jbig2_decode_gray_scale_image function which is used to decode halftone segments in a JBIG2 image. A document (PostScript or PDF) with an embedded, specially crafted, jbig2 image could trigger a segmentation fault in ghostscript.
- Record
DEBIAN-CVE-2016-9601- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2016-9601
5.5
ghostscript before version 9.21 is vulnerable to a heap based buffer overflow that was found in the ghostscript jbig2_decode_gray_scale_image function which is used to decode halftone segments in a JBIG2 image. A document (PostScript or PDF) with an embedded, specially crafted, jbig2 image could trigger a segmentation fault in ghostscript.
- Record
UBUNTU-CVE-2016-9601- CVSS 3.0
- 5.5 Medium
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H - CVSS 3.0
- 5.3 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVMGASA-2017-0133 No score
Updated ghostscript packages fix security vulnerability
Various userparams in Ghostscript allow %pipe% in paths, allowing remote shell command execution (CVE-2016-7976).
The .libfile function in Ghostscript doesn't check PermitFileReading array, allowing remote file disclosure (CVE-2016-7977).
Reference leak in the .setdevice function in Ghostscript allows use-after-free and remote code execution (CVE-2016-7978).
Type confusion in the .initialize_dsc_parser function in Ghostscript allows remote code execution (CVE-2016-7979).
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 (CVE-2016-8602).
A heap based buffer overflow was found in the ghostscript jbig2_decode_gray_scale_image() function used to decode halftone segments in a JBIG2 image. A document (PostScript or PDF) with an embedded, specially crafted, jbig2 image could trigger a segmentation fault in ghostscript (CVE-2016-9601).
The pdf14_open function in base/gdevp14.c in Ghostscript 9.20 allows remote attackers to cause a denial of service (use-after-free and application crash) via a crafted file that is mishandled in the color management module (CVE-2016-10217).
The pdf14_pop_transparency_group function in base/gdevp14.c in the PDF Transparency module in Ghostscript 9.20 allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) via a crafted file (CVE-2016-10218).
The intersect function in base/gxfill.c in Ghostscript 9.20 allows remote attackers to cause a denial of service (divide-by-zero error and application crash) via a crafted file (CVE-2016-10219).
The gs_makewordimagedevice function in base/gsdevmem.c in Ghostscript 9.20 allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) via a crafted file that is mishandled in the PDF Transparency module (CVE-2016-10220).
The mem_get_bits_rectangle function in base/gdevmem.c in Ghostscript 9.20 allows remote attackers to cause a denial of service (NULL pointer dereference and application crash) via a crafted file (CVE-2017-5951).
The mem_get_bits_rectangle function in Ghostscript 9.20 allows remote attackers to cause a denial of service (NULL pointer dereference) via a crafted PostScript document (CVE-2017-7207).
Ghostscript through 2017-04-26 allows -dSAFER bypass and remote command execution via .rsdparams type confusion with a "/OutputFile (%pipe%" substring in a crafted .eps document that is an input to the gs program (CVE-2017-8291).
- Record
MGASA-2017-0133- Updated
- 2026-11-02
OSVMGASA-2017-0206 No score
Updated jbig2dec packages fix security vulnerability
Multiple security issues have been found in the JBIG2 decoder library, which may lead to lead to denial of service or the execution of arbitrary code if a malformed image file (usually embedded in a PDF document) is opened (CVE-2016-9601).
Artifex jbig2dec has a heap-based buffer over-read leading to denial of service (application crash) because of an integer overflow in the jbig2_decode_symbol_dict function in jbig2_symbol_dict.c in libjbig2dec.a during operation on a crafted .jb2 file (CVE-2017-7885).
Artifex jbig2dec allows out-of-bounds writes because of an integer overflow in the jbig2_build_huffman_table function in jbig2_huffman.c during operations on a crafted JBIG2 file, leading to a denial of service (application crash) or possibly execution of arbitrary code (CVE-2017-7975).
Artifex jbig2dec allows out-of-bounds writes and reads because of an integer overflow in the jbig2_image_compose function in jbig2_image.c during operations on a crafted .jb2 file, leading to a denial of service (application crash) (CVE-2017-7976).
- Record
MGASA-2017-0206- Updated
- 2026-11-02
OSVSUSE-SU-2017:1138-1 No score
Security update for ghostscript
This update for ghostscript fixes the following security vulnerabilities:
CVE-2017-8291: A remote command execution and a -dSAFER bypass via a crafted .eps document were exploited in the wild. (bsc#1036453)
CVE-2016-9601: An integer overflow in the bundled jbig2dec library could have been misused to cause a Denial-of-Service. (bsc#1018128)
CVE-2016-10220: A NULL pointer dereference in the PDF Transparency module allowed remote attackers to cause a Denial-of-Service. (bsc#1032120)
CVE-2017-5951: A NULL pointer dereference allowed remote attackers to cause a denial of service via a crafted PostScript document. (bsc#1032114)
CVE-2017-7207: A NULL pointer dereference allowed remote attackers to cause a denial of service via a crafted PostScript document. (bsc#1030263)
- Record
SUSE-SU-2017:1138-1- Updated
- 2026-11-02
OSVSUSE-SU-2017:1404-1 No score
Security update for ghostscript
This update for ghostscript fixes the following security vulnerabilities:
- CVE-2017-8291: A remote command execution and a -dSAFER bypass via a crafted .eps document were exploited in the wild. (bsc#1036453)
- CVE-2016-9601: An integer overflow in the bundled jbig2dec library could have been misused to cause a Denial-of-Service. (bsc#1018128)
- CVE-2016-10220: A NULL pointer dereference in the PDF Transparency module allowed remote attackers to cause a Denial-of-Service. (bsc#1032120)
- CVE-2017-5951: A NULL pointer dereference allowed remote attackers to cause a denial of service via a crafted PostScript document. (bsc#1032114)
- CVE-2017-7207: A NULL pointer dereference allowed remote attackers to cause a denial of service via a crafted PostScript document. (bsc#1030263)
This is a reissue of the previous update to also include SUSE Linux Enterprise 12 GA LTSS packages.
- Record
SUSE-SU-2017:1404-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:1140-1 No score
Security update for ghostscript-library
This update for ghostscript-library fixes several issues.
These security issues were fixed:
- CVE-2017-7207: The mem_get_bits_rectangle function allowed remote attackers to cause a denial of service (NULL pointer dereference) via a crafted PostScript document (bsc#1030263).
- CVE-2016-9601: Prevent heap-buffer overflow by checking for an integer overflow in jbig2_image_new function (bsc#1018128).
- CVE-2017-9612: The Ins_IP function in base/ttinterp.c allowed remote attackers to cause a denial of service (use-after-free and application crash) or possibly have unspecified other impact via a crafted document (bsc#1050891)
- CVE-2017-9726: The Ins_MDRP function in base/ttinterp.c allowed remote attackers to cause a denial of service (heap-based buffer over-read and application crash) or possibly have unspecified other impact via a crafted document (bsc#1050889)
- CVE-2017-9727: The gx_ttfReader__Read function in base/gxttfb.c allowed remote attackers to cause a denial of service (heap-based buffer over-read and application crash) or possibly have unspecified other impact via a crafted document (bsc#1050888)
- CVE-2017-9739: The Ins_JMPR function in base/ttinterp.c allowed remote attackers to cause a denial of service (heap-based buffer over-read and application crash) or possibly have unspecified other impact via a crafted document (bsc#1050887)
- CVE-2017-11714: psi/ztoken.c mishandled references to the scanner state structure, which allowed remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted PostScript document, related to an out-of-bounds read in the igc_reloc_struct_ptr function in psi/igc.c (bsc#1051184)
- CVE-2017-9835: The gs_alloc_ref_array function allowed 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 (bsc#1050879)
- CVE-2016-10219: The intersect function in base/gxfill.c allowed remote attackers to cause a denial of service (divide-by-zero error and application crash) via a crafted file (bsc#1032138)
- CVE-2017-9216: Prevent NULL pointer dereference in the jbig2_huffman_get function in jbig2_huffman.c which allowed for DoS (bsc#1040643)
- Record
SUSE-SU-2018:1140-1- Updated
- 2026-11-02
OSVSUSE-SU-2018:1369-1 No score
Security update for ghostscript-library
This update for ghostscript-library fixes the following issues:
- CVE-2018-10194: Fixed a stack-based buffer overflow in gdevpdts.c (bsc#1090099)
- Fixed a crash in the fix for CVE-2016-9601.
- Record
SUSE-SU-2018:1369-1- Updated
- 2026-11-02
OSVUSN-3297-1 No score
jbig2dec vulnerabilities
Bingchang Liu discovered that jbig2dec incorrectly handled memory when decoding malformed image files. If a user or automated system were tricked into processing a specially crafted JBIG2 image file, a remote attacker could cause jbig2dec to crash, resulting in a denial of service, or possibly execute arbitrary code. This issue only applied to Ubuntu 14.04 LTS, Ubuntu 16.04 LTS and Ubuntu 16.10. (CVE-2016-9601)
It was discovered that jbig2dec incorrectly handled memory when decoding malformed image files. If a user or automated system were tricked into processing a specially crafted JBIG2 image file, a remote attacker could cause jbig2dec to crash, resulting in a denial of service, or possibly disclose sensitive information. (CVE-2017-7885)
Jiaqi Peng discovered that jbig2dec incorrectly handled memory when decoding malformed image files. If a user or automated system were tricked into processing a specially crafted JBIG2 image file, a remote attacker could cause jbig2dec to crash, resulting in a denial of service, or possibly execute arbitrary code. (CVE-2017-7975)
Dai Ge discovered that jbig2dec incorrectly handled memory when decoding malformed image files. If a user or automated system were tricked into processing a specially crafted JBIG2 image file, a remote attacker could cause jbig2dec to crash, resulting in a denial of service, or possibly disclose sensitive information. (CVE-2017-7976)
- Record
USN-3297-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
jbig2decDebian:12 |
before 0.13-4 | 0.13-4 |
jbig2decDebian:13 |
before 0.13-4 | 0.13-4 |
jbig2decDebian:14 |
before 0.13-4 | 0.13-4 |
jbig2decDebian:7 |
before 0.13-4~deb7u1, plus listed versions 0.11+20120125-10.12+20150918-10.12-10.12-20.13-10.13-20.13-3 |
0.13-4~deb7u1 |
jbig2decDebian:8 |
before 0.13-4~deb8u1, plus listed versions 0.11+20120125-10.12+20150918-10.12-10.12-20.13-1 Show 4 moreShow less0.13-20.13-30.13-4~deb7u10.13-4~deb7u2 |
0.13-4~deb8u1 |
ghostscriptMageia:5 |
before 9.20-1.mga5 | 9.20-1.mga5 |
gutenprintMageia:5 |
before 5.2.10-5.1.mga5 | 5.2.10-5.1.mga5 |
libspectreMageia:5 |
before 0.2.7-5.1.mga5 | 0.2.7-5.1.mga5 |
jbig2decMageia:5 |
before 0.13-1.mga5 | 0.13-1.mga5 |
ghostscriptSUSE:Linux Enterprise Desktop 12 SP1 |
before 9.15-20.1 | 9.15-20.1 |
Show 27 moreShow less
| Package | Affected | Fixed |
|---|---|---|
ghostscriptSUSE:Linux Enterprise Desktop 12 SP2 |
before 9.15-20.1 | 9.15-20.1 |
ghostscriptSUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 |
before 9.15-20.1 | 9.15-20.1 |
ghostscriptSUSE:Linux Enterprise Software Development Kit 12 SP1 |
before 9.15-20.1 | 9.15-20.1 |
ghostscriptSUSE:Linux Enterprise Software Development Kit 12 SP2 |
before 9.15-20.1 | 9.15-20.1 |
ghostscriptSUSE:Linux Enterprise Server 12 SP1 |
before 9.15-20.1 | 9.15-20.1 |
ghostscriptSUSE:Linux Enterprise Server for SAP Applications 12 SP1 |
before 9.15-20.1 | 9.15-20.1 |
ghostscriptSUSE:Linux Enterprise Server 12 SP2 |
before 9.15-20.1 | 9.15-20.1 |
ghostscriptSUSE:Linux Enterprise Server for SAP Applications 12 SP2 |
before 9.15-20.1 | 9.15-20.1 |
ghostscriptSUSE:Linux Enterprise Desktop 12 SP1 |
before 9.15-22.1 | 9.15-22.1 |
ghostscriptSUSE:Linux Enterprise Desktop 12 SP2 |
before 9.15-22.1 | 9.15-22.1 |
ghostscriptSUSE:Linux Enterprise Server for Raspberry Pi 12 SP2 |
before 9.15-22.1 | 9.15-22.1 |
ghostscriptSUSE:Linux Enterprise Server for SAP Applications 12 |
before 9.15-22.1 | 9.15-22.1 |
ghostscriptSUSE:Linux Enterprise Software Development Kit 12 SP1 |
before 9.15-22.1 | 9.15-22.1 |
ghostscriptSUSE:Linux Enterprise Software Development Kit 12 SP2 |
before 9.15-22.1 | 9.15-22.1 |
ghostscriptSUSE:Linux Enterprise Server 12-LTSS |
before 9.15-22.1 | 9.15-22.1 |
ghostscriptSUSE:Linux Enterprise Server 12 SP1 |
before 9.15-22.1 | 9.15-22.1 |
ghostscriptSUSE:Linux Enterprise Server for SAP Applications 12 SP1 |
before 9.15-22.1 | 9.15-22.1 |
ghostscriptSUSE:Linux Enterprise Server 12 SP2 |
before 9.15-22.1 | 9.15-22.1 |
ghostscriptSUSE:Linux Enterprise Server for SAP Applications 12 SP2 |
before 9.15-22.1 | 9.15-22.1 |
ghostscript-librarySUSE:Linux Enterprise Software Development Kit 11 SP4 |
before 8.62-32.47.7.1 | 8.62-32.47.7.1 |
ghostscript-librarySUSE:Linux Enterprise Server 11 SP4 |
before 8.62-32.47.7.1 | 8.62-32.47.7.1 |
ghostscript-librarySUSE:Linux Enterprise Server for SAP Applications 11 SP4 |
before 8.62-32.47.7.1 | 8.62-32.47.7.1 |
ghostscript-librarySUSE:Linux Enterprise Software Development Kit 11 SP4 |
before 8.62-32.47.10.1 | 8.62-32.47.10.1 |
ghostscript-librarySUSE:Linux Enterprise Server 11 SP4 |
before 8.62-32.47.10.1 | 8.62-32.47.10.1 |
ghostscript-librarySUSE:Linux Enterprise Server for SAP Applications 11 SP4 |
before 8.62-32.47.10.1 | 8.62-32.47.10.1 |
jbig2decUbuntu:14.04:LTS |
before 0.11+20120125-1ubuntu1.1, plus listed versions 0.11+20120125-1ubuntu1 |
0.11+20120125-1ubuntu1.1 |
jbig2decUbuntu:16.04:LTS |
before 0.12+20150918-1ubuntu0.1, plus listed versions 0.12-20.12+20150918-1 |
0.12+20150918-1ubuntu0.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases, products | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2016-9601 is a medium vulnerability (CVSS 5.3) in Artifex Ghostscript, published December 31, 2016. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.71%, the 77th percentile. Fixed in jbig2dec 0.13-4.
References
bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-9601
securityfocus.com/bid/97095
git.ghostscript.com?p=jbig2dec.git%3Ba=commit%3Bh=e698d5c11d27212aa1098bc5b1673a3378563092
security.gentoo.org/glsa/201706-24
debian.org/security/2017/dsa-3817
bugs.ghostscript.com/show_bug.cgi?id=697457
Show 51 moreShow less
nvd.nist.gov/vuln/detail/CVE-2016-9601
git.ghostscript.com?p=jbig2dec.git;a=commit;h=e698d5c11d27212aa1098bc5b1673a3378563092
github.com/advisories/GHSA-vf87-jj8q-h556
docs.bell-sw.com/security/cves/CVE-2016-9601
security-tracker.debian.org/tracker/CVE-2016-9601
advisories.mageia.org/MGASA-2017-0133.html
bugs.mageia.org/show_bug.cgi?id=19542
openwall.com/lists/oss-security/2016/10/05/15
lists.fedoraproject.org/archives/list/[email protected]/thread/IJ3D6O5XHLO4UJVJETVCWPIWWWV6LQUE
advisories.mageia.org/MGASA-2017-0206.html
bugs.mageia.org/show_bug.cgi?id=20565
lists.fedoraproject.org/archives/list/[email protected]/thread/XWQQMCDLDOZ535O3IKFQZE3VPCWC3HWH
suse.com/support/update/announcement/2017/suse-su-20171138-1
bugzilla.suse.com/1018128
bugzilla.suse.com/1030263
bugzilla.suse.com/1032114
bugzilla.suse.com/1032120
bugzilla.suse.com/1036453
suse.com/security/cve/CVE-2016-10220
suse.com/security/cve/CVE-2016-9601
suse.com/security/cve/CVE-2017-5951
suse.com/security/cve/CVE-2017-7207
suse.com/security/cve/CVE-2017-8291
suse.com/support/update/announcement/2017/suse-su-20171404-1
suse.com/support/update/announcement/2018/suse-su-20181140-1
bugzilla.suse.com/1032138
bugzilla.suse.com/1032230
bugzilla.suse.com/1040643
bugzilla.suse.com/1050879
bugzilla.suse.com/1050887
bugzilla.suse.com/1050888
bugzilla.suse.com/1050889
bugzilla.suse.com/1050891
bugzilla.suse.com/1051184
suse.com/security/cve/CVE-2016-10219
suse.com/security/cve/CVE-2017-11714
suse.com/security/cve/CVE-2017-9216
suse.com/security/cve/CVE-2017-9612
suse.com/security/cve/CVE-2017-9726
suse.com/security/cve/CVE-2017-9727
suse.com/security/cve/CVE-2017-9739
suse.com/security/cve/CVE-2017-9835
suse.com/support/update/announcement/2018/suse-su-20181369-1
bugzilla.suse.com/1090099
suse.com/security/cve/CVE-2018-10194
ubuntu.com/security/CVE-2016-9601
ubuntu.com/security/notices/USN-3297-1
cve.org/CVERecord?id=CVE-2016-9601
ubuntu.com/security/CVE-2017-7885
ubuntu.com/security/CVE-2017-7975
ubuntu.com/security/CVE-2017-7976