Ghostscript Patches Upload2Shell Flaw in Font Loader to Block Sandbox Bypass
Cybersecurity and privacy
Pwn.ai disclosed CVE-2026-125396 (Upload2Shell, CVSS 8.5), a Use After Free vulnerability in Ghostscript's font loader. Attackers can upload disguised PostScript files via images or PDFs to trigger memory corruption and alter security states to bypass sandboxes. Artifex patched the flaw in version 10.08.0, with affected systems including WordPress and Roundcube.
AI penetration testing firm Pwn.ai disclosed a security vulnerability in the open-source document processing engine Ghostscript, designated CVE-2026-125396 and named Upload2Shell. The flaw resides in the font loader as a Use After Free (UAF) issue, rated with a CVSS v4.0 score of 8.5. Software developer Artifex released Ghostscript version 10.08.0 in early September to address the vulnerability. According to Pwn.ai, the vulnerability can be triggered through standard file uploads, image previews, or email attachments. When backend applications (such as ImageMagick) invoke Ghostscript, files disguised with JPG, PNG, or PDF extensions can still enter PostScript interpretation pipelines, enabling arbitrary memory writes that alter internal security controls to bypass sandbox restrictions. Identified by Pwn.ai using GPT 5.6 Sol, the issue impacts environments including WordPress, Roundcube, Dropbox, and Debian 13. Attackers can trigger the flaw via unauthenticated public forms in WordPress or automatic server-side thumbnail generation in Roundcube without user interaction.
Key takeaways
- Pwn.ai revealed UAF vulnerability CVE-2026-125396 (Upload2Shell) in Ghostscript's font loader (CVSS 8.5); Artifex patched it in v10.08.0.
- Disguised PostScript files handled via intermediary libraries like ImageMagick can trigger arbitrary memory writes and modify internal security controls.
- The vulnerability impacts WordPress, Roundcube, Dropbox, and Debian 13, enabling remote exploitation during backend preview generation without credentials.
Source:iThome Read the original ↗
Prepared, checked and automatically published by AI; not individually reviewed by a human. Translation checked by AI.