cve.bz

CVE-2025-59798 artifex ghostscript: Stack-based Buffer Overflow

5.5 mediumEPSS 0.2%Fix available

Medium (5.5) in artifex ghostscript. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
Artifex Ghostscript through 10.05.1 has a stack-based buffer overflow in pdf_write_cmap in devices/vector/gdevpdtw.c.

Severity

CVSS 3.1

5.5 medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 12th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: partial, assessed 2025-09-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-121 Stack-based Buffer Overflow
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-59798 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-59798?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-59798?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-59798 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Artifex Ghostscriptthrough 10.05.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian11ghostscript9.53.3~dfsg-7+deb11u11DLA-4330-1
Debian12ghostscript10.0.0~dfsg-11+deb12u8DEBIAN-CVE-2025-59798 DSA-6024-1
Debian13ghostscript10.05.1~dfsg-1+deb13u1DEBIAN-CVE-2025-59798 DSA-6024-1
Debian14ghostscript10.06.0~dfsg-1DEBIAN-CVE-2025-59798
Ubuntu22.04:LTSghostscript9.55.0~dfsg1-0ubuntu5.13UBUNTU-CVE-2025-59798 USN-7782-1
Ubuntu24.04:LTSghostscript10.02.1~dfsg1-0ubuntu7.8UBUNTU-CVE-2025-59798 USN-7782-1
Ubuntu25.10ghostscript10.05.0dfsg1-0ubuntu4UBUNTU-CVE-2025-59798
UbuntuPro:16.04:LTSghostscript9.26~dfsg+0-0ubuntu0.16.04.14+esm10UBUNTU-CVE-2025-59798 USN-7904-1
UbuntuPro:18.04:LTSghostscript9.26~dfsg+0-0ubuntu0.18.04.18+esm5UBUNTU-CVE-2025-59798 USN-7904-1
UbuntuPro:20.04:LTSghostscript9.50~dfsg-5ubuntu4.15+esm2UBUNTU-CVE-2025-59798 USN-7904-1
SUSELinux Enterprise Module for Basesystem 15 SP6, Linux Enterprise Module for Basesystem 15 SP7ghostscript9.52-150000.211.1SUSE-SU-2025:4148-1
SUSELinux Enterprise Server LTSS Extended Security 12 SP5ghostscript9.52-23.97.1SUSE-SU-2025:4125-1
openSUSELeap 15.6ghostscript9.52-150000.211.1SUSE-SU-2025:4148-1
openSUSELeap 16.0ghostscript10.06.0-160000.1.1openSUSE-SU-2026:20592-1
openSUSETumbleweedghostscript10.06.0-2.1openSUSE-SU-2025:15707-1
Alpinev3.21, v3.22ghostscript10.08.0-r0ALPINE-CVE-2025-59798
Alpinev3.23, v3.24ghostscript10.06.0-r0ALPINE-CVE-2025-59798
Alpaquitastreamghostscript10.06.0-r0BELL-CVE-2025-59798

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated Moderate for Red Hat products. A stack-based buffer overflow in Artifex Ghostscript's `pdf_write_cmap` function can lead to a denial of service. Exploitation requires processing a specially crafted PDF file, causing the application to become unresponsive.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10ghostscriptFix deferred
Red Hat Enterprise Linux 6ghostscriptFix deferred
Red Hat Enterprise Linux 7ghostscriptFix deferred
Red Hat Enterprise Linux 8ghostscriptFix deferred
Red Hat Enterprise Linux 9ghostscriptFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-59798.

References

Check your stackJSON