SecurityOnlineDo Son
Ghostscript flaw enables remote code execution via image 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.
- Mon 23 Nov, 01:30 UTC. SecurityOnline, its first report on the story. Ghostscript flaw enables remote code execution via image uploads. This article, 3rd of 3.
Researchers at pwn[.]ai have published full technical details and a proof-of-concept for Upload2Shell, a remote code execution flaw in Ghostscript tracked as CVE-2026-125396. The bug is a use-after-free in Ghostscript’s Type 1 font loader, which can be exploited through ordinary image uploads to defeat Ghostscript’s -dSAFER sandbox and execute commands with the renderer’s privileges.
The article notes the CVSS score as 8.5 (CVSSv4) and says the exploit has been demonstrated in multiple products, including Roundcube 1.7.2 and WordPress 7.0.2, with tests extending to Debian 13 CUPS and several document-management platforms. The piece states there is no confirmed exploitation in the wild at the time of reporting, and that CISA’s ADP record lists exploitation as “none”.
Artifex fixed the flaw in Ghostscript 10.08.0 on 8 September 2026, but several Linux distributions still ship vulnerable packages, and the PoC is public. Affected versions are Ghostscript before 10.08.0, with ongoing assessments for certain distributions (e.g., Debian 12 and some SUSE/openSUSE lines).
The article emphasises that the vulnerability is a supply-chain risk because image libraries load Ghostscript behind the scenes, allowing a crafted file to reach the renderer through platforms such as Pillow, Imagick, libvips and Qt’s EPS plugin. It also describes practical mitigations, including upgrading to 10.08.0, rebuilding container images, and auditing image/renderer usage in WordPress, CUPS and related services.
The write-up explains the attack chain as a privileged PostScript font helper misstep enabling a write-what-where primitive, which can bypass -dSAFER even when it is present on the command line.
How the story developed
3 articles from 3 outlets since 21 Nov. Still developing; the latest report was 6 hours ago. This was the 3rd report, 1 day 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.
- Mon 23 Nov, 01:30 UTC. SecurityOnline, its first report on the story. Ghostscript flaw enables remote code execution via image uploads. This article, 3rd of 3.
- CVE not in KEV
- No CVE
- Larger: an outlet’s first report
- Coverage over time
Show all 3 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
- Mon 23 NovDay 21
- Ghostscript flaw enables remote code execution via image uploads01:30 · SecurityOnline · This article, 3rd of 3