Heap-based Buffer Overflow The advisory has been revoked - it doesn't affect any version of package libgs-devel  (opens in a new tab)


Threat Intelligence

EPSS
0.85% (58th 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-ALMALINUX10-LIBGSDEVEL-20413805
  • published3 Oct 2026
  • disclosed1 Oct 2026

Introduced: 1 Oct 2026

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

Amendment

The AlmaLinux security team deemed this advisory irrelevant for AlmaLinux:10.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libgs-devel package and not the libgs-devel package as distributed by AlmaLinux.

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.