Description
Ghostscript before 10.08.0 contains a heap-based buffer overflow vulnerability in the JPEG 2000 output adapter (base/sjpx_openjpeg.c) that allows attackers to cause memory corruption by supplying a crafted PDF containing a JPEG 2000 image with mismatched component subsampling factors. When image components declare different subsampling values, the non-samescale sub-byte-depth output path allocates a row buffer sized for packed output but writes a full byte per output column regardless of bit depth, overflowing the allocation and corrupting internal chunk-allocator metadata to achieve code execution.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Artifex Software | Ghostscript | < 10.08.0 | 10.08.0 |
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 | ghostscript | 10.08.0~dfsg-1 | — |
| Debian 13 | ghostscript | 10.05.1~dfsg-1+deb13u2 | — |
| Debian 12 | ghostscript | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | ghostscript | 10.06.0~dfsg-3ubuntu1.1 | USN-8791-1 |
| Ubuntu 24.04 LTS | ghostscript | 10.02.1~dfsg1-0ubuntu7.9 | USN-8791-1 |
| Ubuntu 22.04 LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.14 | USN-8791-1 |
Show 3 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 20.04 LTS | ghostscript | No fix yet | — |
| Ubuntu Pro 18.04 LTS | ghostscript | No fix yet | — |
| Ubuntu Pro 16.04 LTS | ghostscript | No fix yet | — |
Red Hat
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| RHEL 10 | libgs | 10.02.1-16.el10_2.1 | RHSA-2026:74464 |
| RHEL 9 | libgs | 9.54.0-19.el9_8.1 | RHSA-2026:74457 |
| RHEL 8 | libgs +1 | 9.27-18.el8_10 | RHSA-2026:76877 |
AlmaLinux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux 10 | libgs +6 | 10.02.1-16.el10_2.1 | ALSA-2026:74464 |
| AlmaLinux 9 | libgs +7 | 9.54.0-19.el9_8.1 | ALSA-2026:74457 |
| AlmaLinux 8 | libgs +7 | 9.27-18.el8_10 | ALSA-2026:76877 |
Rocky Linux
Errata ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Rocky Linux 10 | ghostscript | 10.02.1-16.el10_2.1 | RLSA-2026:74464 |
| Rocky Linux 9 | ghostscript | 9.54.0-19.el9_8.1 | RLSA-2026:74457 |
| Rocky Linux 8 | ghostscript | 9.27-18.el8_10 | RLSA-2026:76877 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 15 SP7 | ghostscript | 9.52-150000.214.1 | SUSE-SU-2026:4632-1 |
| SLES 15 SP6 | ghostscript | 9.52-150000.214.1 | SUSE-SU-2026:4632-1 |
| SLES 15 SP5 | ghostscript | 9.52-150000.214.1 | SUSE-SU-2026:4632-1 |
| SLES 15 SP4 | ghostscript | 9.52-150000.214.1 | SUSE-SU-2026:4632-1 |
| SLES 12 SP5 | ghostscript | 9.52-23.100.1 | SUSE-SU-2026:4598-1 |
Show 7 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 16.0 | ghostscript | 10.08.0-160000.1.1 | SUSE-SU-2026:24214-1 |
| SLES for SAP 15 SP6 | ghostscript | 9.52-150000.214.1 | SUSE-SU-2026:4632-1 |
| SLES for SAP 15 SP5 | ghostscript | 9.52-150000.214.1 | SUSE-SU-2026:4632-1 |
| SLES for SAP 15 SP4 | ghostscript | 9.52-150000.214.1 | SUSE-SU-2026:4632-1 |
| SLES 16.0 | ghostscript | 10.08.0-160000.1.1 | SUSE-SU-2026:24214-1 |
| SLE HPC 15 SP5 | ghostscript | 9.52-150000.214.1 | SUSE-SU-2026:4632-1 |
| SLE HPC 15 SP4 | ghostscript | 9.52-150000.214.1 | SUSE-SU-2026:4632-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | ghostscript | 10.08.0-1.1 | openSUSE-SU-2026:11959-1 |
| openSUSE Leap 16.0 | ghostscript | 10.08.0-160000.1.1 | openSUSE-SU-2026:22063-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | ghostscript | 10.08.0-r0 | — |
| Alpine v3.23 | ghostscript | 10.08.0-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | libgs +8 | 9.56.1-7.amzn2023.0.20 | ALAS2023-2026-3294 |
| Amazon Linux 2 | libgs +5 | 9.54.0-9.amzn2.0.14 | ALAS2-2026-4034 |
Oracle Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Oracle Linux 10 | libgs +6 | 10.02.1-16.el10_2.1 | ELSA-2026-74464 |
| Oracle Linux 9 | libgs +7 | 9.54.0-19.el9_8.1 | ELSA-2026-74457 |
| Oracle Linux 8 | libgs +7 | 9.27-18.el8_10 | ELSA-2026-76877 |
Advisories 21
- RHSA-2026:74464 Red Hat Security Advisory: ghostscript security update Red Hat Security Advisories (RHSA) · Nov 13, 2026
- ALSA-2026:74457 Moderate: ghostscript security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:74464 Moderate: ghostscript security update AlmaLinux Security Advisories · Oct 29, 2026
- ALSA-2026:76877 Moderate: ghostscript security update AlmaLinux Security Advisories · Oct 29, 2026
- ALAS2023-2026-3294 Important: ghostscript security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Oct 26, 2026
- ALAS2-2026-4034 Important: ghostscript security update (Amazon Linux 2) Amazon Linux Security Center (ALAS) · Oct 26, 2026
- WID-SEC-2026-3408 Ghostscript: Schwachstelle ermöglicht Codeausführung und Manipulation von Daten BSI CERT-Bund (WID) · Oct 25, 2026
- SUSE-SU-2026:24214-1 Security update for ghostscript SUSE / openSUSE Security Updates · Oct 21, 2026
- RHSA-2026:76877 Red Hat Security Advisory: ghostscript security update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- RHSA-2026:74457 Red Hat Security Advisory: ghostscript security update Red Hat Security Advisories (RHSA) · Oct 20, 2026
- openSUSE-SU-2026:22063-1 Security update for ghostscript SUSE / openSUSE Security Updates · Oct 19, 2026
- SUSE-SU-2026:4632-1 Security update for ghostscript SUSE / openSUSE Security Updates · Oct 13, 2026
- SUSE-SU-2026:4598-1 Security update for ghostscript SUSE / openSUSE Security Updates · Oct 9, 2026
- RLSA-2026:76877 Moderate: ghostscript security update Rocky Linux Security Advisories · Oct 7, 2026
- ELSA-2026-76877 Moderate: ghostscript security update (Oracle Linux 8) Oracle Linux Security Advisories (ELSA) · Oct 6, 2026
- openSUSE-SU-2026:11959-1 ghostscript-10.08.0-1.1 on GA media SUSE / openSUSE Security Updates · Oct 3, 2026
- RLSA-2026:74457 Moderate: ghostscript security update Rocky Linux Security Advisories · Oct 3, 2026
- RLSA-2026:74464 Moderate: ghostscript security update Rocky Linux Security Advisories · Oct 2, 2026
- ELSA-2026-74457 Moderate: ghostscript security update (Oracle Linux 9) Oracle Linux Security Advisories (ELSA) · Oct 2, 2026
- ELSA-2026-74464 Moderate: ghostscript security update (Oracle Linux 10) Oracle Linux Security Advisories (ELSA) · Oct 1, 2026
- USN-8791-1 ghostscript vulnerability Ubuntu Security Notices (USN) · Sep 21, 2026
References
- Ghostscript 10.08.0 (gs10080) Release Notes release-notes
- Patch Commit patch
- Bugzilla Report issue-tracking
- https://www.vulncheck.com/advisories/ghostscript-heap-buffer-overflow-via-jpeg-2000-output-adapter third-party-advisory