CVE-2025-59801
Ghostscript vulnerability analysis and mitigation

Overview

CVE-2025-59801 is a stack-based buffer overflow vulnerability in Artifex GhostXPS affecting all versions before 10.06.0. The flaw resides in the xps_unpredict_tiff function within xpstiff.c, where the samplesperpixel value is not validated before use. It was published on September 22, 2025, and carries a CVSS v3.1 base score of 4.3 (Medium) (Red Hat, EUVD).

Technical details

The root cause is classified as CWE-121 (Stack-based Buffer Overflow), with an estimated CWE-787 (Out-of-bounds Write) also applicable. The vulnerability occurs because the samplesperpixel field in a TIFF image embedded within an XPS document is not bounds-checked before being used in the xps_unpredict_tiff function, allowing a crafted XPS/TIFF file to overflow a stack buffer. The attack vector is local (AV:L), requires no privileges (PR:N) and no user interaction (UI:N), and has a changed scope, indicating potential impact beyond the vulnerable component. A fix is available via the GhostPDL repository commit 99727069197d548a8db69ba5d63f766bff40eaab (EUVD, Ghostscript Bug Tracker).

Impact

Successful exploitation results in a low integrity impact with no confidentiality or availability impact, according to the CVSS scoring. The changed scope indicates that the overflow could affect resources or components beyond the GhostXPS process itself, potentially enabling limited unauthorized writes to adjacent memory regions. The practical risk is constrained to scenarios where an attacker can supply a maliciously crafted XPS or TIFF file for processing by a vulnerable GhostXPS instance (Red Hat, EUVD).

Exploitability

No public proof-of-concept exploit code or in-the-wild exploitation has been reported for CVE-2025-59801. The EPSS score is approximately 0.012% (0.000120), indicating a very low probability of exploitation in the near term. The vulnerability is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog. Detection coverage exists via Tenable Nessus plugin 265891 (Tenable, EUVD).

Exploitation steps

  1. Craft a malicious XPS file: Create an XPS document containing an embedded TIFF image with an abnormally large or invalid samplesperpixel value that exceeds expected bounds.
  2. Deliver the file: Place the crafted XPS file in a location accessible to the target GhostXPS process — for example, a shared folder, print queue, or document conversion pipeline.
  3. Trigger processing: Cause GhostXPS (version before 10.06.0) to process the malicious XPS file, either by direct invocation or through an application that uses GhostXPS as a backend renderer.
  4. Trigger the overflow: The xps_unpredict_tiff function in xpstiff.c reads the unchecked samplesperpixel value and uses it in a stack buffer operation, causing a stack-based buffer overflow.
  5. Achieve impact: Depending on stack layout and platform mitigations, the overflow may corrupt adjacent stack data, potentially enabling limited integrity violations or process instability (Ghostscript Bug Tracker, EUVD).

Indicators of compromise

  • File System: Presence of XPS files containing embedded TIFF images with anomalous or oversized samplesperpixel metadata values in document processing directories.
  • Logs: Application crash logs or core dumps originating from the GhostXPS process, particularly referencing xpstiff.c or xps_unpredict_tiff in stack traces.
  • Process: Unexpected termination or segmentation faults of GhostXPS processes when handling XPS documents containing TIFF image data.

Mitigation and workarounds

Artifex has addressed this vulnerability in GhostXPS version 10.06.0. Users should upgrade to GhostXPS 10.06.0 or later as the primary remediation. The specific fix is available in the GhostPDL repository at commit 99727069197d548a8db69ba5d63f766bff40eaab. As a workaround where upgrading is not immediately possible, restrict processing of untrusted XPS or TIFF files through GhostXPS (Ghostscript Bug Tracker, EUVD).

Community reactions

Red Hat has acknowledged the vulnerability and published a security advisory tracking it. Coverage has been noted on automated CVE tracking platforms including Bluesky CVE feeds and vulnerability aggregators. No significant researcher commentary or major media coverage has been identified beyond standard vulnerability database entries (Red Hat).

Additional resources


SourceThis report was generated using AI

Related Ghostscript vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-59800MEDIUM5.5
  • Ghostscript logoGhostscript
  • ghostscript-cups
NoYesSep 22, 2025
CVE-2025-59799MEDIUM5.5
  • Ghostscript logoGhostscript
  • libgs-debuginfo
NoYesSep 22, 2025
CVE-2025-59798MEDIUM5.5
  • Ghostscript logoGhostscript
  • ghostscript-gtk
NoYesSep 22, 2025
CVE-2025-59801MEDIUM4.3
  • Ghostscript logoGhostscript
  • ghostscript-devel
NoYesSep 22, 2025
CVE-2026-6192LOW1.9
  • Ghostscript logoGhostscript
  • blender
NoYesApr 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management