The Hacker News
Ghostscript flaw enables server code execution through file uploads
Part of the CVE-2026-125396 story · since 21 Nov
- Sat 21 Nov, 18:47 UTC. cybersixt, first report. Upload2Shell: Ghostscript CVE-2026-125396 lets uploads run code.
- Sun 22 Nov, 06:30 UTC. The Hacker News, its first report on the story. Ghostscript flaw enables server code execution through file uploads. This article, 2nd of 2.
A security researcher group from pwn[.]ai demonstrated a sandbox-escape remote code execution in Ghostscript, showing that a crafted file can cause Ghostscript to bypass -dSAFER and run commands on the host server via common rendering workflows.
Ghostscript acts as the interpreter for rendering PDFs, PostScript, and images on many Linux servers, including situations where the interpreter is invoked indirectly by libraries such as ImageMagick, Pillow, libvips or Qt plugins when handling images or documents, sometimes even if the file is named .png, .jpg or .pdf. The flaw, tracked as CVE-2026-125396, has since been fixed in Artifex Ghostscript version 10.08.0, released and patched on 8 September 2026.
The researchers demonstrated the exploit by feeding a crafted file through about ten applications, causing a command to execute on the server under a low-privilege rendering account.
The investigation notes that several attack paths do not require login, including anonymous print jobs to shared Debian queues and emailed attachments processed by Roundcube, as well as public upload forms in WordPress plugins Forminator and Essential Addons for Elementor. WordPress Core had already addressed related exposure with CVE-2026-65640 in version 7.0.4, though the two fixes cover different points in the same chain, so updating one component does not obviate the need for the other.
Artifex and the broader firm provide an impact index detailing the tested host access and the tested versions. The report also indicates that updating the host OS alone is insufficient to neutralise the risk, since vulnerable Ghostscript copies may still exist inside container images or application bundles.
How the story developed
2 articles from 2 outlets since 21 Nov. Still developing; the latest report was 1 hour ago. This was the 2nd report, 12 hours after the first.
- Sat 21 Nov, 18:47 UTC. cybersixt, first report. Upload2Shell: Ghostscript CVE-2026-125396 lets uploads run code.
- Sun 22 Nov, 06:30 UTC. The Hacker News, its first report on the story. Ghostscript flaw enables server code execution through file uploads. This article, 2nd of 2.
- CVE not in KEV
- No CVE
- Larger: an outlet’s first report
- Coverage over time
Show all 2 articles as a listHide the list
- Sat 21 NovDay 01
- Upload2Shell: Ghostscript CVE-2026-125396 lets uploads run code18:47 · cybersixt · First report
- Sun 22 NovDay 11
- Ghostscript flaw enables server code execution through file uploads06:30 · The Hacker News · This article, 2nd of 2