Vulnerability · Published Sep 22, 2025 · Assigned by mitre
CVE-2025-59798
Medium 4.3
In plain English
A medium-severity stack buffer 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 10% 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 89.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known
Official description
Artifex Ghostscript through 10.05.1 has a stack-based buffer overflow in pdf_write_cmap in devices/vector/gdevpdtw.c.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.23 | ghostscript | 10.06.0-r0 | ALPINE-CVE-2025-59798 |
| Alpine:v3.24 | ghostscript | 10.06.0-r0 | ALPINE-CVE-2025-59798 |
| Debian:12 | ghostscript | 10.0.0~dfsg-11+deb12u8 | DSA-6024-1 |
| Debian:12 | ghostscript | 10.0.0~dfsg-11+deb12u8 | DEBIAN-CVE-2025-59798 |
| Debian:13 | ghostscript | 10.05.1~dfsg-1+deb13u1 | DSA-6024-1 |
| Debian:13 | ghostscript | 10.05.1~dfsg-1+deb13u1 | DEBIAN-CVE-2025-59798 |
| Debian:14 | ghostscript | 10.06.0~dfsg-1 | DEBIAN-CVE-2025-59798 |
| 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-59798 |
| Ubuntu:24.04:LTS | ghostscript | 10.02.1~dfsg1-0ubuntu7.8 | UBUNTU-CVE-2025-59798 |
| 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-59798 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| Artifex | Ghostscript | 0 – through 10.05.1 |
Weakness: CWE-121 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N