Upload2Shell: check your Ghostscript version and stop trusting safe image pipelines
A use-after-free flaw in Ghostscript's Type 1 font loader lets a crafted document escape the dSAFER sandbox. The write-up claims this leads to command execution in several applications that convert uploaded files, with some routes needing no login.
Published on medium.com
Security
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Context
Upload2Shell, tracked as CVE-2026-125396, is a use-after-free in the Type 1 font loader of Ghostscript. Ghostscript is the interpreter that many applications use behind the scenes to read PostScript and PDF content, so a flaw in its font handling matters to any service that converts or renders documents. A crafted document can escape the dSAFER sandbox, the isolation mode Ghostscript uses to restrict what a document is allowed to touch.
The write-up reports command execution in four applications: Debian 13 CUPS, Roundcube 1.7.2, MediaWiki with PdfHandler, and WordPress 7.0.0 to 7.0.3. Some of those routes need no login at all. Others need an upload capability. That difference matters when you assess your own exposure, because the unauthenticated paths are reachable by anyone who can submit a document.
Setup
The write-up does not describe a lab, accounts, roles or tooling. What it does give is the version picture:
| Item | Detail |
|---|---|
| Upstream fix | Ghostscript 10.08.0, released 8 September 2026 |
| CVE assigned | 9 November 2026 |
| Affected applications named | Debian 13 CUPS, Roundcube 1.7.2, MediaWiki with PdfHandler, WordPress 7.0.0 to 7.0.3 |
| Authentication needed | None on some routes, an upload capability on others |
The precondition that matters for every target is a pipeline that hands attacker-supplied documents to a vulnerable Ghostscript.
Finding it
The write-up frames the bug as a use-after-free in the Type 1 font loader. That is the kind of memory-safety defect that a document can trigger simply by being parsed, which is why the input is a crafted document rather than a request that exploits an application-level logic error. The consequence the write-up highlights is escape from the dSAFER sandbox, so the question it raises is not whether a document can crash the interpreter but what the interpreter can reach once the sandbox no longer holds.
Exploitation
The write-up does not publish requests, payloads or command output. It states that public proofs of concept for the listed applications are not yet published, and it asks readers to treat the claims as unreplicated. So there is no step-by-step request sequence to reproduce here; the exploitation detail it does give is the set of applications where the researchers report command execution.
Step 1: Identify a conversion path
Look for any feature that accepts a document and passes it to Ghostscript: print spooling, mail attachment preview, wiki file handling, or media upload with thumbnail generation. The four applications named in the write-up map onto those categories.
Step 2: Check the authentication requirement
Some routes need no login. Others need an upload capability. The write-up does not say which application falls into which group, so treat both as live possibilities on your own estate.
Step 3: Confirm the Ghostscript version
Compare the interpreter your pipeline invokes against 10.08.0. Anything older than the 8 September 2026 release is in scope for this bug.
Step 4: Assess what the process can reach
The write-up's closing question is the one to answer for your deployment: if your conversion service runs as the same user as your application, assume the worst case is a shell on that box.
Root cause
The defect is a use-after-free in the Type 1 font loader. The dSAFER sandbox is the defence that is supposed to contain the damage when a document is malicious, and the write-up's claim is that a crafted document escapes it. Why the sandbox did not stop this is not explained in the text.
A second, organisational cause runs through the whole piece: teams treat an image or PDF pipeline as safe because the input looks like a picture. The write-up calls a flag inside the same process a thin wall, and argues that conversion should run the way browsers run their renderers, in a throwaway process with no network and no access to the host's files, by default.
Impact
The write-up reports command execution in Debian 13 CUPS, Roundcube 1.7.2, MediaWiki with PdfHandler, and WordPress 7.0.0 to 7.0.3. Where a route needs no login, the attacker is anyone who can submit a document. Where a route needs an upload capability, the attacker needs that capability first.
Several hedges apply. The write-up gives no CVSS score, and every result is the researchers' own. Public proofs of concept for the listed applications are not yet published, so the claims are unreplicated. On Hacker News, one commenter thinks the claimed attacks on large companies were probably sandboxed; that is a comment, not a finding. The primary page was last updated on 18 November, so this is not fresh news.
The practical exposure is set by your deployment. If the conversion service runs as the same user as your application, the worst case is a shell on that box. The write-up's forward-looking view is that within six months at least one public proof of concept for one of the listed applications will appear, and that patched Ghostscript packages will reach the major distributions before that happens. Installs that stay vulnerable will be found by scanning, not by luck.
Fix
Upstream fixed the bug in Ghostscript 10.08.0 on 8 September 2026. That is the change that was made. A fix that has been out for over two months is a reason to check your version, not to relax.
Beyond upgrading, the write-up argues that conversion should run the way browsers run their renderers, in a throwaway process with no network and no access to the host's files, by default, rather than relying on a flag inside the same process. It expects that model to be standard by 2031.
Variants to test
Sources cited in the write-up:
https://pwn.ai/upload2shell
https://news.ycombinator.com/item?id=50592097
https://youtube.com/shorts/bKhnRby755Q
What happened, in plain words
A write-up by Galascribe describes a bug in a piece of software called Ghostscript. The bug has an official tracking number, CVE-2026-125396, and a nickname, Upload2Shell. The write-up reports that a specially crafted document can lead to command execution in four applications. The write-up reports this happening in four well-known applications: Debian 13 CUPS, Roundcube 1.7.2, MediaWiki with PdfHandler, and WordPress 7.0.0 to 7.0.3.
Before going further, a few words for anyone new to this. A CVE is a public catalogue number for a known security flaw, so people can talk about the same bug without confusion. Command execution means an attacker gets to run programs on someone else's computer, as if they were sitting at its keyboard. Ghostscript is a free program that reads PostScript and PDF files, the formats used for printable documents. Many other programs do not read those formats themselves; they hand the file to Ghostscript and use the result. Think of Ghostscript as a translator that many offices quietly share: if the translator can be tricked, every office that sends it work is exposed.
The write-up is careful about what it does and does not prove. It gives no CVSS score (CVSS is a standard 0 to 10 severity rating). Every result in it is the researchers' own, and public proofs of concept for the listed applications are not yet published, so the claims have not been independently repeated. On Hacker News, one commenter thinks the claimed attacks on large companies were probably sandboxed; that is a comment, not a finding. The primary page was last updated on 18 November, so this is not fresh news. The author still thinks the risk is real wherever uploads are converted without a sandbox.
A sandbox is a set of restrictions that stops a program from touching things it should not: other files, the network, the rest of the machine. It is like giving a contractor one room to work in and locking the other doors. The write-up says a crafted document can escape Ghostscript's own sandbox, called dSAFER.
Context
Upload2Shell, tracked as CVE-2026-125396, is a use-after-free in the Type 1 font loader of Ghostscript. A use-after-free is a memory bug: a program frees a piece of memory, then keeps using it as if it were still its own. If an attacker can put their own data into that freed space before it is reused, they can influence what the program does next. The Type 1 font loader is the part of Ghostscript that reads Type 1 fonts, an older font format that documents can embed. So the trigger is a crafted document rather than a strange web request.
Ghostscript is the interpreter that many applications use behind the scenes to read PostScript and PDF content, so a flaw in its font handling matters to any service that converts or renders documents. An interpreter here means a program that reads a file and carries out what it describes, rather than just storing it. A crafted document can escape the dSAFER sandbox, the isolation mode Ghostscript uses to restrict what a document is allowed to touch.
The write-up reports command execution in four applications: Debian 13 CUPS, Roundcube 1.7.2, MediaWiki with PdfHandler, and WordPress 7.0.0 to 7.0.3. Some of those routes need no login at all. Others need an upload capability. That difference matters when you assess your own exposure, because the unauthenticated paths are reachable by anyone who can submit a document. Unauthenticated simply means no username or password is required.
A quick word on each product, since the names assume familiarity:
- CUPS is the printing system on Linux and macOS. It receives print jobs and converts documents into something the printer understands, often using Ghostscript.
- Roundcube is a webmail client: a program you install on your own server to read mail in a browser. It can preview attachments, and previewing a PDF means converting it.
- MediaWiki is the software behind Wikipedia-style wikis. PdfHandler is an add-on that lets a wiki show PDF files and make thumbnail images of their pages.
- WordPress is the most widely used website-building software. When you upload an image or document to its media library, it often generates a smaller preview image, called a thumbnail.
In all four, the pattern is the same: a file arrives from a user, and something converts it.
Setup
The write-up does not describe a lab, accounts, roles or tooling. What it does give is the version picture:
| Item | Detail |
|---|---|
| Upstream fix | Ghostscript 10.08.0, released 8 September 2026 |
| CVE assigned | 9 November 2026 |
| Affected applications named | Debian 13 CUPS, Roundcube 1.7.2, MediaWiki with PdfHandler, WordPress 7.0.0 to 7.0.3 |
| Authentication needed | None on some routes, an upload capability on others |
"Upstream fix" means the fix made by the people who maintain Ghostscript itself, before it is packaged by Linux distributions. A version number like 10.08.0 is how software makers label releases; higher numbers are newer. The precondition that matters for every target is a pipeline that hands attacker-supplied documents to a vulnerable Ghostscript. A pipeline here is just the chain of steps a file goes through: uploaded, stored, converted, previewed.
Finding it
The write-up frames the bug as a use-after-free in the Type 1 font loader. That is the kind of memory-safety defect that a document can trigger simply by being parsed, which is why the input is a crafted document rather than a request that exploits an application-level logic error. Parsing means reading a file and working out its structure; a parser is the part of a program that does this, and it is the first code to touch untrusted input. The consequence the write-up highlights is escape from the dSAFER sandbox, so the question it raises is not whether a document can crash the interpreter but what the interpreter can reach once the sandbox no longer holds.
Exploitation
The write-up does not publish requests, payloads or command output. It states that public proofs of concept for the listed applications are not yet published, and it asks readers to treat the claims as unreplicated. So there is no step-by-step request sequence to reproduce here; the exploitation detail it does give is the set of applications where the researchers report command execution. A proof of concept is a small demonstration that shows a bug is real, usually shared so others can check it.
Step 1: Identify a conversion path
Look for any feature that accepts a document and passes it to Ghostscript: print spooling, mail attachment preview, wiki file handling, or media upload with thumbnail generation. The four applications named in the write-up map onto those categories. Print spooling is the queue where print jobs wait their turn; the spooler is the program managing that queue.
Step 2: Check the authentication requirement
Some routes need no login. Others need an upload capability. The write-up does not say which application falls into which group, so treat both as live possibilities on your own estate. "Your estate" means all the systems you are responsible for.
Step 3: Confirm the Ghostscript version
Compare the interpreter your pipeline invokes against 10.08.0. Anything older than the 8 September 2026 release is in scope for this bug.
Step 4: Assess what the process can reach
The write-up's closing question is the one to answer for your deployment: if your conversion service runs as the same user as your application, assume the worst case is a shell on that box. A shell is a command prompt, the text interface where you type commands; getting one on a server means the attacker can run programs there. "Running as the same user" means the conversion step has the same permissions as the main application, so a compromise of one is a compromise of both.
Root cause
The defect is a use-after-free in the Type 1 font loader. The dSAFER sandbox is the defence that is supposed to contain the damage when a document is malicious, and the write-up's claim is that a crafted document escapes it. Why the sandbox did not stop this is not explained in the text.
A second, organisational cause runs through the whole piece: teams treat an image or PDF pipeline as safe because the input looks like a picture. The write-up calls a flag inside the same process a thin wall, and argues that conversion should run the way browsers run their renderers, in a throwaway process with no network and no access to the host's files, by default. A flag is a setting you switch on or off. A renderer is the part of a browser that turns a page description into what you see on screen. Modern browsers already isolate each tab in its own process, so a bad page cannot reach your files; the write-up wants document conversion to work the same way.
Impact
The write-up reports command execution in Debian 13 CUPS, Roundcube 1.7.2, MediaWiki with PdfHandler, and WordPress 7.0.0 to 7.0.3. Where a route needs no login, the attacker is anyone who can submit a document. Where a route needs an upload capability, the attacker needs that capability first.
Several hedges apply. The write-up gives no CVSS score, and every result is the researchers' own. Public proofs of concept for the listed applications are not yet published, so the claims are unreplicated.
The practical exposure is set by your deployment. If the conversion service runs as the same user as your application, the worst case is a shell on that box. The write-up's forward-looking view is that within six months at least one public proof of concept for one of the listed applications will appear, and that patched Ghostscript packages will reach the major distributions before that happens. Installs that stay vulnerable will be found by scanning, not by luck. A distribution is a packaged collection of software for a Linux system, such as Debian; a package is one installable piece of it.
Fix
Upstream fixed the bug in Ghostscript 10.08.0 on 8 September 2026. That is the change that was made. A fix that has been out for over two months is a reason to check your version, not to relax.
Beyond upgrading, the write-up argues that conversion should run the way browsers run their renderers, in a throwaway process with no network and no access to the host's files, by default, rather than relying on a flag inside the same process. It expects that model to be standard by 2031. "Architectural" means changing how the system is built, not just which version it runs.
Variants to test
Metadata is the descriptive information stored alongside a file, such as its size or dimensions. A fleet is the collection of machines you manage. Privilege means the set of things a user is allowed to do.
Sources cited in the write-up:
https://pwn.ai/upload2shell
https://news.ycombinator.com/item?id=50592097
https://youtube.com/shorts/bKhnRby755Q
This block is simply the list of links the write-up points to: the main page of the research, the Hacker News discussion thread, and a short video version. There is nothing to run here; they are references for further reading.
Glossary
- CVE: a public catalogue number for a known security flaw, so people can refer to the same bug unambiguously.
- CVSS: a standard 0 to 10 scale for rating how severe a security flaw is.
- Command execution: an attacker's ability to run their own programs on someone else's computer.
- Ghostscript: a free program that reads PostScript and PDF files, used behind the scenes by many other programs.
- PostScript: an older page description language for printable documents.
- PDF: a common file format for documents that look the same on any device.
- Interpreter: a program that reads a file and carries out what it describes.
- Use-after-free: a memory bug where a program frees a piece of memory and then keeps using it, letting an attacker influence what happens next.
- Type 1 font: an older font format that documents can embed.
- Font loader: the part of a program that reads font files.
- Parser: the part of a program that reads a file and works out its structure.
- Sandbox: restrictions that stop a program from touching files, the network or the rest of the machine.
- dSAFER: Ghostscript's own sandbox mode, meant to limit what a document can touch.
- Unauthenticated: reachable without a username or password.
- CUPS: the printing system on Linux and macOS, which converts documents for printers.
- Print spooling: the queue where print jobs wait, managed by a spooler program.
- Roundcube: a webmail client you install on your own server to read mail in a browser.
- MediaWiki: the software behind Wikipedia-style wikis.
- PdfHandler: a MediaWiki add-on that displays PDF files and makes thumbnails of their pages.
- WordPress: widely used website-building software with a media library for uploads.
- Thumbnail: a small preview image generated from a larger file.
- Metadata: descriptive information stored alongside a file, such as size or dimensions.
- Pipeline: the chain of steps a file goes through, from upload to conversion to preview.
- Upstream fix: the fix made by the software's own maintainers, before distributions package it.
- Version number: a label for a software release, where higher numbers are newer.
- Distribution: a packaged collection of software for a Linux system, such as Debian.
- Package: one installable piece of software within a distribution.
- Proof of concept: a small demonstration showing a bug is real, usually shared so others can check it.
- Shell: a command prompt, the text interface where commands are typed; a shell on a server means an attacker can run programs there.
- Privilege: the set of things a user is allowed to do.
- Flag: a setting that is switched on or off.
- Renderer: the part of a browser that turns a page description into what you see on screen.
- Fleet: the collection of machines you manage.
- Estate: all the systems you are responsible for.
- Hacker News: a public discussion website for technology and security topics.