Skip to main content

Integer Overflow or Wraparound

CVE-2025-59800

Severity Medium
Score 5.5/10

Summary

In Artifex Ghostscript versions through 10.05.1, 'ocr_begin_page()' in 'devices/gdevpdfocr.c' has an integer overflow that leads to a Heap-based Buffer Overflow in 'ocr_line8()'.

  • LOW
  • LOCAL
  • NONE
  • UNCHANGED
  • NONE
  • LOW
  • NONE
  • HIGH

CWE-190 - Integer Overflow or Wraparound

The software performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control.

Advisory Timeline

  • Published