Wordfence Argus Finds Critical Ghostscript Flaw Allowing Remote Code Execution
A heap buffer overflow in Ghostscript allows attackers to execute code remotely via crafted PDFs, according to new research from Wordfence.

Key points
- CVE-2026-39919 is a critical vulnerability with a CVSS score of 9.8.
- Artifex released Ghostscript 10.08.0 on September 8, 2026, to patch the flaw.
- Wordfence reported the issue sixteen days before the patch release.
The Wordfence Threat Intelligence team discovered a critical vulnerability in Ghostscript that allows for unauthenticated remote code execution. The flaw, tracked as CVE-2026-39919, was reported to the vendor sixteen days before the patch was made available to the public.
Artifex addressed the issue by releasing Ghostscript version 10.08.0 on September 8, 2026. The vulnerability carries a CVSS score of 9.8 out of 10, indicating a severe risk. Wordfence researchers used their Argus platform to identify the defect and demonstrate its potential for exploitation in a controlled environment.
Context and Background
Ghostscript is a software program commonly used to process PDF files. In many server environments, it converts uploaded PDF documents into thumbnail images for display. This processing step creates an entry point for attackers if the software contains memory management flaws.
The specific defect is a heap buffer overflow. According to Wordfence, a crafted PDF file containing a JPEG 2000 image can trigger the overflow. This causes Ghostscript to write attacker-influenced bytes past the end of a designated memory buffer, leading to memory corruption.
Researchers successfully developed this memory corruption into unauthenticated remote code execution. They demonstrated the exploit on a purpose-built WordPress test site, showing that an attacker could run arbitrary code on the server without needing valid login credentials.
Who Is Affected
Any system using vulnerable versions of Ghostscript to process PDF uploads is at risk. The vulnerability is particularly relevant for web applications that generate thumbnails from user-uploaded PDF files.
WordPress sites that rely on Ghostscript for image processing are directly implicated by the research. The Wordfence team confirmed the exploit works in this environment, highlighting the danger to platforms that accept document uploads from untrusted sources.
Organizations that have not updated to Ghostscript 10.08.0 or later remain exposed to this critical flaw. The high CVSS score reflects the ease of exploitation and the severity of the potential impact on server integrity and data security.
What should you do?
Security teams should verify their current Ghostscript version immediately. If the version is older than 10.08.0, they should prioritize updating to the patched release provided by Artifex.
Administrators should review logs for signs of unauthorized code execution or unusual PDF processing activity. Monitoring for unexpected processes spawned by the Ghostscript service can help detect exploitation attempts.
Organizations should restrict PDF upload capabilities to trusted users where possible. Limiting the file types accepted by web forms reduces the attack surface for vulnerabilities like CVE-2026-39919.
What to do and how to stay safe: Ghostscript
- Check your server’s installed version of Ghostscript and compare it against the patched version 10.08.0.
- Update to the latest version provided by Artifex as soon as possible to close the heap buffer overflow.
- Monitor server logs for anomalous activity related to PDF processing or unexpected command executions.
- Restrict PDF upload functionality to authenticated and trusted users to reduce exposure to crafted files.
Step-by-step guide: Risk Based Vulnerability Management: Prioritize Fixes by Actual Threat
General security guidance from the Threat Times newsroom. It is not confirmed advice from the organisations named in this story.
Frequently asked questions
What is the CVE ID for the Ghostscript vulnerability?
The vulnerability is tracked as CVE-2026-39919.
What is the CVSS score for this flaw?
The CVSS score is 9.8 out of 10.
When was the patch released?
Artifex released Ghostscript 10.08.0 on September 8, 2026.


