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

EcosystemPackageFixed inAdvisory
Alpine:v3.23ghostscript10.06.0-r0ALPINE-CVE-2025-59798
Alpine:v3.24ghostscript10.06.0-r0ALPINE-CVE-2025-59798
Debian:12ghostscript10.0.0~dfsg-11+deb12u8DSA-6024-1
Debian:12ghostscript10.0.0~dfsg-11+deb12u8DEBIAN-CVE-2025-59798
Debian:13ghostscript10.05.1~dfsg-1+deb13u1DSA-6024-1
Debian:13ghostscript10.05.1~dfsg-1+deb13u1DEBIAN-CVE-2025-59798
Debian:14ghostscript10.06.0~dfsg-1DEBIAN-CVE-2025-59798
Ubuntu:22.04:LTSghostscript9.55.0~dfsg1-0ubuntu5.13USN-7782-1
Ubuntu:22.04:LTSghostscript9.55.0~dfsg1-0ubuntu5.13UBUNTU-CVE-2025-59798
Ubuntu:24.04:LTSghostscript10.02.1~dfsg1-0ubuntu7.8UBUNTU-CVE-2025-59798
Ubuntu:24.04:LTSghostscript10.02.1~dfsg1-0ubuntu7.8USN-7782-1
Ubuntu:25.10ghostscript10.05.0dfsg1-0ubuntu4UBUNTU-CVE-2025-59798

Affected products (as reported)

VendorProductVersions
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

References