
CVE catalog
CVE-2025-59800
Ghostscript vulnerabilities
- Severity
- Medium · CVSS 4.3
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.18% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | ghostscript | sid | 10.08.0~dfsg-2 | fixed |
| Debian | ghostscript | forky | 10.08.0~dfsg-2 | fixed |
| Debian | ghostscript | trixie | 10.05.1~dfsg-1+deb13u1 | vulnerable |
| Debian | ghostscript | trixie-security | 10.05.1~dfsg-1+deb13u3 | vulnerable |
| Debian | ghostscript | bookworm | 10.0.0~dfsg-11+deb12u8 | vulnerable |
| Debian | ghostscript | bookworm-security | 10.0.0~dfsg-11+deb12u8 | vulnerable |
| Ubuntu | ghostscript | noble | Not reported | vulnerable |
| Ubuntu | ghostscript | noble | 10.02.1~dfsg1-0ubuntu7.8 | fixed |
| Ubuntu | ghostscript-doc | noble | 10.02.1~dfsg1-0ubuntu7.8 | fixed |
| Ubuntu | libgs-common | noble | 10.02.1~dfsg1-0ubuntu7.8 | fixed |
| Ubuntu | libgs-dev | noble | 10.02.1~dfsg1-0ubuntu7.8 | fixed |
| Ubuntu | libgs10 | noble | 10.02.1~dfsg1-0ubuntu7.8 | fixed |
| Ubuntu | libgs10-common | noble | 10.02.1~dfsg1-0ubuntu7.8 | fixed |
| Alpine | ghostscript | 3.23 | 10.06.0-r0 | fixed |
| Ubuntu | ghostscript | 22.04 | 9.54.0~dfsg1-0ubuntu2 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu4 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.1 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.2 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.3 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.4 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.5 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.6 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.7 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.9 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.10 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.11 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.12 | vulnerable |
| Ubuntu | ghostscript | 22.04 | 9.55.0~dfsg1-0ubuntu5.13 | fixed |
| Ubuntu | ghostscript | 24.04 | 10.01.2~dfsg1-0ubuntu2 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.01.2~dfsg1-0ubuntu2.1 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu1 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu2 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu5 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu6 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu7 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu7.1 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu7.3 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu7.4 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu7.5 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu7.6 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu7.7 | vulnerable |
| Ubuntu | ghostscript | 24.04 | 10.02.1~dfsg1-0ubuntu7.8 | fixed |
| Ubuntu | ghostscript | 25.10 | 10.05.0dfsg1-0ubuntu1 | vulnerable |
| Ubuntu | ghostscript | 25.10 | 10.05.0dfsg1-0ubuntu2 | vulnerable |
| Ubuntu | ghostscript | 25.10 | 10.05.0dfsg1-0ubuntu4 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | ghostscript | source | sid | 10.06.0~dfsg-1 | unimportant | Not reported | Not reported |
| Debian | ghostscript | source | forky | 10.06.0~dfsg-1 | unimportant | Not reported | Not reported |
| Debian | ghostscript | source | trixie | (unfixed) | unimportant | Not reported | Not reported |
| Debian | ghostscript | source | bookworm | (unfixed) | unimportant | Not reported | Not reported |
| Ubuntu | ghostscript | deb | noble | 10.02.1~dfsg1-0ubuntu7.8 | Not reported | Not reported | Not reported |
| Ubuntu | ghostscript-doc | deb | noble | 10.02.1~dfsg1-0ubuntu7.8 | Not reported | Not reported | Not reported |
| Ubuntu | libgs-common | deb | noble | 10.02.1~dfsg1-0ubuntu7.8 | Not reported | Not reported | Not reported |
| Ubuntu | libgs-dev | deb | noble | 10.02.1~dfsg1-0ubuntu7.8 | Not reported | Not reported | Not reported |
| Ubuntu | libgs10 | deb | noble | 10.02.1~dfsg1-0ubuntu7.8 | Not reported | Not reported | Not reported |
| Ubuntu | libgs10-common | deb | noble | 10.02.1~dfsg1-0ubuntu7.8 | Not reported | Not reported | Not reported |
| Alpine | ghostscript | apk | 3.23 | 10.06.0-r0 | Not reported | ALPINE-CVE-2025-59800 | Not reported |
| Ubuntu | ghostscript | deb | 22.04 | 9.55.0~dfsg1-0ubuntu5.13 | Not reported | UBUNTU-CVE-2025-59800 | Not reported |
| Ubuntu | ghostscript | deb | 24.04 | 10.02.1~dfsg1-0ubuntu7.8 | Not reported | UBUNTU-CVE-2025-59800 | Not reported |
| Ubuntu | ghostscript | deb | 25.10 | 10.05.0dfsg1-0ubuntu4 | Not reported | UBUNTU-CVE-2025-59800 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [ghostscript]Affected
Details (4)
10.0.0~dfsg-11+deb12u8· amd64 · bookwormAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· arm64 · bookwormAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· amd64 · bookworm-securityAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· arm64 · bookworm-securityAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
- [ghostscript-doc]Affected
Source package: [ghostscript]
Details (4)
10.0.0~dfsg-11+deb12u8· all · bookwormAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookwormAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookworm-securityAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookworm-securityAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
- [ghostscript-x]Affected
Source package: [ghostscript]
Details (4)
10.0.0~dfsg-11+deb12u8· amd64 · bookwormAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· arm64 · bookwormAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· amd64 · bookworm-securityAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· arm64 · bookworm-securityAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
- [libgs10]Affected
Source package: [ghostscript]
Details (4)
10.0.0~dfsg-11+deb12u8· amd64 · bookwormAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· arm64 · bookwormAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· amd64 · bookworm-securityAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· arm64 · bookworm-securityAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
- [libgs10-common]Affected
Source package: [ghostscript]
Details (4)
10.0.0~dfsg-11+deb12u8· all · bookwormAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookwormAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookworm-securityAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookworm-securityAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
- [libgs9-common]Affected
Source package: [ghostscript]
Details (4)
10.0.0~dfsg-11+deb12u8· all · bookwormAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookwormAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookworm-securityAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookworm-securityAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
- [libgs-common]Affected
Source package: [ghostscript]
Details (4)
10.0.0~dfsg-11+deb12u8· all · bookwormAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookwormAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookworm-securityAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· all · bookworm-securityAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
- [libgs-dev]Affected
Source package: [ghostscript]
Details (4)
10.0.0~dfsg-11+deb12u8· amd64 · bookwormAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· arm64 · bookwormAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· amd64 · bookworm-securityAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
10.0.0~dfsg-11+deb12u8· arm64 · bookworm-securityAffected
usn · ghostscript · debian · bookworm; usn · ghostscript · debian · 12
[Debian 13 (Trixie)]
- [ghostscript]Affected
Details (6)
10.05.1~dfsg-1+deb13u1· amd64 · trixieAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· arm64 · trixieAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· amd64 · trixie-security · Historical versionAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· arm64 · trixie-securityAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u2· amd64 · trixie-security · Historical versionAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u3· amd64 · trixie-securityAffected
usn · ghostscript · debian · 13
- [ghostscript-doc]Affected
Source package: [ghostscript]
Details (6)
10.05.1~dfsg-1+deb13u1· all · trixieAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixieAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixie-security · Historical versionAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixie-securityAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u2· all · trixie-security · Historical versionAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u3· all · trixie-securityAffected
usn · ghostscript · debian · 13
- [libgs10]Affected
Source package: [ghostscript]
Details (6)
10.05.1~dfsg-1+deb13u1· amd64 · trixieAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· arm64 · trixieAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· amd64 · trixie-security · Historical versionAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· arm64 · trixie-securityAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u2· amd64 · trixie-security · Historical versionAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u3· amd64 · trixie-securityAffected
usn · ghostscript · debian · 13
- [libgs10-common]Affected
Source package: [ghostscript]
Details (6)
10.05.1~dfsg-1+deb13u1· all · trixieAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixieAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixie-security · Historical versionAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixie-securityAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u2· all · trixie-security · Historical versionAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u3· all · trixie-securityAffected
usn · ghostscript · debian · 13
- [libgs-common]Affected
Source package: [ghostscript]
Details (6)
10.05.1~dfsg-1+deb13u1· all · trixieAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixieAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixie-securityAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· all · trixie-security · Historical versionAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u2· all · trixie-security · Historical versionAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u3· all · trixie-securityAffected
usn · ghostscript · debian · 13
- [libgs-dev]Affected
Source package: [ghostscript]
Details (6)
10.05.1~dfsg-1+deb13u1· amd64 · trixieAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· arm64 · trixieAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· amd64 · trixie-security · Historical versionAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u1· arm64 · trixie-securityAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u2· amd64 · trixie-security · Historical versionAffected
usn · ghostscript · debian · 13
10.05.1~dfsg-1+deb13u3· amd64 · trixie-securityAffected
usn · ghostscript · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2025_15707-1.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2025-59800]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2025-59800]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2025-59800]
- [https://security-tracker.debian.org/tracker/CVE-2025-59800]
- [https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-59800.json]
- [https://ubuntu.com/security/notices/USN-7782-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2025/wid-sec-w-2025-2101.json]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]