Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 2 min read

Upload2Shell: check your Ghostscript version and stop trusting safe image pipelines

Upload2Shell, tracked as CVE-2026-125396, is a use-after-free in the Type 1 font loader of Ghostscript. A crafted document can escape the dSAFER sandbox. Upstream fixed it in Ghostscript 10.08.0 on 8 September 2026, and

Upload2Shell, tracked as CVE-2026-125396, is a use-after-free in the Type 1 font loader of Ghostscript. A crafted document can escape the dSAFER sandbox. Upstream fixed it in Ghostscript 10.08.0 on 8 September 2026, and the CVE was assigned on 9 November. 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. Some routes need no login. Others need an upload capability.

The write-up gives no CVSS score, and every result is the researchers' own. It says public proofs of concept for the listed applications are not yet published, so treat the claims as 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. I still think the risk is real wherever you convert uploads without a sandbox. A fix that has been out for over two months is a reason to check your version, not to relax.

Five years out, I expect document conversion to 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 inside the same process was always a thin wall. Teams that keep treating an image or PDF pipeline as safe because the input looks like a picture will keep getting surprised, and I think that habit ends by 2031.

In the next 6 months, I expect at least one public proof of concept for one of the listed applications, and I expect patched Ghostscript packages to reach the major distributions before that happens. The installs that stay vulnerable will be found by scanning, not by luck. If your conversion service runs as the same user as your app, assume the worst case is a shell on that box.

Which Ghostscript version does your upload pipeline run today, and what would an attacker reach from that process?

Sources:

Watch the short version:
https://youtube.com/shorts/bKhnRby755Q

πŸ“° Read the original article on Dev.to Security

Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.