Heap-based Buffer Overflow Affecting ghostscript-tools-dvipdf package, versions <0:9.54.0-19.el9_8.1


Severity

Recommended
medium

Based on Rocky Linux security rating.

Threat Intelligence

EPSS
0.78% (55th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-ROCKY9-GHOSTSCRIPTTOOLSDVIPDF-20416750
  • published4 Oct 2026
  • disclosed15 Sept 2026

Introduced: 15 Sep 2026

CVE-2026-39919  (opens in a new tab)
CWE-122  (opens in a new tab)

How to fix?

Upgrade Rocky-Linux:9 ghostscript-tools-dvipdf to version 0:9.54.0-19.el9_8.1 or higher.
This issue was patched in RLSA-2026:74457.

NVD Description

Note: Versions mentioned in the description apply only to the upstream ghostscript-tools-dvipdf package and not the ghostscript-tools-dvipdf package as distributed by Rocky-Linux. See How to fix? for Rocky-Linux:9 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1