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

Critical 9.3 Published Updated

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:10All versions10.02.1-16.el10_2.1
ghostscript-doc AlmaLinux:10All versions10.02.1-16.el10_2.1
ghostscript-tools-dvipdf AlmaLinux:10All versions10.02.1-16.el10_2.1
ghostscript-tools-fonts AlmaLinux:10All versions10.02.1-16.el10_2.1
ghostscript-tools-printing AlmaLinux:10All versions10.02.1-16.el10_2.1
libgs AlmaLinux:10All versions10.02.1-16.el10_2.1
libgs-devel AlmaLinux:10All versions10.02.1-16.el10_2.1
ghostscript AlmaLinux:8All versions9.27-18.el8_10
ghostscript-doc AlmaLinux:8All versions9.27-18.el8_10
ghostscript-tools-dvipdf AlmaLinux:8All versions9.27-18.el8_10
ghostscript-tools-fonts AlmaLinux:8All versions9.27-18.el8_10
ghostscript-tools-printing AlmaLinux:8All versions9.27-18.el8_10
ghostscript-x11 AlmaLinux:8All versions9.27-18.el8_10
libgs AlmaLinux:8All versions9.27-18.el8_10
libgs-devel AlmaLinux:8All versions9.27-18.el8_10
ghostscript AlmaLinux:9All versions9.54.0-19.el9_8.1
ghostscript-doc AlmaLinux:9All versions9.54.0-19.el9_8.1
ghostscript-tools-dvipdf AlmaLinux:9All versions9.54.0-19.el9_8.1
ghostscript-tools-fonts AlmaLinux:9All versions9.54.0-19.el9_8.1
ghostscript-tools-printing AlmaLinux:9All versions9.54.0-19.el9_8.1
ghostscript-x11 AlmaLinux:9All versions9.54.0-19.el9_8.1
libgs AlmaLinux:9All versions9.54.0-19.el9_8.1
libgs-devel AlmaLinux:9All versions9.54.0-19.el9_8.1
libgs Red Hat:enterprise_linux:10.2All versions0:10.02.1-16.el10_2.1
ghostscript Red Hat:enterprise_linux:8::appstreamAll versions0:9.27-18.el8_10
libgs Red Hat:enterprise_linux:8::appstreamAll versions0:9.27-18.el8_10
libgs Red Hat:enterprise_linux:9::appstreamAll versions0:9.54.0-19.el9_8.1
ghostscript Rocky Linux:10All versions0:10.02.1-16.el10_2.1
ghostscript Rocky Linux:8All versions0:9.27-18.el8_10
ghostscript Rocky Linux:9All versions0:9.54.0-19.el9_8.1
ghostscript SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions9.52-150000.214.1
ghostscript SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions9.52-150000.214.1
ghostscript SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSAll versions9.52-150000.214.1
ghostscript SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSSAll versions9.52-150000.214.1
ghostscript SUSE:Linux Enterprise Module for Basesystem 15 SP7All versions9.52-150000.214.1
ghostscript SUSE:Linux Enterprise Server 12 SP5-LTSSAll versions9.52-23.100.1
ghostscript SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions9.52-150000.214.1
ghostscript SUSE:Linux Enterprise Server 15 SP5-LTSSAll versions9.52-150000.214.1
ghostscript SUSE:Linux Enterprise Server 15 SP6-LTSSAll versions9.52-150000.214.1
ghostscript SUSE:Linux Enterprise Server 16.0All versions10.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.

Is CVE-2026-39919 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free