CVEfocus › CVE database › CVE-2026-39919

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

CVSS 9.8 CriticalEPSS 0.8% (higher than 56% of CVEs)Published 2026-09-15Updated 2026-10-01Assigner: VulnCheck

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.

CWE-122

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

37Fixed
3Fix pending
11Will not fix

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04ghostscriptFixed10.06.0~dfsg-3ubuntu1.1UBUNTU-CVE-2026-39919
Ubuntu 24.04ghostscriptFixed10.02.1~dfsg1-0ubuntu7.9UBUNTU-CVE-2026-39919
Ubuntu 22.04ghostscriptFixed9.55.0~dfsg1-0ubuntu5.14UBUNTU-CVE-2026-39919
Ubuntu 20.04ghostscriptFix pendingUBUNTU-CVE-2026-39919
Ubuntu 18.04ghostscriptFix pendingUBUNTU-CVE-2026-39919
Ubuntu 16.04ghostscriptFix pendingUBUNTU-CVE-2026-39919
Debian 14ghostscriptFixed10.08.0~dfsg-1DEBIAN-CVE-2026-39919
Debian 13ghostscriptFixed10.05.1~dfsg-1+deb13u2DEBIAN-CVE-2026-39919
Debian 12ghostscriptFixed10.0.0~dfsg-11+deb12u9DEBIAN-CVE-2026-39919
Red Hat Enterprise Linux 10libgsFixed0:10.02.1-16.el10_2.1RHSA-2026:74464
Red Hat Enterprise Linux 9libgsFixed0:9.54.0-19.el9_8.1RHSA-2026:74457
Red Hat Enterprise Linux 8ghostscriptFixed0:9.27-18.el8_10RHSA-2026:76877
Red Hat Enterprise Linux 8libgsFixed0:9.27-18.el8_10RHSA-2026:76877
Red Hat Enterprise Linux 7ghostscriptWill not fix
Out of support scope
Red Hat Enterprise Linux 7ghostscript-cupsWill not fix
Out of support scope
Red Hat Enterprise Linux 7ghostscript-develWill not fix
Out of support scope
Red Hat Enterprise Linux 7ghostscript-docWill not fix
Out of support scope
Red Hat Enterprise Linux 7ghostscript-gtkWill not fix
Out of support scope
Red Hat Enterprise Linux 7libgsWill not fix
Out of support scope
Red Hat Enterprise Linux 7libgs-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6ghostscriptWill not fix
Out of support scope
Red Hat Enterprise Linux 6ghostscript-develWill not fix
Out of support scope
Red Hat Enterprise Linux 6ghostscript-docWill not fix
Out of support scope
Red Hat Enterprise Linux 6ghostscript-gtkWill not fix
Out of support scope
AlmaLinux 10ghostscript-docFixed10.02.1-16.el10_2.1ALSA-2026:74464
AlmaLinux 10ghostscript-tools-dvipdfFixed10.02.1-16.el10_2.1ALSA-2026:74464
AlmaLinux 10ghostscript-tools-fontsFixed10.02.1-16.el10_2.1ALSA-2026:74464
AlmaLinux 10ghostscript-tools-printingFixed10.02.1-16.el10_2.1ALSA-2026:74464
AlmaLinux 9ghostscriptFixed9.54.0-19.el9_8.1ALSA-2026:74457
AlmaLinux 9ghostscript-docFixed9.54.0-19.el9_8.1ALSA-2026:74457
AlmaLinux 9ghostscript-tools-dvipdfFixed9.54.0-19.el9_8.1ALSA-2026:74457
AlmaLinux 9ghostscript-tools-fontsFixed9.54.0-19.el9_8.1ALSA-2026:74457
AlmaLinux 9ghostscript-tools-printingFixed9.54.0-19.el9_8.1ALSA-2026:74457
AlmaLinux 9ghostscript-x11Fixed9.54.0-19.el9_8.1ALSA-2026:74457
AlmaLinux 9libgsFixed9.54.0-19.el9_8.1ALSA-2026:74457
AlmaLinux 9libgs-develFixed9.54.0-19.el9_8.1ALSA-2026:74457
AlmaLinux 8ghostscriptFixed9.27-18.el8_10ALSA-2026:76877
AlmaLinux 8ghostscript-docFixed9.27-18.el8_10ALSA-2026:76877
AlmaLinux 8ghostscript-tools-dvipdfFixed9.27-18.el8_10ALSA-2026:76877
AlmaLinux 8ghostscript-tools-fontsFixed9.27-18.el8_10ALSA-2026:76877
AlmaLinux 8ghostscript-tools-printingFixed9.27-18.el8_10ALSA-2026:76877
AlmaLinux 8ghostscript-x11Fixed9.27-18.el8_10ALSA-2026:76877
AlmaLinux 8libgsFixed9.27-18.el8_10ALSA-2026:76877
AlmaLinux 8libgs-develFixed9.27-18.el8_10ALSA-2026:76877
Rocky Linux 10ghostscriptFixed0:10.02.1-16.el10_2.1RLSA-2026:74464
Rocky Linux 9ghostscriptFixed0:9.54.0-19.el9_8.1RLSA-2026:74457
Rocky Linux 8ghostscriptFixed0:9.27-18.el8_10RLSA-2026:76877
Alpine Linux 3.24ghostscriptFixed10.08.0-r0ALPINE-CVE-2026-39919
Alpine Linux 3.23ghostscriptFixed10.08.0-r0ALPINE-CVE-2026-39919
Alpine Linux 3.22ghostscriptFixed10.08.0-r0ALPINE-CVE-2026-39919
Alpine Linux 3.21ghostscriptFixed10.08.0-r0ALPINE-CVE-2026-39919

What the vendor says

As published in the CVE record by VulnCheck, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.