CVE-2025-59799 Memory corruption in Ghostscript
A stack-based buffer overflow in Ghostscript allows attackers to execute arbitrary code or cause denial of service via crafted PDF files.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-59799?
CVE-2025-59799 is a medium-severity memory corruption vulnerability in Artifex Ghostscript, published on 22 Sep 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Artifex Ghostscript through 10.05.1 has a stack-based buffer overflow in pdfmark_coerce_dest in devices/vector/gdevpdfm.c via a large size value.
Weakness: CWE-121
Which versions are affected by CVE-2025-59799?
It affects 1 product.
Products include Artifex Ghostscript.
How do I fix CVE-2025-59799?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2025-59799 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-59799 exists.
Other vulnerabilities in Artifex Ghostscript
Sources
Also known as ALPINE-CVE-2025-59799, BELL-CVE-2025-59799, DEBIAN-CVE-2025-59799, GHSA-9chm-r9vp-jrf5, MINI-6r49-c8h6-8w3f, UBUNTU-CVE-2025-59799.