What is CVE-2026-39919?
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.
Timeline
- 2026-09-15Published to the U.S. National Vulnerability Database (NVD)
- 2026-09-24NVD record last updated
Affected product
See advisory
Remediation Steps
- Apply the Ghostscript security patch addressing the heap buffer overflow vulnerability
- Restrict upload and processing of PDF files from untrusted sources
- Implement input validation and sandboxing for PDF processing operations
- Review and update document processing workflows to minimize exposure to malicious PDF files
References
Referenced in our briefings & reports
- Vulnerability Priority Report – Week 2 of October 2026 (October 12 – 18)
Browse all tracked CVEs in the defend.network CVE database →
🤖 This CVE page is generated by defend.network from NVD, CISA KEV, EPSS, and our verified daily briefings. Severity and exploitation data come from official sources; always verify remediation steps against the official vendor advisory before acting in production.