CVE-2025-59798 json
Artifex Ghostscript through 10.05.1 has a stack-based buffer overflow in pdf_write_cmap in devices/vector/gdevpdtw.c.
published 2025-09-22 13 mo ago modified 2026-06-17 4 mo ago also EUVD-2025-30394
- cvss
- 4.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 10%
- public exploits
- 0
- none known
Summary
Artifex Ghostscript through 10.05.1 has a stack-based buffer overflow in pdf_write_cmap in devices/vector/gdevpdtw.c.
Patch / fix
- ghostscript Debian 12 10.0.0~dfsg-11+deb12u8
- ghostscript Debian 13 10.05.1~dfsg-1+deb13u1
- ghostscript Debian 14 10.06.0~dfsg-1
debian advisories DEBIAN-CVE-2025-59798
- ghostscript Ubuntu 22.04 LTS 9.55.0~dfsg1-0ubuntu5.13
- ghostscript Ubuntu 24.04 LTS 10.02.1~dfsg1-0ubuntu7.8
- ghostscript Ubuntu 25.10 10.05.0dfsg1-0ubuntu4
- ghostscript Ubuntu Pro 16.04 LTS 9.26~dfsg+0-0ubuntu0.16.04.14+esm10
- ghostscript Ubuntu Pro 18.04 LTS 9.26~dfsg+0-0ubuntu0.18.04.18+esm5
- ghostscript Ubuntu Pro 20.04 LTS 9.50~dfsg-5ubuntu4.15+esm2
ubuntu advisories UBUNTU-CVE-2025-59798
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- ghostscript SLE Module for Basesystem 15 SP7, SLE Module for Basesystem 15 SP6, openSUSE Leap 15.6 9.52-150000.211.1
- ghostscript SLES LTSS Extended Security 12 SP5 9.52-23.97.1
suse advisories SUSE-SU-2025:4148-1SUSE-SU-2025:4125-1
- ghostscript openSUSE Leap 16.0 10.06.0-160000.1.1
- ghostscript openSUSE Tumbleweed 10.06.0-2.1
opensuse advisories openSUSE-SU-2026:20592-1openSUSE-SU-2025:15707-1
- ghostscript Alpine 3.24, Alpine 3.23 10.06.0-r0
alpine advisories ALPINE-CVE-2025-59798
Alpine secdb © Alpine Linux, from https://secdb.alpinelinux.org via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-59798 updated cvss 4.0
Artifex Ghostscript: Artifex Ghostscript: Denial of Service via stack-based buffer overflow in pdf_write_cmap
-
Red Hat Enterprise Linux 6 ghostscript, ghostscript-gtk Red Hat Enterprise Linux 7 libgs, ghostscript, ghostscript-gtk, ghostscript-cups Red Hat Enterprise Linux 8 libgs, ghostscript, ghostscript-x11, ghostscript-tools-fonts, ghostscript-tools-dvipdf, ghostscript-tools-printing Red Hat Enterprise Linux 9 libgs, ghostscript, ghostscript-x11, ghostscript-tools-fonts, ghostscript-tools-dvipdf, ghostscript-tools-printing Red Hat Enterprise Linux 10 ghostscriptaffected: no fix available “Fix deferred”
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 13 mo ago
Exploit prediction
0.20% chance of exploitation in the next 30 days, higher than 10% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- bugs.ghostscript.com https://bugs.ghostscript.com/show_bug.cgi?id=708539 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N |
| NVD | 3.1 | 5.5 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Affected products
- Artifex Ghostscript
Classification
- Weakness
-
- CWE-121 Stack-based Buffer Overflow
References
Sources
- CVE List CVE-2025-59798
- NVD CVE-2025-59798
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.