Tip: patch Ghostscript, then stop image pipelines from handing files to it at all: disable PS, EPS, PDF and XPS coders in ImageMagick's policy.xml where you only process images
- Upgrade to Ghostscript 10.08.0 or your distro's fixed build, including inside containers.
- In ImageMagick's policy.xml, deny the PS, PS2, PS3, EPS, PDF and XPS coders for apps that only thumbnail images; run conversions in a sandbox with no shell and no network.
- Require authentication on shared CUPS queues.
Sources: pwn.ai (Paulos Yibelo): How We Hacked the Pipes, Upload2Shell, CVE-2026-125396 (dated Nov 17, 2026) · Debian security tracker: CVE-2026-125396 (DSA-6516-1, DLA-4914-1)