Integer Overflow or Wraparound Affecting ghostscript package, versions [,10.06.0rc1)


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

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-UNMANAGED-GHOSTSCRIPT-13003725
  • published22 Sept 2025
  • disclosed22 Sept 2025
  • creditPiotr Kajda

Introduced: 22 Sep 2025

NewCVE-2025-59800  (opens in a new tab)
CWE-190  (opens in a new tab)

How to fix?

Upgrade ghostscript to version 10.06.0rc1 or higher.

Overview

Affected versions of this package are vulnerable to Integer Overflow or Wraparound due to improper handling of integer values in the ocr_begin_page function. An attacker can cause a heap-based buffer overflow by supplying crafted input that triggers the overflow during PDF OCR processing.

CVSS Base Scores

version 4.0
version 3.1