CVE-2026-39919 json
Ghostscript < 10.08.0 Heap Buffer Overflow via JPEG 2000 Output Adapter
published 2026-09-15 55 d ago modified 2026-10-01 39 d ago also EUVD-2026-78584
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.8%
- EPSS 0.8% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Artifex Software Ghostscript 10.08.0
- ghostscript Debian 13 10.05.1~dfsg-1+deb13u2
- ghostscript Debian 14 10.08.0~dfsg-1
debian advisories DEBIAN-CVE-2026-39919
- ghostscript Ubuntu 22.04 LTS 9.55.0~dfsg1-0ubuntu5.14
- ghostscript Ubuntu 24.04 LTS 10.02.1~dfsg1-0ubuntu7.9
- ghostscript Ubuntu 26.04 LTS 10.06.0~dfsg-3ubuntu1.1
ubuntu advisories UBUNTU-CVE-2026-39919
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ghostscript RHEL 8 9.27-18.el8_10
- libgs RHEL 8 9.27-18.el8_10
- libgs RHEL 10.2 10.02.1-16.el10_2.1
- libgs RHEL 9 9.54.0-19.el9_8.1
red hat advisories RHSA-2026:76877RHSA-2026:74464RHSA-2026:74457
- ghostscript SLES for SAP 15 SP6, SLES for SAP 15 SP5, SLES for SAP 15 SP4 +8 more 9.52-150000.214.1
- ghostscript SLES for SAP applications 16.0, SLES 16.0 10.08.0-160000.1.1
- ghostscript SLES LTSS Extended Security 12 SP5, SLES 12 SP5-LTSS 9.52-23.100.1
suse advisories SUSE-SU-2026:4632-1SUSE-SU-2026:24214-1SUSE-SU-2026:4598-1
- ghostscript openSUSE Leap 16.0 10.08.0-160000.1.1
- ghostscript openSUSE Tumbleweed 10.08.0-1.1
opensuse advisories openSUSE-SU-2026:22063-1openSUSE-SU-2026:11959-1
- ghostscript AlmaLinux 8 9.27-18.el8_10
- libgs AlmaLinux 8 9.27-18.el8_10
- ghostscript-x11 AlmaLinux 8 9.27-18.el8_10
- ghostscript-tools-fonts AlmaLinux 8 9.27-18.el8_10
- ghostscript-tools-dvipdf AlmaLinux 8 9.27-18.el8_10
- ghostscript-tools-printing AlmaLinux 8 9.27-18.el8_10
- ghostscript AlmaLinux 9 9.54.0-19.el9_8.1
- libgs AlmaLinux 9 9.54.0-19.el9_8.1
almalinux advisories ALSA-2026:76877ALSA-2026:74457ALSA-2026:74464
- ghostscript Rocky Linux 8 9.27-18.el8_10
- ghostscript Rocky Linux 9 9.54.0-19.el9_8.1
- ghostscript Rocky Linux 10 10.02.1-16.el10_2.1
rocky linux advisories RLSA-2026:76877RLSA-2026:74457RLSA-2026:74464
- ghostscript Alpine 3.24, Alpine 3.23 10.08.0-r0
alpine advisories ALPINE-CVE-2026-39919
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-39919 updated cvss 7.8
ghostscript: ghostscript: Heap buffer overflow via JPEG 2000 output adapter
-
Red Hat Enterprise Linux 6 ghostscript, ghostscript-gtk Red Hat Enterprise Linux 7 libgs, ghostscript, ghostscript-gtk, ghostscript-cupsaffected: workaround, no fix planned “To mitigate this vulnerability, avoid processing untrusted or suspicious PDF documents with Ghostscript. Users should exercise caution when handling files from unknown or unverified sources.”
-
Red Hat Enterprise Linux AppStream (v. 8) libgs 9.27-18.el8_10, ghostscript 9.27-18.el8_10fixed: vendor fix “To mitigate this vulnerability, avoid processing untrusted or suspicious PDF documents with Ghostscript. Users should exercise caution when handling files from unknown or unverified sources.” RHSA-2026:76877
-
Red Hat Enterprise Linux AppStream (v. 9) libgs 9.54.0-19.el9_8.1fixed: vendor fix “To mitigate this vulnerability, avoid processing untrusted or suspicious PDF documents with Ghostscript. Users should exercise caution when handling files from unknown or unverified sources.” RHSA-2026:74457
-
Red Hat Enterprise Linux AppStream (v. 10) libgs 10.02.1-16.el10_2.1fixed: vendor fix “To mitigate this vulnerability, avoid processing untrusted or suspicious PDF documents with Ghostscript. Users should exercise caution when handling files from unknown or unverified sources.” RHSA-2026:74464
-
Red Hat Enterprise Linux AppStream (v. 8) ghostscript 9.27-18.el8_10, ghostscript-x11 9.27-18.el8_10 Red Hat Enterprise Linux AppStream (v. 9) ghostscript 9.54.0-19.el9_8.1, ghostscript-x11 9.54.0-19.el9_8.1, ghostscript-tools-fonts 9.54.0-19.el9_8.1, ghostscript-tools-dvipdf 9.54.0-19.el9_8.1, ghostscript-tools-printing 9.54.0-19.el9_8.1 Red Hat Enterprise Linux AppStream (v. 10) ghostscript 10.02.1-16.el10_2.1, ghostscript-tools-fonts 10.02.1-16.el10_2.1, ghostscript-tools-printing 10.02.1-16.el10_2.1 Red Hat Enterprise Linux CodeReady Linux Builder (v. 9) ghostscript 9.54.0-19.el9_8.1, ghostscript-tools-fonts 9.54.0-19.el9_8.1, ghostscript-tools-printing 9.54.0-19.el9_8.1 Red Hat Enterprise Linux CodeReady Linux Builder (v. 10) ghostscript-tools-dvipdf 10.02.1-16.el10_2.1 Red Hat Enterprise Linux CRB (v. 8) ghostscript-tools-fonts 9.27-18.el8_10, ghostscript-tools-dvipdf 9.27-18.el8_10, ghostscript-tools-printing 9.27-18.el8_10not affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 50 d ago
Exploit prediction
0.85% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 4.0 | 9.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
| CNA | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 4.0 | 9.3 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
Affected products
- Artifex Software Ghostscript
Classification
- Weakness
-
- CWE-122 Heap-based Buffer Overflow
References
-
github.com
/ArtifexSoftware/ghostpdl/commit/0a8bf88e39db07b0751a58d6ec1cf992073e4dc1
patch
-
github.com
/ArtifexSoftware/ghostpdl-downloads/releases/tag/gs10080
release-notes
-
bugs.ghostscript.com
/show_bug.cgi?id=709666
issue-tracking
-
vulncheck.com
/advisories/ghostscript-heap-buffer-overflow-via-jpeg-2000-output-adapter
third-party-advisory
Sources
- CVE List CVE-2026-39919
- NVD CVE-2026-39919
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.