
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-39919 is a heap-based buffer overflow vulnerability in Ghostscript's JPEG 2000 output adapter (base/sjpx_openjpeg.c) that allows unauthenticated remote attackers to achieve arbitrary code execution by supplying a crafted PDF file. It affects all versions of Ghostscript (by Artifex Software) before 10.08.0. The vulnerability was disclosed on September 15, 2026, with a patch released in Ghostscript 10.08.0. It carries a CVSS v3.1 base score of 9.8 (Critical) and a CVSS v4.0 base score of 9.3 (Critical) (Github Advisory, Feedly).
The root cause is a heap-based buffer overflow (CWE-122) in the non-samescale sub-byte-depth output path of the JPEG 2000 (JPXDecode) adapter in base/sjpx_openjpeg.c. When a PDF contains a JPEG 2000 image whose components declare different subsampling factors (dx/dy values), the code allocates a row buffer sized for packed output (accounting for sub-byte bit depths) but then writes a full byte per output column regardless of the actual bit depth. This causes the write pointer to overflow the allocation, corrupting internal chunk-allocator metadata in a manner exploitable for code execution. The fix, committed by Ken Sharp, corrects the inner loop to count samples rather than bytes and adds a guard rejecting unsupported BPS values (Ghostscript Commit, Github Advisory). The vulnerability was originally reported by Alex Thomas of Wordfence Argus (AI) (Ghostscript Commit).
Successful exploitation allows an unauthenticated, remote attacker to execute arbitrary code in the context of the Ghostscript process, resulting in full compromise of confidentiality, integrity, and availability of the affected system. Because Ghostscript is widely embedded in document processing pipelines, print servers, web applications, and CI/CD systems, exploitation could enable lateral movement within an organization's infrastructure. Sensitive data accessible to the Ghostscript process — including documents, credentials, and system files — may be exposed or modified (Github Advisory, Feedly).
As of the time of disclosure, there is no public proof-of-concept exploit and no evidence of active in-the-wild exploitation (Feedly). The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. The EPSS score is approximately 0.49–0.55%, placing it in roughly the 44th percentile for exploitation likelihood within 30 days (Github Advisory). No threat actor attribution has been reported. However, the vulnerability is rated automatable with total technical impact by NVD SSVC analysis, indicating high potential for weaponization if a PoC is developed (Feedly).
dx/dy values per component) and a sub-byte bit depth (e.g., 1, 2, or 4 bpp). Tools such as OpenJPEG or custom JP2 file generators can be used to construct the malformed image stream.process_one_trunk function in base/sjpx_openjpeg.c enters the non-samescale sub-byte-depth output path. The inner loop writes one full byte per output column instead of packing multiple samples per byte, overflowing the heap-allocated row buffer.gs or ghostscript (e.g., /bin/sh, bash, curl, wget, python, nc); Ghostscript processes consuming abnormally high memory or crashing with segmentation faults.The primary remediation is to upgrade Ghostscript to version 10.08.0 or later, which contains the fix committed in 0a8bf88 (Ghostscript Release). Linux distribution users should apply vendor-supplied security updates (e.g., Ubuntu USN-8791-1, Debian security advisories) as they become available. As a temporary workaround where immediate patching is not possible, restrict PDF processing to trusted sources only, and consider disabling or sandboxing Ghostscript's JPEG 2000 (JPXDecode) processing. Implementing strict input validation to reject PDFs with suspicious JPEG 2000 component configurations can also reduce exposure (Feedly).
The vulnerability received coverage from SecurityOnline.info and was mentioned in The Hacker News weekly security recap (SecurityOnline, The Hacker News). The Yocto Project security mailing list and AUSCERT also issued advisories referencing the issue. Community discussion on Mastodon (infosec.exchange) noted the critical severity rating. Overall, industry reaction has been measured, with no reports of active exploitation driving urgent public alarm.
Fix availability across major Linux distributions and their releases.
bookworm
ghostscript: 10.0.0~dfsg-11+deb12u9
sid
ghostscript: 10.08.0~dfsg-1
trixie
ghostscript: 10.05.1~dfsg-1+deb13u2
bionic (esm-infra)
ghostscript
devel
ghostscript
focal (esm-infra)
ghostscript
jammy
ghostscript: 9.55.0~dfsg1-0ubuntu5.14
noble
ghostscript: 10.02.1~dfsg1-0ubuntu7.9
resolute
ghostscript: 10.06.0~dfsg-3ubuntu1.1
xenial (esm-infra-legacy)
ghostscript
RHEL 8
:appstream:ghostscript-0:9.27-18.el8_10.src
RHEL 9
:appstream:ghostscript-0:9.54.0-19.el9_8.1.src
RHEL 10
ghostscript-0:10.02.1-16.el10_2.1.src
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."