Skip to content
OpenAdvisories
Critical · 9.8 CVE-2026-39919 EUVD-2026-78584GHSA-v865-hp77-22rm

Ghostscript < 10.08.0 Heap Buffer Overflow via JPEG 2000 Output Adapter

Published Sep 15, 2026 · Updated Oct 1, 2026 · Assigned by VulnCheck

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

VendorProductAffectedFixed
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.

ReleasePackageFixed inAdvisory
Debian 14 ghostscript 10.08.0~dfsg-1 —
Debian 13 ghostscript 10.05.1~dfsg-1+deb13u2 —
Debian 12 ghostscript No fix yet —
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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 ↗
ReleasePackageFixed inAdvisory
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 ↗
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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)
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
Alpine v3.24 ghostscript 10.08.0-r0 —
Alpine v3.23 ghostscript 10.08.0-r0 —

Amazon Linux

ReleasePackageFixed inAdvisory
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

ReleasePackageFixed inAdvisory
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

References