# CVE-2026-125396: Ghostscript Flaw Exploited via File Uploads

*Published November 23, 2026*
*Source: [https://cybersecuritynews.com/upload2shell-flaw/](https://cybersecuritynews.com/upload2shell-flaw/)*

## Executive Summary

A vulnerability in Ghostscript, CVE-2026-125396, allows command execution on various servers through file uploads. The flaw affects Ghostscript versions before 10.08.0, and Artifex has released a fix. Administrators must ensure all services using Ghostscript are updated and configured securely.

*This is a Premium edition: its actionable insights are available to sec-news.ai Premium members —*
*[read the story](https://www.sec-news.ai/news/cve-2026-125396-ghostscript-flaw-exploited-via-file-uploads) or [see plans](https://www.sec-news.ai/pricing).*

## Article

Researchers have discovered a vulnerability in Ghostscript, named Upload2Shell and tracked as CVE-2026-125396, which allows execution of commands on servers handling file uploads. This flaw affects Ghostscript versions prior to 10.08.0 and has been exploited on platforms like WordPress, Roundcube webmail, and Linux print servers. The vulnerability resides in the software's Type 1 font loader, which failed to properly validate data before performing certain operations. This oversight enabled attackers to bypass security restrictions in Ghostscript's -dSAFER mode through a use-after-free memory flaw. 

The vulnerability allows network-facing services to pass remotely supplied files to vulnerable Ghostscript code. Although actual attacks have not been confirmed, the research demonstrated multiple potential exploit scenarios. On WordPress, the flaw could be accessed through media previews when using the Imagick and ImageMagick plugins. Roundcube webmail could also be targeted when generating thumbnails for email attachments. Similarly, shared CUPS queues on Debian 13 print servers could process print jobs without user credentials, leading to potential exploitation.

Artifex has addressed the flaw in Ghostscript 10.08.0, and Linux distributions are applying patches to older versions. Administrators are advised to verify their software package status for CVE-2026-125396 and ensure updates are applied to all relevant services. It's important to isolate renderers and restrict access to service accounts. WordPress users should update both core and renderer components, and disable automatic previews for untrusted files if immediate patching is not feasible. Print servers should enforce authentication and limit network access to shared queues to prevent unauthorized use.
