Skip to content
Vulnerabilities

CVSS 9.8 Ghostscript Heap Overflow in PDFs Fixed in 10.08.0 Update by Artifex

Wordfence Argus identified a heap buffer overflow in Ghostscript that allows attackers to execute code on servers processing uploaded PDF documents.

Illustration: A cracked, fragmented glass sheet floats above a generic office printer.
AI-generated illustration: Firewall Scoop

Key points

  • Wordfence Argus discovered CVE-2026-39919, a critical vulnerability in Ghostscript with a CVSS score of 9.8.
  • The flaw involves a heap buffer overflow triggered by crafted PDFs containing JPEG 2000 image data.
  • Artifex released Ghostscript 10.08.0 on September 8, 2026, to address the issue reported by Wordfence.

A critical security flaw in Ghostscript, identified as CVE-2026-39919, allows attackers to execute remote code on vulnerable servers. The Wordfence Threat Intelligence team discovered this vulnerability using their Argus platform and reported it to the vendor. Artifex, the maker of Ghostscript, released version 10.08.0 on September 8, 2026, to patch the issue. The flaw carries a maximum CVSS score of 9.8 out of 10, indicating severe risk for organizations using the software.

What is the technical nature of the vulnerability?

The vulnerability is a heap buffer overflow within the Ghostscript application. This program is commonly used on servers to convert uploaded PDF files into thumbnail images for display. According to Wordfence, the flaw occurs when the software processes a specifically crafted PDF file that contains JPEG 2000 image data. The malicious data causes Ghostscript to write attacker-influenced bytes beyond the end of a designated memory buffer. This memory corruption can be exploited to take control of the system.

How was the exploit demonstrated in testing?

Wordfence researchers developed the memory corruption into a working proof of concept. They demonstrated unauthenticated remote code execution on a purpose-built WordPress test site. This test environment simulated how the vulnerability could be abused in a real-world scenario where users upload PDF documents. The successful execution of code on the test server confirms that the flaw allows an attacker to run arbitrary commands on the host system without needing valid login credentials.

Why is this risk significant for business operations?

Ghostscript is a widely deployed tool for document processing on web servers. Many organizations use it to generate previews or thumbnails of uploaded PDFs for internal systems or public-facing websites. The ability to execute code remotely without authentication means that an attacker could compromise the server simply by uploading a malicious PDF. This bypasses standard access controls and could lead to data theft, system takeover, or further lateral movement within the network. The high severity score reflects the ease of exploitation and impact.

What steps should organizations take to mitigate this risk?

Organizations should verify the version of Ghostscript installed on their servers immediately. If the current version is older than 10.08.0, they should upgrade to the patched release as soon as possible. Administrators should also review server logs for any unusual activity related to PDF processing or unexpected command executions. Until updates are applied, limiting the types of files that can be uploaded to the server may reduce exposure, though this does not eliminate the risk if other processing tools are vulnerable.

Background: Buffer overflow vulnerabilities

A buffer overflow vulnerability causes a crash or exploit when a program writes more data into a fixed-size memory buffer than it can hold. This overwrites adjacent memory, including return addresses. Attackers manipulate this overflow to inject malicious code or redirect execution. The root cause is missing bounds checking during data input or processing.

Read the full guide: What Causes a Buffer Overflow Vulnerability: The Memory Logic Breakdown

What to do and how to stay safe: Ghostscript

  • Check the current version of Ghostscript installed on all servers and workstations that process PDF files.
  • Update to Ghostscript version 10.08.0 or later to apply the patch for CVE-2026-39919.
  • Monitor server logs for signs of unauthorized code execution or unusual PDF processing activity.
  • Restrict file upload permissions to trusted users where possible to reduce the attack surface.

Step-by-step guide: Lateral Movement Prevention Checklist for Network Security

General security guidance from the Firewall Scoop newsroom. It is not confirmed advice from the organisations named in this story.

Frequently asked questions

What is the CVE ID for this Ghostscript vulnerability?

The vulnerability is tracked as CVE-2026-39919.

Which version of Ghostscript fixes the issue?

Artifex released Ghostscript 10.08.0 on September 8, 2026, to close the vulnerability.

What type of file triggers the exploit?

A crafted PDF file containing JPEG 2000 image data triggers the heap buffer overflow.

Sources

  1. Wordfence
GhostscriptWordfenceCVE-2026-39919ArtifexPDF

Related stories

Unauthenticated RCE Risk in Duplicator Plugins for WordPress Sites

Attackers can trigger remote code execution or file deletion via object injection flaws in Duplicator and Duplicator Pro versions prior to the latest releases.

Cybersecurity news without the noiseDaily Briefing