All CVEs

Upload2Shell (CVE-2026-125396): a crafted PostScript/PDF file escapes Ghostscript's -dSAFER sandbox and runs commands as the rendering user, in Ghostscript before 10.08.0. Reachable remotely wherever a server renders outsiders' files: ImageMagick/Imagick or Pillow previews (even files named .png), Roundcube thumbnails, WordPress uploads, shared CUPS queues. Proof of concept public and does most of the work (memory control on 10.07.0 x86-64; the remaining steps to commands are shown in excerpts), researchers say a full exploit comes next, no attacks seen yet, not in KEV. If outsiders' files reach Ghostscript, update now. Fix: Ghostscript 10.08.0 or distro packages (DSA-6516-1, DLA-4914-1, USN-8949-1); WordPress 7.0.4 / 6.9.7, Roundcube 1.6.20 / 1.7.5. https://tldrcve.com/upload2shell/

Ghostscript · CVE-2026-125396

Upload2Shell

Patch now if…Outsiders' files reach it. Full exploit announced.

A bug in Ghostscript before 10.08.0 lets a crafted file escape Ghostscript's -dSAFER sandbox and run commands as the account doing the rendering. The file holds PostScript but can be uploaded as an image named .png or .jpg: image libraries such as ImageMagick and Pillow pick the format from the content and hand it to Ghostscript, which also runs behind email thumbnails and print servers; the researchers ran commands through Debian's CUPS, Roundcube, WordPress and more. The CVE record scores it as a local attack (8.5), but those routes are remote. The researchers published a proof of concept that does most of the work: it takes control of Ghostscript's memory (tested on 10.07.0, x86-64 Linux), and their write-up shows the remaining steps to running commands in excerpts; one of them relies on memory offsets from the researchers' test build. They say a full exploit for the Debian CUPS route comes next. No attacks are reported yet.

How scary is it?

updated 22 Nov
  • Yes: Public exploit code is out3
  • No: No attacks seen yet1,10
  • No: Not on CISA's exploited list10

Scare-o-meter

Check today

Find out if you're affected.
If you are, patch.

Are you affected? only if all are true

1Ghostscript before 10.08.0command

Distros backport the fix without changing gs --version, so check the package instead: fixed in Debian 12 10.0.0~dfsg-11+deb12u9, Debian 13 10.05.1~dfsg-1+deb13u2, Ubuntu 24.04 10.02.1~dfsg1-0ubuntu7.10 and 22.04 9.55.0~dfsg1-0ubuntu5.15 (newer releases too; older ones through Ubuntu Pro). Ubuntu's notice USN-8949-1 lists this bug as "No CVE number" (the researchers link it to this CVE), while Ubuntu's CVE tracker still says "Needs evaluation" for every release. No fixed package yet on 22 Nov 2026: Amazon Linux 2, 2023 and 2027 Preview ("Pending Fix"), SUSE Linux Enterprise 15 SP7 and 16 ("In progress"), openSUSE Leap 16 ("Affected"). The 10.08.0 release candidate (18 Aug) also calls itself 10.08.0 but came before the fixes, so check it isn't what you run. Container images carry their own copy.1,3,4,6,7,15,16,17,23,24

gs --version
2It renders files from outsiders

Something passes files you don't control to Ghostscript. Common routes: image or PDF previews through ImageMagick/Imagick, Pillow (EPS files, once pixels are loaded) or libvips with ImageMagick loaders; these check the file's content, not its name, so a .png upload counts. It doesn't have to be a PDF: the researcher says an image or a video can carry it (the write-up tests images and documents, not video). Also: Roundcube attachment thumbnails (before 1.6.20 / 1.7.5), WordPress uploads by Authors and up or public plugin upload forms (before 7.0.4 / 6.9.7), CUPS print queues shared without a login, and document importers that convert PDFs. On a desktop, the CVE record's score assumes a user opens the file.1,2,3,8,13,14,20

What to do

1Outsiders' files reach it? Update now

Upload forms, previews, email thumbnails, shared print queues: don't wait for attacks, because the public proof of concept and write-up cover most of an exploit. Update to 10.08.0 or your distro's fixed package: Debian DLA-4914-1 and DSA-6516-1, Ubuntu USN-8949-1 (it lists the bug without a CVE number). This fixes every route at once. 10.08.0 also fixes five other Ghostscript CVEs (CVE-2026-110133, -112922, -103226, -19547 and -39919); Artifex's own CVE list doesn't name this one. One of them, CVE-2026-39919, is a JPEG 2000 overflow in PDFs; Wordfence's two exploits for it only worked on the exact Ghostscript build they were made for, Wordfence hasn't published them, and no attacks are reported. Amazon Linux, SUSE Linux Enterprise 15 SP7 and 16, and openSUSE Leap 16 have no fixed package yet: cut the route (below) until they do. Rebuild container images that install Ghostscript.3,4,5,6,7,15,16,18,19,21,22,23

Latest safe versions checked 22 Nov

Ghostscript → 10.0810.08.0Artifex lists a single current release. Linux distros backport fixes into older versions (Debian 12's fixed package is still 10.0.0), so check your distro's advisory.
2Update the apps that reach it

WordPress 7.0.4 or 6.9.7 (fixes go back to 4.7) closes the upload route as CVE-2026-65640. Roundcube 1.6.20 or 1.7.5 stops passing EPS and SVG to ImageMagick (CVE-2026-114727). These help, but the Ghostscript update fixes the bug itself.8,9,14

Latest safe versions checked 22 Nov

WordPress → 7.17.1.57.07.0.96.96.9.126.86.8.13Older branches back to 4.7 also get security releases (for example 6.7.12); 4.6 and older get none. Only the newest version is actively supported, and sites with automatic background updates on get these by themselves.
3Print servers: require a login

Requiring authentication on a shared CUPS queue blocked the researchers' anonymous print job.3

4Can't update yet? Cut the routecommand

ImageMagick: its security policy docs show this policy.xml line to stop it running Ghostscript and other external delegates (ImageMagick 7.0.1-8 and later). Python: pass formats=["PNG", "JPEG"] (whatever you accept) to Pillow's Image.open() so EPS is never loaded. Neither covers print servers or apps that call gs directly.11,12,13

<policy domain="delegate" rights="none" pattern="*"/>
5What would make this Patch now

Attacks reported, the researchers' announced full exploit (the Debian CUPS route) or another one published, or a listing on CISA's exploited list (KEV).3,10

This page shows you how to check. It can't tell you you're safe.

Sources (24) and changelog
  1. CVE record (VulnCheck): before 10.08.0, CVSS 8.5 local; CISA on 10 Nov: no exploitation 9 Nov
  2. pwn.ai: Upload2Shell timeline and confirmed app routes
  3. pwn.ai: technical write-up, CUPS, Roundcube, WordPress, image libraries 17 Nov
  4. Artifex: Ghostscript 10.08.0 release 8 Sep
  5. Artifex: fix commit
  6. Debian tracker: DLA-4914-1 and DSA-6516-1 fixed packages
  7. Ubuntu: USN-8949-1 fixed packages 21 Oct
  8. WordPress: CVE-2026-65640 advisory, fixed versions 12 Aug
  9. WordPress: 7.0.4 security release 12 Aug
  10. CISA KEV catalog: not listed
  11. ImageMagick: security policy, disabling delegates
  12. Pillow docs: Image.open formats argument
  13. Pillow docs: EPS files use Ghostscript
  14. CVE record: CVE-2026-114727, Roundcube 1.6.20 / 1.7.5 22 Oct
  15. Amazon Linux: ghostscript fix pending for AL2, AL2023, AL2027 Preview
  16. SUSE: SLE 15 SP7 and 16 in progress, openSUSE Leap 16 affected
  17. Ubuntu CVE tracker: CVE-2026-125396 "Needs evaluation" on every release
  18. Ghostscript: CVEs fixed in 10.08.0 (doesn't list CVE-2026-125396)
  19. oss-security (Oracle): 10.08.0 fixes five more CVEs; Upload2Shell page published 21 Nov 21 Nov
  20. Paulos Yibelo on X: the file can arrive as an image or a video 21 Nov
  21. CVE record: CVE-2026-39919, JPEG 2000 heap overflow, fixed in 10.08.0 15 Sep
  22. BleepingComputer: CVE-2026-39919, Wordfence exploit unreliable, no attacks seen 13 Oct
  23. Wordfence: CVE-2026-39919, two exploits tied to one Ghostscript build, 10.08.0 release candidate unfixed 12 Oct
  24. Artifex: Ghostscript 10.08.0 release candidate 1 18 Aug