CVE-2026-39919: Ghostscript < 10.08.0 Heap Buffer Overflow via JPEG 2000 Output Adapter

Published Sep 15, 2026
·
Updated

Ghostscript before 10.08.0 contains a heap-based buffer overflow vulnerability in the JPEG 2000 output adapter (base/sjpxopenjpeg.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.

Affected Software

1 affected component
Artifex Ghostscript<10.08.0

Event History

Sep 15, 2026
CVE Published
via MITRE·02:26 PM
Data Sourced
via MITRE·02:26 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An unauthenticated remote attacker can exploit it by supplying a crafted PDF that contains a JPEG 2000 image with mismatched component subsampling factors. Exploitation does not require user interaction or privileges according to the supplied vector.

2

Which Ghostscript deployments are affected?

Ghostscript versions before 10.08.0 are affected. The vulnerable code is the JPEG 2000 output adapter in base/sjpx_openjpeg.c.

3

What is the impact of successful exploitation?

The crafted image can trigger a heap buffer overflow that corrupts internal chunk-allocator metadata. The described outcome is memory corruption leading to code execution.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203