Ghostscript flaw lets hackers hijack servers via PDF uploads

A critical heap buffer overflow vulnerability (CVE-2026-39919) in the Ghostscript interpreter and rendering engine has been found, and it could allow remote code execution by using specially crafted PDF files.

The issue was discovered on 23rd of August by researchers at Defiant’s platform Wordfence who were using their Argus AI-powered system.

Ghostscript is a PostScript and PDF interpreter which can render PDFs into images, create thumbnails for previewing content in web interfaces, and optimize PDF files by compressing embedded images and removing unnecessary font data.

When generating a PDF thumbnail, WordPress uses the PHP Imagick extension to call the ImageMagick, which activates Ghostscript.

A specially crafted PDF file that contains a JPEG 2000 image can corrupt the memory of the application due to the wrong processing of low-bit-depth samples and the different component resolution that it contains.

The researchers created two exploits for the CVE-2026-39919 vulnerability using Argus that cause Ghostscript to write 1,024 bytes to a 256-byte buffer, which results in memory corruption and allows an attacker to execute arbitrary code on a WordPress deployment remotely and without authentication read more about Ghostscript flaw lets hackers hijack servers via PDF uploads

Get up to date on the latest cybersecurity news and enhance your knowledge of cybersecurity with our thorough coverage of the dangers, breaches, and solutions.

Leave a Reply

Your email address will not be published. Required fields are marked *