The Daily Byte
Breaking
Welcome to The Daily Byte — real stories from across Pakistan.
Monday, 23 November 2026 · Pakistan

The Daily Byte

Stories from Pakistan that deserve to be heard

CVE-2026-125396: Upload2Shell Ghostscript Flaw Hits Servers

By The Daily Byte ·22 Nov 2026 ·4 min read
An HP LaserJet 1020 laser printer, the type of office printer that relies on document rendering software

A single uploaded document can hand an attacker control of the server that renders it. That is the warning behind Upload2Shell, a Ghostscript sandbox escape tracked as CVE-2026-125396, after researchers showed the flaw reaching WordPress sites, Roundcube webmail and Linux print servers through entirely routine file handling. Ghostscript is the software that turns PostScript and PDF files into images, thumbnails and printed pages, and it usually runs out of sight, called on by other programs. The vulnerability was detailed in research published on 17 November by Paulos Yibelo of pwn.ai, and it affects every Ghostscript release before 10.08.0. VulnCheck, the CVE Numbering Authority, rates it 8.5 under CVSS 4.0, classing it as High severity.

Ghostscript has to run instructions contained in the documents it renders, because PostScript is itself a programming language for describing pages. Its -dSAFER mode exists to limit what those instructions can reach, blocking access to the filesystem and to the shell. Upload2Shell breaks that promise through a use-after-free flaw in the Type 1 font loader, a memory error in which software keeps a reference to data after releasing the memory that held it. The font loader failed to check the type of data it received before an operation that could raise an error, and that error exposed a protected write that document code was never supposed to control. The researchers used the flaw to alter Ghostscript's security checks while -dSAFER was still enabled, so the test commands ran with the renderer's own permissions.

Three everyday routes to the same flaw

What makes the flaw dangerous is how many ordinary features feed files to Ghostscript without anyone noticing. On WordPress, the researchers reached it through the media preview process on a site using Imagick and ImageMagick. WordPress tracks the core upload issue separately as CVE-2026-65640, which needs media upload privileges held by Author accounts and above by default, and it fixed that route in version 7.0.4, backported as far as 6.9.7. The researchers also found that public upload features in the Forminator and Essential Addons for Elementor plugins reached the renderer without a login in the configurations tested. On Roundcube webmail 1.7.2, the sender needed no webmail account at all: the recipient only had to view the message, without clicking or downloading the attachment, for the server to generate a thumbnail and pass it through ImageMagick to Ghostscript; the command ran as the www-data web service account. The print server needed no action from a recipient either: on Debian 13, a shared CUPS queue accepted network print jobs without credentials and sent the test document to Ghostscript for conversion, with command execution confirmed by writing a marker file as lp, the print service account.

Patch status and what to check

Artifex, the company behind Ghostscript, fixed the underlying flaw in Ghostscript 10.08.0, released on 8 September. Linux distributions have applied the same fix to older releases, so the upstream version number alone is not enough to judge exposure: Debian 13, for example, first shipped the fix in version 10.05.1~dfsg-1+deb13u2. Administrators should check their vendor's package status for CVE-2026-125396 and verify the copy of Ghostscript used by each service, because updating the host does not replace the renderer inside an existing container or application bundle. The key check comes after a file is accepted, since storing a file did not start Ghostscript in the researchers' tests, but rendering it did. Trace the worker that actually makes the preview, thumbnail or print output, then confirm that worker uses the patched package.

Why the headline score understates the risk

The CVE record gives the flaw a CVSS 4.0 score of 8.5 and lists a local attack vector, with a CVSS 3.1 score of 7.8. That describes the flaw at the interpreter level, not how a document arrives there. In real systems the file arrives over the network, as an upload, an email attachment or a print job, which is why the researchers could reach it from three directions with no direct access to Ghostscript itself. The report describes research demonstrations rather than confirmed attacks in the wild, so there is no evidence yet of the flaw being exploited by criminals. Even so, the exposure is wide: Ghostscript sits behind ImageMagick, Pillow and PHP's Imagick, so a file named .png or .jpg can still end up being rendered by it. WordPress operators should apply both the core and renderer updates and review public forms that send uploads into the media library, and where patching must wait, suspending automatic previews for untrusted files is a practical stopgap. On print servers, requiring authentication for shared queues and restricting network access to them closes the easiest route in, while keeping renderers isolated and giving their service accounts only the access they need limits what any escape can reach.

Source
Cyber Security News — https://cybersecuritynews.com/upload2shell-flaw/