Ghostscript JPEG 2000 heap buffer overflow in output adapter
CVE-2026-39919Critical
Ghostscript before version 10.08.0 contains a heap-based buffer overflow in its JPEG 2000 output adapter. An attacker can supply a crafted PDF containing a JPEG 2000 image where components declare mismatched subsampling factors. This causes the output adapter to allocate an undersized row buffer but write full bytes per column, overflowing the buffer and corrupting memory allocator metadata, which allows code execution.
Plain English summary of the NVD and CISA text, checked by machine against both.
Scores and dates
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