Critical severity9.8NVD Advisory· Published Sep 15, 2026· Updated Sep 24, 2026
CVE-2026-39919
CVE-2026-39919
Description
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
13- Range: <10.08.0
- Range: <10.08.0
- osv-coords9 versionspkg:rpm/almalinux/ghostscriptpkg:rpm/almalinux/ghostscript-docpkg:rpm/almalinux/ghostscript-tools-dvipdfpkg:rpm/almalinux/ghostscript-tools-fontspkg:rpm/almalinux/ghostscript-tools-printingpkg:rpm/almalinux/ghostscript-x11pkg:rpm/almalinux/libgspkg:rpm/almalinux/libgs-develpkg:rpm/opensuse/ghostscript&distro=openSUSE%20Tumbleweed
< 9.54.0-19.el9_8.1+ 8 more
- (no CPE)range: < 9.54.0-19.el9_8.1
- (no CPE)range: < 9.54.0-19.el9_8.1
- (no CPE)range: < 9.54.0-19.el9_8.1
- (no CPE)range: < 9.54.0-19.el9_8.1
- (no CPE)range: < 9.54.0-19.el9_8.1
- (no CPE)range: < 9.54.0-19.el9_8.1
- (no CPE)range: < 9.54.0-19.el9_8.1
- (no CPE)range: < 9.54.0-19.el9_8.1
- (no CPE)range: < 10.08.0-1.1
Patches
Vulnerability mechanics
References
4News mentions
4- ⚡ Weekly Recap: 98 Zero-Days, Rogue AI Agents, $100M Crypto Theft, 700 Supermarkets Hit and MoreThe Hacker News · Oct 19, 2026
- Critical Ghostscript Flaw Lets Attackers Use Malicious PDFs to Execute CodeCyber Security News · Oct 13, 2026
- Wordfence Argus Discovers Critical Vulnerability in Ghostscript, the Program That Turns Uploaded PDFs into Thumbnails on Your ServerWordfence Blog · Oct 12, 2026
- ⚡ Weekly Recap: Cisco 0-Day, AI Agent RCE, ClickFix Attacks, ClickFix Surge, and Browser HijacksThe Hacker News · Sep 21, 2026