cve.bz

CVE-2025-59800 artifex ghostscript: Year 2038 problem, Y2K38, Y2038, Epochalypse

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
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.

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; 8th 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-190 Integer Overflow or Wraparound (Year 2038 problem, Y2K38, Y2038, Epochalypse)
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-59800 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-59800?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-59800?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-59800 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
Debian12, 13ghostscriptno fix listedDEBIAN-CVE-2025-59800
Debian14ghostscript10.06.0~dfsg-1DEBIAN-CVE-2025-59800
Ubuntu22.04:LTSghostscript9.55.0~dfsg1-0ubuntu5.13UBUNTU-CVE-2025-59800 USN-7782-1
Ubuntu24.04:LTSghostscript10.02.1~dfsg1-0ubuntu7.8UBUNTU-CVE-2025-59800 USN-7782-1
Ubuntu25.10ghostscript10.05.0dfsg1-0ubuntu4UBUNTU-CVE-2025-59800
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-59800
Alpinev3.23, v3.24ghostscript10.06.0-r0ALPINE-CVE-2025-59800
Alpaquitastreamghostscript10.06.0-r0BELL-CVE-2025-59800

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 · openSUSE · Alpine · Alpaquita.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated Moderate for Red Hat products. An integer overflow in Artifex Ghostscript's OCR processing, specifically in `ocr_begin_page`, can lead to a heap-based buffer overflow. This flaw could be triggered by processing a specially crafted document, potentially resulting in denial of service or arbitrary code execution.

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-59800.

Attack patterns (CAPEC)

  • CAPEC-92 Forced Integer Overflow Likelihood: High · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON