Cybersecsloth: CVE-2026-125396 defensive checks (Ghostscript, "Upload2Shell" -dSAFER bypass)
LAB-ONLY / DEFENSIVE USE. No exploit code, no payloads, no crafted files, no network connections.
Run only on systems you own or are authorized to assess.

gs-125396-version-check.sh      prints gs --version, compares Debian/Ubuntu packages to the
                                published backports, and lists other gs/libgs copies (containers,
                                /opt, app bundles) that host updates will not patch.
imagemagick-gs-policy-harden.sh reports whether ImageMagick's policy.xml disables the
                                Ghostscript-backed coders (PS, EPS, PDF, XPS). --apply backs up
                                the file and inserts the coder policy. Defense in depth, not a fix.
cups-shared-queue-check.sh      read-only review of CUPS listeners, shared queues and auth.

Fix: Ghostscript 10.08.0 (Artifex, released 8 Sep 2026; patch commit 1484854e, bug 709684).
Debian 12: 10.0.0~dfsg-11+deb12u9 (DLA-4914-1). Debian 13: 10.05.1~dfsg-1+deb13u2 (DSA-6516-1).
Ubuntu USN-8949-1 (21 Oct 2026) lists fixed packages for 16.04 through 26.10 and describes this
finding as "No CVE number"; Ubuntu's CVE page still showed "Needs evaluation" on 18 Nov 2026.
CVSS (VulnCheck, the CNA): 3.1 7.8 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H; 4.0 8.5.
Not in CISA KEV (catalog 2026.11.20). CISA SSVC exploitation: none (10 Nov 2026).
