| Name | CVE-2025-59800 | 
| Description | In Artifex Ghostscript 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. | 
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) | 
Vulnerable and fixed packages
The table below lists information on source packages.
| Source Package | Release | Version | Status | 
|---|
| ghostscript (PTS) | bullseye | 9.53.3~dfsg-7+deb11u7 | vulnerable | 
 | bullseye (security) | 9.53.3~dfsg-7+deb11u11 | vulnerable | 
 | bookworm | 10.0.0~dfsg-11+deb12u7 | vulnerable | 
 | bookworm (security) | 10.0.0~dfsg-11+deb12u8 | vulnerable | 
 | trixie | 10.05.1~dfsg-1 | vulnerable | 
 | trixie (security) | 10.05.1~dfsg-1+deb13u1 | vulnerable | 
 | forky | 10.05.1~dfsg-3 | vulnerable | 
 | sid | 10.06.0~dfsg-3 | fixed | 
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs | 
|---|
| ghostscript | source | (unstable) | 10.06.0~dfsg-1 | unimportant |  |  | 
Notes
https://bugs.ghostscript.com/show_bug.cgi?id=708602
https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=176cf0188a2294bc307b8caec876f39412e58350 (ghostpdl-10.06.0rc1)
Ghostscript in Debian not compiled with Tesseract support