A Ghostscript vulnerability published by researcher Paulos Yibelo on 21 November, which he calls Upload2Shell and which is tracked as CVE-2026-125396, lets a crafted file switch off Ghostscript’s SAFER sandbox. The paths that reach it include public upload forms and AI image apps. Teams that accept outside files should check which Ghostscript their apps actually call, because some distributions had no fix on 24 November.
How the Ghostscript vulnerability reaches upload forms and AI image apps
Debian’s tracker describes a bypass in Ghostscript before 10.08.0, the upstream fixed release. The research says image libraries pass PostScript or EPS content to Ghostscript even when a file is named .png or .pdf, which makes this a Pillow and ImageMagick security problem as much as a Ghostscript one. In its tests Pillow 13.0.0 did this, as did ImageMagick, some libvips builds and a Qt EPS plugin. PHP GD, OpenCV, prebuilt Sharp and Jimp did not.
The researchers report command execution without a login in several setups: anonymous print jobs to a Debian 13 CUPS queue, an emailed attachment viewed in Roundcube 1.7.2, public upload forms using WordPress with the Forminator plugin, and a Gradio 6.32.0 image app. WordPress Core alone needs an Author account. Amazon Linux rates CVE-2026-125396 at 7.8, Important. pwn.ai gives 8.5 under CVSS 4.0.
Debian lists fixed builds for bookworm and trixie, and the research cites a backported fix for Ubuntu 24.04. Amazon’s page shows Amazon Linux 2 and 2023 as Pending Fix, with only the 2027 preview fixed, on 19 November. The Red Hat bug was still marked new, with no fixed version, when we read it. Plesk shipped its own Ghostscript 9.54.0 in the tests, so updating the system package may not touch the copy an application uses.
IC’s reading, not a tested method, is three upload form security questions per path. Which Ghostscript binary runs? Who can reach the upload? What does that process hold? An AI image app often holds model provider keys in its environment, which turns file execution into the key theft in our Railway brief. A form that stores customer files may also start the GDPR 72 hour notification clock if a server is compromised.
What is unconfirmed and what to do next
None of the sources we read reports exploitation. A Red Hat bug comment points to a public proof of concept repository, which we did not open. Disclosure dates differ: Amazon and Red Hat say 10 November, pwn.ai says the CVE was published on 9 November, US Eastern time. The research also lists ComfyUI, InvokeAI and AUTOMATIC1111 as audited paths without a working proof. SUSE status is unverified.
No fix dates are published for Amazon Linux 2, Amazon Linux 2023 or Red Hat. Until they appear, inventory every Ghostscript, ImageMagick and Pillow copy including container images, put authentication in front of public upload queues, and check a file’s real type before making thumbnails.