CVE-2026-39919 Ghostscript < 10.08.0 Heap Buffer Overflow via JPEG 2000 Output Adapter
Attackers can achieve code execution by supplying a crafted PDF with mismatched JPEG 2000 subsampling factors to vulnerable Ghostscript versions.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-39919?
CVE-2026-39919 is a critical memory corruption vulnerability in Artifex Software Ghostscript, published on 15 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-122
Which versions are affected by CVE-2026-39919?
Linux distribution packages (40)
ghostscript AlmaLinux:10 | All versions | 10.02.1-16.el10_2.1 |
ghostscript-doc AlmaLinux:10 | All versions | 10.02.1-16.el10_2.1 |
ghostscript-tools-dvipdf AlmaLinux:10 | All versions | 10.02.1-16.el10_2.1 |
ghostscript-tools-fonts AlmaLinux:10 | All versions | 10.02.1-16.el10_2.1 |
ghostscript-tools-printing AlmaLinux:10 | All versions | 10.02.1-16.el10_2.1 |
libgs AlmaLinux:10 | All versions | 10.02.1-16.el10_2.1 |
libgs-devel AlmaLinux:10 | All versions | 10.02.1-16.el10_2.1 |
ghostscript AlmaLinux:8 | All versions | 9.27-18.el8_10 |
ghostscript-doc AlmaLinux:8 | All versions | 9.27-18.el8_10 |
ghostscript-tools-dvipdf AlmaLinux:8 | All versions | 9.27-18.el8_10 |
ghostscript-tools-fonts AlmaLinux:8 | All versions | 9.27-18.el8_10 |
ghostscript-tools-printing AlmaLinux:8 | All versions | 9.27-18.el8_10 |
ghostscript-x11 AlmaLinux:8 | All versions | 9.27-18.el8_10 |
libgs AlmaLinux:8 | All versions | 9.27-18.el8_10 |
libgs-devel AlmaLinux:8 | All versions | 9.27-18.el8_10 |
ghostscript AlmaLinux:9 | All versions | 9.54.0-19.el9_8.1 |
ghostscript-doc AlmaLinux:9 | All versions | 9.54.0-19.el9_8.1 |
ghostscript-tools-dvipdf AlmaLinux:9 | All versions | 9.54.0-19.el9_8.1 |
ghostscript-tools-fonts AlmaLinux:9 | All versions | 9.54.0-19.el9_8.1 |
ghostscript-tools-printing AlmaLinux:9 | All versions | 9.54.0-19.el9_8.1 |
ghostscript-x11 AlmaLinux:9 | All versions | 9.54.0-19.el9_8.1 |
libgs AlmaLinux:9 | All versions | 9.54.0-19.el9_8.1 |
libgs-devel AlmaLinux:9 | All versions | 9.54.0-19.el9_8.1 |
libgs Red Hat:enterprise_linux:10.2 | All versions | 0:10.02.1-16.el10_2.1 |
ghostscript Red Hat:enterprise_linux:8::appstream | All versions | 0:9.27-18.el8_10 |
libgs Red Hat:enterprise_linux:8::appstream | All versions | 0:9.27-18.el8_10 |
libgs Red Hat:enterprise_linux:9::appstream | All versions | 0:9.54.0-19.el9_8.1 |
ghostscript Rocky Linux:10 | All versions | 0:10.02.1-16.el10_2.1 |
ghostscript Rocky Linux:8 | All versions | 0:9.27-18.el8_10 |
ghostscript Rocky Linux:9 | All versions | 0:9.54.0-19.el9_8.1 |
ghostscript SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 9.52-150000.214.1 |
ghostscript SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 9.52-150000.214.1 |
ghostscript SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 9.52-150000.214.1 |
ghostscript SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | All versions | 9.52-150000.214.1 |
ghostscript SUSE:Linux Enterprise Module for Basesystem 15 SP7 | All versions | 9.52-150000.214.1 |
ghostscript SUSE:Linux Enterprise Server 12 SP5-LTSS | All versions | 9.52-23.100.1 |
ghostscript SUSE:Linux Enterprise Server 15 SP4-LTSS | All versions | 9.52-150000.214.1 |
ghostscript SUSE:Linux Enterprise Server 15 SP5-LTSS | All versions | 9.52-150000.214.1 |
ghostscript SUSE:Linux Enterprise Server 15 SP6-LTSS | All versions | 9.52-150000.214.1 |
ghostscript SUSE:Linux Enterprise Server 16.0 | All versions | 10.08.0-160000.1.1 |
How do I fix CVE-2026-39919?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2026-39919 being exploited?
There is no known exploitation of CVE-2026-39919 in the wild and no public exploit code.
Sources
Also known as ALPINE-CVE-2026-39919, ALSA-2026:74457, ALSA-2026:74464, ALSA-2026:76877, BELL-CVE-2026-39919, CLSA-2026-1791226276 and 23 more.