Home › Intelligence › Brief
VULNERABILITY BRIEF🔴 Critical Vulnerability

Critical Ghostscript Heap Buffer Overflow (CVE‑2026‑39919) Enables Remote Code Execution via PDF Uploads

A heap buffer overflow in Ghostscript (CVE‑2026‑39919) allows unauthenticated RCE when malicious PDFs are processed, affecting any system that uses Ghostscript for PDF rendering—including WordPress sites and Docker images. The issue underscores the importance of timely patching and secure file‑handling controls for compliance readiness.

LiveThreat™ Intelligence · 📅 November 24, 2026· 📰 bleepingcomputer.com
🔴
Severity
Critical
VU
Type
Vulnerability
🎯
Confidence
High
🏢
Affected
3 sector(s)
✅
Actions
4 recommended
📰
Source
bleepingcomputer.com

Critical Ghostscript Heap Buffer Overflow (CVE‑2026‑39919) Enables Remote Code Execution via PDF Uploads

What It Is — A critical heap buffer overflow (CVE‑2026‑39919) has been identified in the Ghostscript interpreter and rendering engine, versions 9.21 through 10.07.1. The flaw is triggered when Ghostscript processes a specially‑crafted PDF that contains a JPEG 2000 image with low‑bit‑depth samples and mismatched component resolutions. Under these conditions Ghostscript writes 1,024 bytes into a 256‑byte buffer, corrupting adjacent memory and allowing unauthenticated remote code execution (RCE).

The vulnerability was discovered on 23 August 2026 by Defiant’s Wordfence platform, which leveraged its Argus AI system to generate two proof‑of‑concept exploits. The researchers demonstrated that, when Ghostscript is invoked by the PHP Imagick extension (commonly used by WordPress to generate PDF thumbnails), the exploit can achieve RCE on a purpose‑built test server. In broader testing across ten Linux distributions—including Debian, Ubuntu, Fedora, Alpine, and AlmaLinux—as well as an official WordPress Docker image, the vulnerable code was present in all cases. However, successful exploitation required environment‑specific tweaks; in a lab testbed the PoC ran 10,240 attempts without achieving RCE, underscoring the exploit’s dependence on configuration details.

Affected Products — Ghostscript 9.21 – 10.07.1 (any platform); WordPress installations that invoke Ghostscript via ImageMagick/Imagick; Docker images that bundle vulnerable Ghostscript versions.

Why It Matters for Trust & Control Assurance — The flaw spotlights the need for rigorous patch management and secure handling of untrusted file inputs, a control area that underpins multiple compliance frameworks.

Recommended Actions

  • Verify Ghostscript version; upgrade to 10.08.0 or later, applying back‑ported patches where applicable.
  • For Docker deployments, rebuild images with the patched Ghostscript base and redeploy.
  • If immediate upgrade is not feasible, block PDF uploads or disable PDF rendering in ImageMagick/Imagick.
  • Review application logic to ensure only authenticated, authorized users can upload PDFs, and enforce content‑type validation before processing.
  • Capture evidence of the patch status and upload controls for audit readiness.

Source: BleepingComputer – Ghostscript flaw lets hackers hijack servers via PDF uploads

📰 Original Source
https://www.bleepingcomputer.com/news/security/ghostscript-flaw-lets-hackers-hijack-servers-via-pdf-uploads/ ↗

This LiveThreat Intelligence Brief is an independent analysis. Read the original reporting at the link above.

From the Verisq platform · Trust Operations

Answer one control objective. Answer ten frameworks.

The Verisq Common Framework is a spine of 84 control objectives that SOC 2, ISO 27001, NIST CSF, CMMC, HIPAA, PCI DSS, HITRUST, GDPR, ISO 42001 and NIST AI RMF map onto — each graded honestly. Satisfy an objective once and every framework that recognizes it lights up at its real strength.

See how the Verisq Common Framework works →