CVE Database›Document archive›CVE-2026-39919

CVE-2026-39919

ghostscript: ghostscript: Heap buffer overflow via JPEG 2000 output adapter

Loading…

Severity

Moderate

Red Hat Product Security

7.8

CVSS 3.1

Review impact separately from score.

Published · September 15, 2026

Updated · October 19, 2026

Description

A flaw was found in Ghostscript. This heap-based buffer overflow vulnerability in the JPEG 2000 output adapter allows an attacker to cause memory corruption by supplying a specially crafted PDF file. The crafted PDF contains a JPEG 2000 image with mismatched component subsampling factors. Successful exploitation could lead to arbitrary code execution.

Statement

This issue is rated Moderate because it requires processing a specially crafted PDF document containing a malformed JPEG 2000 image. Exploitation typically necessitates user interaction, such as opening a malicious file, which limits the attack vector compared to remotely exploitable vulnerabilities.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

To mitigate this vulnerability, avoid processing untrusted or suspicious PDF documents with Ghostscript. Users should exercise caution when handling files from unknown or unverified sources.

CVSS / CWE

CVSS 3.1 · 7.8
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

CWE-122 · Heap-based Buffer Overflow