Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | ghostscript | ghostscript 0.14 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | jbig2dec | 0.13-4 | — |
| Debian 13 | jbig2dec | 0.13-4 | — |
| Debian 12 | jbig2dec | 0.13-4 | — |
| Debian 8 | jbig2dec | 0.13-4~deb8u1 | DSA-3817-1 |
| Debian 7 | jbig2dec | 0.13-4~deb7u1 | DLA-874-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 16.04 LTS | jbig2dec | 0.12+20150918-1ubuntu0.1 | USN-3297-1 |
| Ubuntu 14.04 LTS | jbig2dec | 0.11+20120125-1ubuntu1.1 | USN-3297-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP2 | ghostscript | 9.15-20.1 | SUSE-SU-2017:1404-1, SUSE-SU-2017:1138-1 |
| SLES 12 SP1 | ghostscript | 9.15-20.1 | SUSE-SU-2017:1404-1, SUSE-SU-2017:1138-1 |
| SLES 12 | ghostscript | 9.15-22.1 | SUSE-SU-2017:1404-1 |
| SLES 11 SP4 | ghostscript-library | 8.62-32.47.7.1 | SUSE-SU-2018:1369-1, SUSE-SU-2018:1140-1 |
Show 4 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP2 | ghostscript | 9.15-20.1 | SUSE-SU-2017:1404-1, SUSE-SU-2017:1138-1 |
| SLES for SAP 12 SP1 | ghostscript | 9.15-20.1 | SUSE-SU-2017:1404-1, SUSE-SU-2017:1138-1 |
| SLES for SAP 12 | ghostscript | 9.15-22.1 | SUSE-SU-2017:1404-1 |
| SLES for SAP 11 SP4 | ghostscript-library | 8.62-32.47.7.1 | SUSE-SU-2018:1369-1, SUSE-SU-2018:1140-1 |
Advisories 7
- USN-3297-1 jbig2dec vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
- DLA-874-1 jbig2dec - security update Debian Security (DSA / DLA) · Mar 9, 2026
- DSA-3817-1 jbig2dec - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2018:1140-1 Security update for ghostscript-library SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2018:1369-1 Security update for ghostscript-library SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:1404-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026
- SUSE-SU-2017:1138-1 Security update for ghostscript SUSE / openSUSE Security Updates · Feb 4, 2026