Vulnerability · Published Sep 22, 2025 · Assigned by mitre
CVE-2025-59800
Medium 4.3
In plain English
A medium-severity integer overflow in Ghostscript from Artifex. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 8% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)0.2%top 92.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.23 | ghostscript | 10.06.0-r0 | ALPINE-CVE-2025-59800 |
| Alpine:v3.24 | ghostscript | 10.06.0-r0 | ALPINE-CVE-2025-59800 |
| Debian:12 | ghostscript | no fix listed | DEBIAN-CVE-2025-59800 |
| Debian:13 | ghostscript | no fix listed | DEBIAN-CVE-2025-59800 |
| Debian:14 | ghostscript | 10.06.0~dfsg-1 | DEBIAN-CVE-2025-59800 |
| Ubuntu:22.04:LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.13 | USN-7782-1 |
| Ubuntu:22.04:LTS | ghostscript | 9.55.0~dfsg1-0ubuntu5.13 | UBUNTU-CVE-2025-59800 |
| Ubuntu:24.04:LTS | ghostscript | 10.02.1~dfsg1-0ubuntu7.8 | UBUNTU-CVE-2025-59800 |
| Ubuntu:24.04:LTS | ghostscript | 10.02.1~dfsg1-0ubuntu7.8 | USN-7782-1 |
| Ubuntu:25.10 | ghostscript | 10.05.0dfsg1-0ubuntu4 | UBUNTU-CVE-2025-59800 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Artifex | Ghostscript | 0 – through 10.05.1 |
Weakness: CWE-190 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N