Skip to main content
Mallory
← Back to News
open-source-dependency-vulnerabilityinternet-facing-service-vulnerability

Critical Ghostscript PDF Decoding Flaw Enables Remote Code Execution on Vulnerable Builds

Vulnerability Disclosure · 6 sources · Updated 2mo ago · First seen Oct 12, 2026

Critical Ghostscript PDF Decoding Flaw Enables Remote Code Execution on Vulnerable Builds

A critical heap-based buffer overflow in Ghostscript’s JPEG 2000 decoding path, CVE-2026-39919, can allow attackers to execute code by submitting a crafted PDF to an application that processes it. The flaw has a reported CVSS score of 9.8 and affects upstream versions 9.21 through 10.07.1 when the OpenJPEG decoder path is present. Wordfence demonstrated unauthenticated remote code execution in a purpose-built WordPress deployment, with code running under the PDF-processing account’s permissions. Its two exploits were build-specific and failed across ten other Linux package environments; researchers reported no public evidence of exploitation in the wild or a universal exploit PDF.

Exposure extends beyond WordPress thumbnail generation to any service that passes untrusted PDFs to an affected Ghostscript build. Artifex fixed the vulnerability in the final Ghostscript 10.08.0 release on September 8, 2026. Organizations should install fixed system packages, verify distribution backports against the full package revision, and rebuild and redeploy affected containers. Where patching is delayed, temporarily block untrusted PDF uploads or disable PDF processing; Ghostscript’s safer execution mode does not prevent this memory-corruption flaw.

Why it matters

CVE-2026-39919 exposes services that render untrusted PDFs through vulnerable Ghostscript builds to memory corruption and potential remote code execution under the PDF-processing account. Exposure spans WordPress preview generation, document portals, invoice processors, mail gateways, print services, and conversion APIs; successful exploitation could compromise application data and credentials, while crashes can disrupt document processing. Wordfence demonstrated build-specific exploitation in a controlled deployment, but reported no public evidence of exploitation in the wild and no universal exploit PDF.

  • Severity: Critical, with reported CVSS 3.1 score 9.8 and CVSS 4.0 score 9.3; code execution does not automatically grant root access.
  • Exposure prerequisites: Attacker-controlled PDFs must reach an unpatched Ghostscript build using the affected OpenJPEG decoding path. Storing PDFs without rendering them does not expose this path.
  • WordPress scope: Requires an accessible upload route, PDF preview generation, and an Imagick → ImageMagick → Ghostscript processing chain. Stock WordPress does not permit anonymous Media Library uploads.
  • Exploit reliability: Two build-specific exploits achieved no code execution in 10,240 attempts across ten other Linux package environments. Identical vulnerable binaries across a container or server fleet create repeatable exposure if an exploit is adapted to that build.
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

10 events · Aug 23, 2026 – Oct 2, 2026
  1. Reported Oct 12, 20262mo ago

    Wordfence publishes technical details and a minimal test PDF

    Wordfence disclosed a 1,029-byte test PDF differing from a harmless control by one byte governing a JPEG 2000 transparency component's resolution. The minimal case causes a 1,024-byte write into a 256-byte heap buffer, and ordinary extension, MIME-type, and basic structure checks do not detect the malicious image geometry.

    Wordfence Argus Discovers Critical Vulnerability in Ghostscript, the Program That Turns Uploaded PDFs into Thumbnails on Your Server
  2. Reported Oct 12, 20262mo ago

    Ubuntu and Debian 13 provide fixed Ghostscript packages

    The advisory reports fixes for Ubuntu 22.04, 24.04, and 26.04, and for Debian 13 through its security repository. Ubuntu 22.04's fixed package retains upstream version 9.55.0, illustrating why administrators must verify the full package revision rather than only the reported Ghostscript version.

    Wordfence Argus Discovers Critical Vulnerability in Ghostscript, the Program That Turns Uploaded PDFs into Thumbnails on Your Server
  3. Reported Oct 12, 20262mo ago

    Exploit portability tests fail to achieve code execution on other package builds

    Wordfence ran two build-specific exploits 10,240 times across ten other Linux package environments without achieving code execution, while both continued working against their matching builds. Additional tests retaining the same Ghostscript executable showed that exploitation could survive changes to fonts, language settings, font configuration, or a core system library.

    Wordfence Argus Discovers Critical Vulnerability in Ghostscript, the Program That Turns Uploaded PDFs into Thumbnails on Your Server
  4. Reported Oct 12, 20262mo ago

    Wordfence demonstrates unauthenticated code execution through PDF processing

    Wordfence demonstrated unauthenticated remote code execution on a purpose-built WordPress deployment using a crafted PDF, including with Ghostscript's -dSAFER sandbox enabled. Execution inherited the PDF-processing account's permissions rather than automatically granting root access.

    Wordfence Argus Discovers Critical Vulnerability in Ghostscript, the Program That Turns Uploaded PDFs into Thumbnails on Your Server
  5. Oct 2, 20262mo ago

    AlmaLinux 10 receives a Ghostscript fix

    The advisory reports a fix for CVE-2026-39919 in AlmaLinux 10 on October 2, 2026.

    Wordfence Argus Discovers Critical Vulnerability in Ghostscript, the Program That Turns Uploaded PDFs into Thumbnails on Your Server
  6. Sep 15, 20263mo ago

    Testing finds vulnerable packages across ten deployment environments

    September 15 testing found vulnerable Ghostscript packages in the official WordPress Docker image and tested Debian, Ubuntu, Fedora, AlmaLinux, and Alpine environments. The original test PDF crashed nine of ten environments; image-dimension variations also triggered crashes on Debian 12.

    Wordfence Argus Discovers Critical Vulnerability in Ghostscript, the Program That Turns Uploaded PDFs into Thumbnails on Your Server
  7. Sep 15, 20263mo ago

    CVE-2026-39919 record is published

    The CVE record for the Ghostscript JPEG 2000 heap buffer overflow was published on September 15, 2026. The vulnerability received CVSS 3.1 and CVSS 4.0 scores of 9.8 and 9.3, respectively.

    Wordfence Argus Discovers Critical Vulnerability in Ghostscript, the Program That Turns Uploaded PDFs into Thumbnails on Your Server
  8. Sep 8, 20263mo ago

    Artifex releases Ghostscript 10.08.0 with the fix

    Artifex released the fixed final version of Ghostscript 10.08.0 on September 8, 2026. The patch corrects sample counting and rejects unsupported bit depths; the preceding 10.08.0 release candidate remains vulnerable.

    Wordfence Argus Discovers Critical Vulnerability in Ghostscript, the Program That Turns Uploaded PDFs into Thumbnails on Your Server
  9. Aug 24, 20263mo ago

    Artifex confirms the vulnerability report

    Artifex confirmed Wordfence's report of the Ghostscript heap-based buffer overflow on August 24, 2026.

    Wordfence Argus Discovers Critical Vulnerability in Ghostscript, the Program That Turns Uploaded PDFs into Thumbnails on Your Server
  10. Aug 23, 20263mo ago

    Wordfence discovers Ghostscript overflow and privately reports it to Artifex

    On August 23, 2026, Wordfence Argus discovered CVE-2026-39919 during a WordPress 7.1 assessment. Researchers verified memory corruption in Ghostscript's JPEG 2000 decoding path and sent Artifex the root cause and a suggested fix.

    Wordfence Argus Discovers Critical Vulnerability in Ghostscript, the Program That Turns Uploaded PDFs into Thumbnails on Your Server
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

2 linked
GhostscriptWordpress
Do you run this?See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
Check Your Exposure
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.