Cybersecurity
Ghostscript flaw lets PDF uploads trigger server compromise
Defiant's Wordfence said a Ghostscript heap overflow could lead to code execution when crafted PDFs were processed, and that Artifex fixed the issue in Ghostscript 10.08.0 on 8 September.
- Defiant's Wordfence team said it found CVE-2026-39919 in Ghostscript on 23 August using its Argus system.
- The researchers said a specially crafted PDF could lead to remote code execution when Ghostscript processed it.
- Artifex released a fix in Ghostscript 10.08.0 on 8 September and backported patches to older versions.
- Wordfence said it had not seen exploitation in the wild and said the bug affected Ghostscript 9.21 through 10.07.1.
Defiant's Wordfence team said Argus found the heap overflow on 23 August. The researchers said a malformed PDF could make Ghostscript write 1,024 bytes into a 256-byte buffer, corrupting memory and, in the right setup, allowing code execution.
Wordfence said it focused on WordPress scenarios because thumbnail generation can pass through PHP Imagick, ImageMagick and then Ghostscript. It said exploitation in that setting required a PDF upload, processing into a preview, a path to Ghostscript with the relevant settings, and the unpatched decoder.
The researchers said they tested ten Linux environments, including Debian, Ubuntu, Fedora, Alpine and AlmaLinux, plus an official WordPress Docker image snapshot, and found vulnerable code in each. They also said 10,240 attempts against Linux packages did not produce remote code execution in the lab, although a purpose-built test server did.
Artifex said it fixed the issue in Ghostscript 10.08.0 on 8 September and later backported patches to older versions. Wordfence said administrators should confirm patch levels, rebuild Docker images if needed, or block PDF uploads or disable PDF rendering if they cannot upgrade, and it said it had not seen exploitation in the wild.
Named in this story
Companies
- Defiant
- the company behind the Wordfence researchers
- Artifex
- the maintainer that released the fix for Ghostscript
Products and systems
- Ghostscript
- the interpreter and rendering engine with CVE-2026-39919
- Wordfence
- the platform and security team that reported and tested the flaw
- Argus
- the AI-powered system used to find and exploit the bug
- WordPress
- the deployment context discussed for the exploit path
- PHP Imagick extension
- the extension that can call ImageMagick during thumbnail generation
- ImageMagick
- the image tool in the processing chain to Ghostscript
How the source tells it
A plain technical advisory with no distinct emotive framing beyond practical remediation guidance.
No emotive framing was found in the original.