CVE-2025-59800
Ghostscript vulnerability analysis and mitigation

Overview

CVE-2025-59800 affects Artifex Ghostscript through version 10.05.1. The vulnerability was discovered on June 13, 2025, and involves an integer overflow vulnerability in the ocrbeginpage function within devices/gdevpdfocr.c that leads to a heap-based buffer overflow in ocrline8 ([Ghostscript Bug](https://bugs.ghostscript.com/showbug.cgi?id=708602)).

Technical details

The vulnerability stems from an integer overflow condition in the ocrbeginpage function located in devices/gdevpdfocr.c line 526. This overflow occurs during memory allocation calculations, which subsequently leads to a heap-based buffer overflow in the ocr_line8 function at line 461. The vulnerability has been assigned a CVSS 3.1 Base Score of 4.3 (MEDIUM) with the vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N (NVD CVE).

Impact

The vulnerability allows for heap-based buffer overflow conditions, which could potentially lead to memory corruption. The CVSS scoring indicates that while the vulnerability has local access requirements, it can affect confidentiality and integrity of the system (NVD CVE).

Mitigation and workarounds

The vulnerability has been fixed in Ghostscript with commit 176cf0188a2294bc307b8caec876f39412e58350. The fix involves adding proper bounds checking for the raster size calculation to prevent integer overflow conditions. Users should upgrade to versions containing this fix (Ghostscript Commit).

Additional resources


SourceThis report was generated using AI

Related Ghostscript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-7462MEDIUM5.3
  • GhostscriptGhostscript
  • ghostscript
NoYesJul 12, 2025
CVE-2025-59801MEDIUM4.3
  • GhostscriptGhostscript
  • ghostscript
NoNoSep 22, 2025
CVE-2025-59800MEDIUM4.3
  • GhostscriptGhostscript
  • cpe:2.3:a:artifex:ghostscript
NoNoSep 22, 2025
CVE-2025-59799MEDIUM4.3
  • GhostscriptGhostscript
  • cpe:2.3:a:artifex:ghostscript
NoNoSep 22, 2025
CVE-2025-59798MEDIUM4.3
  • GhostscriptGhostscript
  • ghostscript
NoNoSep 22, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management