CVE-2026-39919Ghostscript < 10.08.0 Heap Buffer Overflow via JPEG 2000 Output Adapter
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.
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
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.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.04 | ghostscript | Fixed | 10.06.0~dfsg-3ubuntu1.1 | UBUNTU-CVE-2026-39919 |
| Ubuntu 24.04 | ghostscript | Fixed | 10.02.1~dfsg1-0ubuntu7.9 | UBUNTU-CVE-2026-39919 |
| Ubuntu 22.04 | ghostscript | Fixed | 9.55.0~dfsg1-0ubuntu5.14 | UBUNTU-CVE-2026-39919 |
| Ubuntu 20.04 | ghostscript | Fix pending | UBUNTU-CVE-2026-39919 | |
| Ubuntu 18.04 | ghostscript | Fix pending | UBUNTU-CVE-2026-39919 | |
| Ubuntu 16.04 | ghostscript | Fix pending | UBUNTU-CVE-2026-39919 | |
| Debian 14 | ghostscript | Fixed | 10.08.0~dfsg-1 | DEBIAN-CVE-2026-39919 |
| Debian 13 | ghostscript | Fixed | 10.05.1~dfsg-1+deb13u2 | DEBIAN-CVE-2026-39919 |
| Debian 12 | ghostscript | Fixed | 10.0.0~dfsg-11+deb12u9 | DEBIAN-CVE-2026-39919 |
| Red Hat Enterprise Linux 10 | libgs | Fixed | 0:10.02.1-16.el10_2.1 | RHSA-2026:74464 |
| Red Hat Enterprise Linux 9 | libgs | Fixed | 0:9.54.0-19.el9_8.1 | RHSA-2026:74457 |
| Red Hat Enterprise Linux 8 | ghostscript | Fixed | 0:9.27-18.el8_10 | RHSA-2026:76877 |
| Red Hat Enterprise Linux 8 | libgs | Fixed | 0:9.27-18.el8_10 | RHSA-2026:76877 |
| Red Hat Enterprise Linux 7 | ghostscript | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ghostscript-cups | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ghostscript-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ghostscript-doc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | ghostscript-gtk | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libgs | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libgs-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ghostscript | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ghostscript-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ghostscript-doc | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | ghostscript-gtk | Will not fix Out of support scope | ||
| AlmaLinux 10 | ghostscript-doc | Fixed | 10.02.1-16.el10_2.1 | ALSA-2026:74464 |
| AlmaLinux 10 | ghostscript-tools-dvipdf | Fixed | 10.02.1-16.el10_2.1 | ALSA-2026:74464 |
| AlmaLinux 10 | ghostscript-tools-fonts | Fixed | 10.02.1-16.el10_2.1 | ALSA-2026:74464 |
| AlmaLinux 10 | ghostscript-tools-printing | Fixed | 10.02.1-16.el10_2.1 | ALSA-2026:74464 |
| AlmaLinux 9 | ghostscript | Fixed | 9.54.0-19.el9_8.1 | ALSA-2026:74457 |
| AlmaLinux 9 | ghostscript-doc | Fixed | 9.54.0-19.el9_8.1 | ALSA-2026:74457 |
| AlmaLinux 9 | ghostscript-tools-dvipdf | Fixed | 9.54.0-19.el9_8.1 | ALSA-2026:74457 |
| AlmaLinux 9 | ghostscript-tools-fonts | Fixed | 9.54.0-19.el9_8.1 | ALSA-2026:74457 |
| AlmaLinux 9 | ghostscript-tools-printing | Fixed | 9.54.0-19.el9_8.1 | ALSA-2026:74457 |
| AlmaLinux 9 | ghostscript-x11 | Fixed | 9.54.0-19.el9_8.1 | ALSA-2026:74457 |
| AlmaLinux 9 | libgs | Fixed | 9.54.0-19.el9_8.1 | ALSA-2026:74457 |
| AlmaLinux 9 | libgs-devel | Fixed | 9.54.0-19.el9_8.1 | ALSA-2026:74457 |
| AlmaLinux 8 | ghostscript | Fixed | 9.27-18.el8_10 | ALSA-2026:76877 |
| AlmaLinux 8 | ghostscript-doc | Fixed | 9.27-18.el8_10 | ALSA-2026:76877 |
| AlmaLinux 8 | ghostscript-tools-dvipdf | Fixed | 9.27-18.el8_10 | ALSA-2026:76877 |
| AlmaLinux 8 | ghostscript-tools-fonts | Fixed | 9.27-18.el8_10 | ALSA-2026:76877 |
| AlmaLinux 8 | ghostscript-tools-printing | Fixed | 9.27-18.el8_10 | ALSA-2026:76877 |
| AlmaLinux 8 | ghostscript-x11 | Fixed | 9.27-18.el8_10 | ALSA-2026:76877 |
| AlmaLinux 8 | libgs | Fixed | 9.27-18.el8_10 | ALSA-2026:76877 |
| AlmaLinux 8 | libgs-devel | Fixed | 9.27-18.el8_10 | ALSA-2026:76877 |
| Rocky Linux 10 | ghostscript | Fixed | 0:10.02.1-16.el10_2.1 | RLSA-2026:74464 |
| Rocky Linux 9 | ghostscript | Fixed | 0:9.54.0-19.el9_8.1 | RLSA-2026:74457 |
| Rocky Linux 8 | ghostscript | Fixed | 0:9.27-18.el8_10 | RLSA-2026:76877 |
| Alpine Linux 3.24 | ghostscript | Fixed | 10.08.0-r0 | ALPINE-CVE-2026-39919 |
| Alpine Linux 3.23 | ghostscript | Fixed | 10.08.0-r0 | ALPINE-CVE-2026-39919 |
| Alpine Linux 3.22 | ghostscript | Fixed | 10.08.0-r0 | ALPINE-CVE-2026-39919 |
| Alpine Linux 3.21 | ghostscript | Fixed | 10.08.0-r0 | ALPINE-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.
- Artifex Software Ghostscript: affected: before 10.08.0; fixed in
10.08.0
Vendor advisories:
- https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/tag/gs10080 (release-notes)
- https://github.com/ArtifexSoftware/ghostpdl/commit/0a8bf88e39db07b0751a58d6ec1cf992073e4d… (patch)
References
- https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/tag/gs10080
- https://github.com/ArtifexSoftware/ghostpdl/commit/0a8bf88e39db07b0751a58d6ec1cf992073e4dc1
- https://bugs.ghostscript.com/show_bug.cgi?id=709666
- https://www.vulncheck.com/advisories/ghostscript-heap-buffer-overflow-via-jpeg-2000-output-adapter
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.