CVE-2026-39919: Heap-based Buffer Overflow in Artifex Software Ghostscript
A heap-based buffer overflow vulnerability exists in Artifex Software Ghostscript versions before 10.08.0. The flaw occurs in the JPEG 2000 output adapter when processing crafted PDFs with JPEG 2000 images that have mismatched component subsampling factors. This leads to memory corruption and potential code execution.
AI Analysis
Technical Summary
CVE-2026-39919 is a heap-based buffer overflow vulnerability in Ghostscript prior to version 10.08.0, specifically in the JPEG 2000 output adapter (base/sjpx_openjpeg.c). The vulnerability arises when a crafted PDF contains a JPEG 2000 image with components declaring different subsampling values. The non-samescale sub-byte-depth output path allocates a row buffer sized for packed output but incorrectly writes a full byte per output column regardless of bit depth. This causes an overflow of the allocated buffer, corrupting internal chunk-allocator metadata and potentially allowing an attacker to achieve arbitrary code execution.
Potential Impact
Successful exploitation can lead to memory corruption and arbitrary code execution without requiring user interaction or privileges. The vulnerability has a CVSS 4.0 score of 9.3, indicating critical severity with network attack vector, low attack complexity, no privileges required, and no user interaction needed.
Mitigation Recommendations
A fix is available in Ghostscript version 10.08.0. Users should upgrade to version 10.08.0 or later to remediate this vulnerability. No vendor advisory content was provided, but the affected versions and patch version are clearly stated.
CVE-2026-39919: Heap-based Buffer Overflow in Artifex Software Ghostscript
Description
A heap-based buffer overflow vulnerability exists in Artifex Software Ghostscript versions before 10.08.0. The flaw occurs in the JPEG 2000 output adapter when processing crafted PDFs with JPEG 2000 images that have mismatched component subsampling factors. This leads to memory corruption and potential code execution.
CVSS v4.0
Score 9.3critical
Affected software
Artifex Software
Ghostscript
pkg:github/artifexsoftware/ghostpdlRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-39919 is a heap-based buffer overflow vulnerability in Ghostscript prior to version 10.08.0, specifically in the JPEG 2000 output adapter (base/sjpx_openjpeg.c). The vulnerability arises when a crafted PDF contains a JPEG 2000 image with components declaring different subsampling values. The non-samescale sub-byte-depth output path allocates a row buffer sized for packed output but incorrectly writes a full byte per output column regardless of bit depth. This causes an overflow of the allocated buffer, corrupting internal chunk-allocator metadata and potentially allowing an attacker to achieve arbitrary code execution.
Potential Impact
Successful exploitation can lead to memory corruption and arbitrary code execution without requiring user interaction or privileges. The vulnerability has a CVSS 4.0 score of 9.3, indicating critical severity with network attack vector, low attack complexity, no privileges required, and no user interaction needed.
Mitigation Recommendations
A fix is available in Ghostscript version 10.08.0. Users should upgrade to version 10.08.0 or later to remediate this vulnerability. No vendor advisory content was provided, but the affected versions and patch version are clearly stated.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-04-07T20:57:06.209Z
- Cvss Version
- 4.0
- State
- PUBLISHED
Threat ID: 6aa9c2a755bf5e2cf572c5a5
Added to database: 09/15/2026, 22:11:51 UTC
Last enriched: 09/15/2026, 22:17:11 UTC
Last updated: 09/15/2026, 22:21:29 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.