Skip to content

CVE-2026-39919 Ghostscript < 10.08.0 Heap Buffer Overflow via JPEG 2000 Output Adapter

CriticalCVSS 9.3 EPSS 0.85%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: yes · technical impact: total
Technology
UbuntuDebianRed Hat

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.

Upgrade path

14 packages: 14 fixed.

PackageAffectedFixed inStatus
alpine/ghostscript(Alpine v3.21) < 10.08.0-r0 10.08.0-r0 Fixed
alpine/ghostscript(Alpine v3.22) < 10.08.0-r0 10.08.0-r0 Fixed
alpine/ghostscript(Alpine v3.23) < 10.08.0-r0 10.08.0-r0 Fixed
alpine/ghostscript(Alpine v3.24) < 10.08.0-r0 10.08.0-r0 Fixed
Artifex Software Ghostscript < 10.08.0 10.08.0 Fixed
debian/ghostscript(Debian 12) < 10.0.0~dfsg-11+deb12u9; = 10.0.0~dfsg-11; = 10.0.0~dfsg-11+deb12u1; = 10.0.0~dfsg-11+deb12u2 +6 more 10.0.0~dfsg-11+deb12u9 Fixed
debian/ghostscript(Debian 13) < 10.05.1~dfsg-1+deb13u2; = 10.05.1~dfsg-1; = 10.05.1~dfsg-1+deb13u1 10.05.1~dfsg-1+deb13u2 Fixed
debian/ghostscript(Debian 14) < 10.08.0~dfsg-1; = 10.05.1~dfsg-1; = 10.05.1~dfsg-2; = 10.05.1~dfsg-3 +6 more 10.08.0~dfsg-1 Fixed
redhat/ghostscript(Red Hat enterprise_linux 10.2) < 10.02.1-16.el10_2.1 10.02.1-16.el10_2.1 Fixed
redhat/ghostscript(Red Hat enterprise_linux 8) < 9.27-18.el8_10 9.27-18.el8_10 Fixed
redhat/ghostscript(Red Hat enterprise_linux 9) < 9.54.0-19.el9_8.1 9.54.0-19.el9_8.1 Fixed
ubuntu/ghostscript(Ubuntu 22.04) < 9.55.0~dfsg1-0ubuntu5.14 9.55.0~dfsg1-0ubuntu5.14 Fixed
ubuntu/ghostscript(Ubuntu 24.04) < 10.02.1~dfsg1-0ubuntu7.9 10.02.1~dfsg1-0ubuntu7.9 Fixed
ubuntu/ghostscript(Ubuntu 26.04) < 10.06.0~dfsg-3ubuntu1.1 10.06.0~dfsg-3ubuntu1.1 Fixed

Affected products

ProductAffected versionsFixed in
Artifex Software Ghostscript < 10.08.0 10.08.0
redhat/ghostscript(Red Hat:enterprise_linux:10.2) < 10.02.1-16.el10_2.1 10.02.1-16.el10_2.1
redhat/ghostscript(Red Hat:enterprise_linux:8) < 9.27-18.el8_10 9.27-18.el8_10
redhat/ghostscript(Red Hat:enterprise_linux:9) < 9.54.0-19.el9_8.1 9.54.0-19.el9_8.1
redhat/ghostscript(Red Hat:rhel_els:6) All versions No fix listed
redhat/ghostscript(Red Hat:rhel_els:7) All versions No fix listed
ubuntu/ghostscript(Ubuntu:22.04) < 9.55.0~dfsg1-0ubuntu5.14 9.55.0~dfsg1-0ubuntu5.14
ubuntu/ghostscript(Ubuntu:24.04) < 10.02.1~dfsg1-0ubuntu7.9 10.02.1~dfsg1-0ubuntu7.9
ubuntu/ghostscript(Ubuntu:26.04) < 10.06.0~dfsg-3ubuntu1.1 10.06.0~dfsg-3ubuntu1.1
debian/ghostscript(Debian:12) < 10.0.0~dfsg-11+deb12u9 10.0.0~dfsg-11+deb12u9
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11 No fix listed
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11+deb12u1 No fix listed
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11+deb12u2 No fix listed
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11+deb12u3 No fix listed
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11+deb12u4 No fix listed
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11+deb12u5 No fix listed
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11+deb12u6 No fix listed
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11+deb12u7 No fix listed
debian/ghostscript(Debian:12) = 10.0.0~dfsg-11+deb12u8 No fix listed
debian/ghostscript(Debian:13) < 10.05.1~dfsg-1+deb13u2 10.05.1~dfsg-1+deb13u2
debian/ghostscript(Debian:13) = 10.05.1~dfsg-1 No fix listed
debian/ghostscript(Debian:13) = 10.05.1~dfsg-1+deb13u1 No fix listed
debian/ghostscript(Debian:14) < 10.08.0~dfsg-1 10.08.0~dfsg-1
debian/ghostscript(Debian:14) = 10.05.1~dfsg-1 No fix listed
debian/ghostscript(Debian:14) = 10.05.1~dfsg-2 No fix listed
Show 11 more
ProductAffected versionsFixed in
debian/ghostscript(Debian:14) = 10.05.1~dfsg-3 No fix listed
debian/ghostscript(Debian:14) = 10.06.0~dfsg-1 No fix listed
debian/ghostscript(Debian:14) = 10.06.0~dfsg-2 No fix listed
debian/ghostscript(Debian:14) = 10.06.0~dfsg-3 No fix listed
debian/ghostscript(Debian:14) = 10.07.0~dfsg-1 No fix listed
debian/ghostscript(Debian:14) = 10.07.0~dfsg-2 No fix listed
debian/ghostscript(Debian:14) = 10.07.1~dfsg-1 No fix listed
alpine/ghostscript(Alpine:v3.21) < 10.08.0-r0 10.08.0-r0
alpine/ghostscript(Alpine:v3.22) < 10.08.0-r0 10.08.0-r0
alpine/ghostscript(Alpine:v3.23) < 10.08.0-r0 10.08.0-r0
alpine/ghostscript(Alpine:v3.24) < 10.08.0-r0 10.08.0-r0

References