CVE-2025-59800
Fixed in a distro release EPSS <1%CVSS 4.3
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.
Products: artifex ghostscript
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Alpine 3.23 | ghostscript | 10.06.0-r0 |
| Amazon Linux 2 | ghostscript | 9.54.0-9.amzn2.0.13 |
| Amazon Linux 2 | ghostscript-cups | 9.54.0-9.amzn2.0.13 |
| Amazon Linux 2 | ghostscript-doc | 9.54.0-9.amzn2.0.13 |
| Amazon Linux 2 | ghostscript-gtk | 9.54.0-9.amzn2.0.13 |
| Amazon Linux 2 | libgs | 9.54.0-9.amzn2.0.13 |
| Amazon Linux 2 | libgs-devel | 9.54.0-9.amzn2.0.13 |
| Amazon Linux 2023 | ghostscript | 9.56.1-7.amzn2023.0.19 |
| Amazon Linux 2023 | ghostscript-doc | 9.56.1-7.amzn2023.0.19 |
| Amazon Linux 2023 | ghostscript-gtk | 9.56.1-7.amzn2023.0.19 |
| Amazon Linux 2023 | ghostscript-tools-dvipdf | 9.56.1-7.amzn2023.0.19 |
| Amazon Linux 2023 | ghostscript-tools-fonts | 9.56.1-7.amzn2023.0.19 |
| Amazon Linux 2023 | ghostscript-tools-printing | 9.56.1-7.amzn2023.0.19 |
| Amazon Linux 2023 | ghostscript-x11 | 9.56.1-7.amzn2023.0.19 |
| Amazon Linux 2023 | libgs | 9.56.1-7.amzn2023.0.19 |
| Amazon Linux 2023 | libgs-devel | 9.56.1-7.amzn2023.0.19 |
| Chainguard | ghostscript | 10.07.0-r0 |
| Chainguard | ghostscript-dbg | 10.07.0-r0 |
| Chainguard | ghostscript-dev | 10.07.0-r0 |
| Chainguard | ghostscript-doc | 10.07.0-r0 |
| Debian 12 | ghostscript | no fix |
| Debian 13 | ghostscript | no fix |
| Debian 14 | ghostscript | 10.06.0~dfsg-1 |
| Ubuntu 22.04 LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.13 |
| Ubuntu 24.04 LTS | ghostscript | 10.02.1~dfsg1-0ubuntu7.8 |
| Ubuntu 25.10 | ghostscript | 10.05.0dfsg1-0ubuntu4 |
| Wolfi | ghostscript | 10.07.0-r0 |
| Wolfi | ghostscript-dbg | 10.07.0-r0 |
| Wolfi | ghostscript-dev | 10.07.0-r0 |
| Wolfi | ghostscript-doc | 10.07.0-r0 |
| openSUSE Leap 16.0 | ghostscript | 10.06.0-160000.1.1 |
| openSUSE Tumbleweed | ghostscript | 10.06.0-2.1 |