CVE-2026-39919
Ghostscript < 10.08.0 Heap Buffer Overflow via JPEG 2000 Output Adapter
- Severity
- critical CVSS 9.3 (v4.0)
- Affects
- Ghostscript · Artifex Software
- Weakness
- CWE-122: Heap-based Buffer Overflow
- Published
- 15 September 2026 by VulnCheck
- First seen on our lists
- 21 November 2026
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.
Our coverage
On the lists
- [oss-security] Ghostscript 10.08.0 fixes multiple CVEs, including "upload2shell"