Vulnerability · Published Sep 15, 2026 · Assigned by VulnCheck
CVE-2026-39919Ghostscript < 10.08.0 Heap Buffer Overflow via JPEG 2000 Output Adapter
Critical 9.8
In plain English
A critical-severity heap buffer overflow in Ghostscript from Artifex Software. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 58% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:10 | ghostscript | 10.02.1-16.el10_2.1 | ALSA-2026:74464 |
| AlmaLinux:8 | ghostscript | 9.27-18.el8_10 | ALSA-2026:76877 |
| AlmaLinux:9 | ghostscript | 9.54.0-19.el9_8.1 | ALSA-2026:74457 |
| AlmaLinux:10 | ghostscript-doc | 10.02.1-16.el10_2.1 | ALSA-2026:74464 |
| AlmaLinux:8 | ghostscript-doc | 9.27-18.el8_10 | ALSA-2026:76877 |
| AlmaLinux:9 | ghostscript-doc | 9.54.0-19.el9_8.1 | ALSA-2026:74457 |
| AlmaLinux:10 | ghostscript-tools-dvipdf | 10.02.1-16.el10_2.1 | ALSA-2026:74464 |
| AlmaLinux:8 | ghostscript-tools-dvipdf | 9.27-18.el8_10 | ALSA-2026:76877 |
| AlmaLinux:9 | ghostscript-tools-dvipdf | 9.54.0-19.el9_8.1 | ALSA-2026:74457 |
| AlmaLinux:10 | ghostscript-tools-fonts | 10.02.1-16.el10_2.1 | ALSA-2026:74464 |
| AlmaLinux:8 | ghostscript-tools-fonts | 9.27-18.el8_10 | ALSA-2026:76877 |
| AlmaLinux:9 | ghostscript-tools-fonts | 9.54.0-19.el9_8.1 | ALSA-2026:74457 |
| AlmaLinux:10 | ghostscript-tools-printing | 10.02.1-16.el10_2.1 | ALSA-2026:74464 |
| AlmaLinux:8 | ghostscript-tools-printing | 9.27-18.el8_10 | ALSA-2026:76877 |
| AlmaLinux:9 | ghostscript-tools-printing | 9.54.0-19.el9_8.1 | ALSA-2026:74457 |
| AlmaLinux:8 | ghostscript-x11 | 9.27-18.el8_10 | ALSA-2026:76877 |
| AlmaLinux:9 | ghostscript-x11 | 9.54.0-19.el9_8.1 | ALSA-2026:74457 |
| AlmaLinux:10 | libgs | 10.02.1-16.el10_2.1 | ALSA-2026:74464 |
| AlmaLinux:8 | libgs | 9.27-18.el8_10 | ALSA-2026:76877 |
| AlmaLinux:9 | libgs | 9.54.0-19.el9_8.1 | ALSA-2026:74457 |
| AlmaLinux:10 | libgs-devel | 10.02.1-16.el10_2.1 | ALSA-2026:74464 |
| AlmaLinux:8 | libgs-devel | 9.27-18.el8_10 | ALSA-2026:76877 |
| AlmaLinux:9 | libgs-devel | 9.54.0-19.el9_8.1 | ALSA-2026:74457 |
| Alpine:v3.23 | ghostscript | 10.08.0-r0 | ALPINE-CVE-2026-39919 |
| Alpine:v3.24 | ghostscript | 10.08.0-r0 | ALPINE-CVE-2026-39919 |
| Debian:12 | ghostscript | no fix listed | DEBIAN-CVE-2026-39919 |
| Debian:13 | ghostscript | 10.05.1~dfsg-1+deb13u2 | DEBIAN-CVE-2026-39919 |
| Debian:14 | ghostscript | 10.08.0~dfsg-1 | DEBIAN-CVE-2026-39919 |
| Rocky Linux:10 | ghostscript | 0:10.02.1-16.el10_2.1 | RLSA-2026:74464 |
| Rocky Linux:8 | ghostscript | 0:9.27-18.el8_10 | RLSA-2026:76877 |
| Rocky Linux:9 | ghostscript | 0:9.54.0-19.el9_8.1 | RLSA-2026:74457 |
| Ubuntu:22.04:LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.14 | USN-8791-1 |
| Ubuntu:22.04:LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.14 | UBUNTU-CVE-2026-39919 |
| Ubuntu:24.04:LTS | ghostscript | 10.02.1~dfsg1-0ubuntu7.9 | UBUNTU-CVE-2026-39919 |
| Ubuntu:24.04:LTS | ghostscript | 10.02.1~dfsg1-0ubuntu7.9 | USN-8791-1 |
| Ubuntu:26.04:LTS | ghostscript | 10.06.0~dfsg-3ubuntu1.1 | UBUNTU-CVE-2026-39919 |
| Ubuntu:26.04:LTS | ghostscript | 10.06.0~dfsg-3ubuntu1.1 | USN-8791-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Artifex Software | Ghostscript | 0 – before 10.08.0 |
Weakness: CWE-122 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- Ghostscript 10.08.0 (gs10080) Release Notes release-notes
- Patch Commit patch
- Bugzilla Report issue-tracking
- https://www.vulncheck.com/advisories/ghostscript-heap-buffer-overflow-via-jpeg-2000-output-adapter third-party-advisory