---
id: CVE-2025-59801
title: >-
  In Artifex GhostXPS before 10.06.0, there is a stack-based buffer overflow in
  xps_unpredict_tiff in xpstiff.c because the samplesperpixel value is not
  checked.
summary: >-
  In Artifex GhostXPS before 10.06.0, there is a stack-based buffer overflow in
  xps_unpredict_tiff in xpstiff.c because the samplesperpixel value is not
  checked.
severity: medium
cvss: 4.3
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N'
cwe:
  - CWE-121
published: '2025-09-22'
updated: '2026-09-30'
sourceUpdated: '2026-09-30T23:10:00.237'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-59801'
references:
  - url: 'https://bugs.ghostscript.com/show_bug.cgi?id=708819'
    label: cve@mitre.org
  - url: >-
      https://cgit.ghostscript.com/cgi-bin/cgit.cgi/ghostpdl.git/commit/?id=99727069197d548a8db69ba5d63f766bff40eaab
    label: cve@mitre.org
tags:
  - nvd
epss: 0.002
epssPercentile: 0.08871
ingestedAt: '2026-09-30T23:29:32.390Z'
---

## Overview

In Artifex GhostXPS before 10.06.0, there is a stack-based buffer overflow in xps_unpredict_tiff in xpstiff.c because the samplesperpixel value is not checked.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
