Stack-based Buffer Overflow Affecting ghostscript-debugsource package, versions <0:9.56.1-7.amzn2023.0.19


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.01% (2nd 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-AMZN2023-GHOSTSCRIPTDEBUGSOURCE-13560732
  • published16 Oct 2025
  • disclosed22 Sept 2025

Introduced: 22 Sep 2025

CVE-2025-59798  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 ghostscript-debugsource to version 0:9.56.1-7.amzn2023.0.19 or higher.
This issue was patched in ALAS2023-2025-1218.

NVD Description

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

Artifex Ghostscript through 10.05.1 has a stack-based buffer overflow in pdf_write_cmap in devices/vector/gdevpdtw.c.

CVSS Base Scores

version 3.1