cve.bz

CVE-2026-39919 artifex software ghostscript: Heap-based Buffer Overflow

9.3 criticalEPSS 0.8%

Critical (9.3) in artifex software ghostscript. EPSS 0.8% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

9.3 critical
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

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
0.8% (unchanged from 0.8% a week ago; 0.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 59th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2026-09-20. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-122 Heap-based Buffer Overflow
Published
Modified
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-39919 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-39919?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-39919?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-39919 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Artifex Software Ghostscriptbefore 10.08.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12ghostscript10.0.0~dfsg-11+deb12u9DEBIAN-CVE-2026-39919 DLA-4914-1
Debian13ghostscript10.05.1~dfsg-1+deb13u2DEBIAN-CVE-2026-39919 DSA-6516-1
Debian14ghostscript10.08.0~dfsg-1DEBIAN-CVE-2026-39919
Ubuntu22.04:LTSghostscript9.55.0~dfsg1-0ubuntu5.14UBUNTU-CVE-2026-39919 USN-8791-1
Ubuntu24.04:LTSghostscript10.02.1~dfsg1-0ubuntu7.9UBUNTU-CVE-2026-39919 USN-8791-1
Ubuntu26.04:LTSghostscript10.06.0~dfsg-3ubuntu1.1UBUNTU-CVE-2026-39919 USN-8791-1
UbuntuPro:16.04:LTS, Pro:18.04:LTS, Pro:20.04:LTSghostscriptno fix listedUBUNTU-CVE-2026-39919
Red Hatenterprise_linux:8::appstreamlibgs, ghostscript0:9.27-18.el8_10RHSA-2026:76877
Red Hatenterprise_linux:9::appstreamlibgs0:9.54.0-19.el9_8.1RHSA-2026:74457
Red Hatenterprise_linux:10.2libgs0:10.02.1-16.el10_2.1RHSA-2026:74464
SUSELinux Enterprise High Performance Computing 15 SP4-ESPOS, Linux Enterprise High Performance Computing 15 SP4-LTSS, Linux Enterprise High Performance Computing 15 SP5-ESPOS and 8 moreghostscript9.52-150000.214.1SUSE-SU-2026:4632-1
SUSELinux Enterprise Server 12 SP5-LTSS, Linux Enterprise Server LTSS Extended Security 12 SP5ghostscript9.52-23.100.1SUSE-SU-2026:4598-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0ghostscript10.08.0-160000.1.1SUSE-SU-2026:24214-1
openSUSELeap 16.0ghostscript10.08.0-160000.1.1openSUSE-SU-2026:22063-1
openSUSETumbleweedghostscript10.08.0-1.1openSUSE-SU-2026:11959-1
AlmaLinux8libgs, ghostscript, libgs-devel and 5 more9.27-18.el8_10ALSA-2026:76877
AlmaLinux9libgs, ghostscript, libgs-devel and 5 more9.54.0-19.el9_8.1ALSA-2026:74457
AlmaLinux10ghostscript-doc, ghostscript-tools-fonts, ghostscript-tools-dvipdf and 1 more10.02.1-16.el10_2.1ALSA-2026:74464
Rocky Linux8ghostscript0:9.27-18.el8_10RLSA-2026:76877
Rocky Linux9ghostscript0:9.54.0-19.el9_8.1RLSA-2026:74457
Rocky Linux10ghostscript0:10.02.1-16.el10_2.1RLSA-2026:74464
Alpinev3.21, v3.22, v3.23 and 1 moreghostscript10.08.0-r0ALPINE-CVE-2026-39919
Alpaquita23ghostscript10.01.2-r6BELL-CVE-2026-39919
Alpaquita25ghostscript10.05.1-r1BELL-CVE-2026-39919
Alpaquitastreamghostscript10.08.0-r0BELL-CVE-2026-39919

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This issue is rated Moderate because it requires processing a specially crafted PDF document containing a malformed JPEG 2000 image. Exploitation typically necessitates user interaction, such as opening a malicious file, which limits the attack vector compared to remotely exploitable vulnerabilities.

Red Hat's mitigation

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.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10ghostscript-0:10.02.1-16.el10_2.1Fixed 2026-10-01RHSA-2026:74464
Red Hat Enterprise Linux 8ghostscript-0:9.27-18.el8_10Fixed 2026-10-06RHSA-2026:76877
Red Hat Enterprise Linux 9ghostscript-0:9.54.0-19.el9_8.1Fixed 2026-10-02RHSA-2026:74457
Red Hat Enterprise Linux 6ghostscriptOut of support scope
Red Hat Enterprise Linux 7ghostscriptOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-39919.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON