Skip to content
Checklist

Document Upload Rendering Exposure Checklist

Does anything you run turn an uploaded file into a preview, thumbnail or PDF? Mail previews, CMS media libraries, print services and helpdesk attachments often hand untrusted files to Ghostscript, ImageMagick or LibreOffice, which parse them as programs. Work through where rendering happens, whether it is patched (Ghostscript 10.08.0 fixes CVE-2026-125396, per the CVE record), whether the renderer is isolated with no network and no secrets, which formats you accept, and whether you would notice a renderer starting a shell. You get a 0–100 score and the gaps ranked so you fix the riskiest first.

Rendering exposure readiness
0/ 100
Wide open

Untrusted files reach an interpreter with few limits. Patch, switch off unneeded formats and isolate the renderer first.

0 / 22 items answered · weighting is a heuristic
By section
  • Inventory: where rendering happens0
  • Version and patching0
  • Sandbox and isolation0
  • Input controls0
  • Monitoring0
  • Response0

Prioritised gaps

Highest-weight, least-done items first. Work from the top.

  1. Sandbox and isolation · unanswered

    Move conversion into a dedicated worker (queue in, file out) with its own image and nothing else installed.

  2. Sandbox and isolation · unanswered

    Drop root, mount the image read-only, give each job a temporary directory and strip environment secrets and instance-role credentials from the worker.

  3. Sandbox and isolation · unanswered

    Deny egress for the worker at the network policy or security group; a renderer has no reason to call the internet, and a reverse shell needs one.

  4. Version and patching · unanswered

    Upgrade Ghostscript to 10.08.0 or later, or to your distribution's package that its security notice says includes the fix. Check container base images, not only hosts.

    Ghostscript upload2shell: what to do →
  5. Inventory: where rendering happens · unanswered

    Build the list: grep images and hosts for gs, ghostscript, convert/magick, libreoffice/soffice, pdftoppm, vips; ask product owners which features make previews of uploads.

  6. Inventory: where rendering happens · unanswered

    Trace the call chain per service. Image libraries often hand PDF, PostScript and EPS to Ghostscript, so a service that "only resizes images" may still run it.

  7. Input controls · unanswered

    Enforce an allowlist on the server by inspecting file signatures, and reject everything else before it reaches a renderer.

  8. Input controls · unanswered

    Remove PS/EPS from accepted types and add deny rules for the unneeded coders in ImageMagick policy.xml; confirm with identify -list policy.

+ 14 more in the checklist below and in the export.

Inventory: where rendering happens · weight 18

You cannot patch or isolate a renderer you do not know about. Thumbnails, previews and conversions hide in mail gateways, CMS media libraries, print services, ticketing attachments and wiki or document viewers.

0
/ 100
in1

Every service that converts, previews, thumbnails or prints user-supplied files is listed, including third-party products and plugins that do it for you (mail previews, CMS media such as WordPress, helpdesk attachments, print and scan services).

in2library chain

For each one you know which library actually parses the file (Ghostscript, ImageMagick, LibreOffice, Pillow, libvips, poppler) and whether it shells out to Ghostscript for PDF, PS or EPS.

in3

You know who can reach each renderer: anonymous internet users, any signed-in user, or only staff.

Version and patching · weight 20

Renderers parse hostile input by design, so their own security releases matter. Bundled copies inside containers and appliances are the ones that get missed.

0
/ 100
pa1CVE-2026-125396

Every Ghostscript copy is on a fixed release. For CVE-2026-125396 ("upload2shell"), the CVE record and Artifex give Ghostscript 10.08.0 as the fixed version; distribution packages may carry the fix under their own version number.

Ghostscript upload2shell: what to do →
pa2CVE-2026-65640

Applications that call the renderer are patched too (for example WordPress 7.0.4 or the latest release of its branch for CVE-2026-65640, which affects sites using Imagick and Ghostscript).

pa3

You check renderer CVEs against CISA's Known Exploited Vulnerabilities list and patch exploited ones first.

KEV Checker →
pa4

Bundled or vendored copies (inside appliances, SaaS connectors, Docker images, language packages) are tracked in your SBOM or image scanning.

Sandbox and isolation · weight 24

Assume the next renderer bug escapes its own safe mode. What the process can reach after that decides whether a bad file is a crash or a breach.

0
/ 100
is1

Rendering runs in a separate container, VM or job, not inside the web application process or on the application server.

is2

The renderer runs as an unprivileged user with a read-only filesystem except a per-job scratch directory, and holds no application secrets, cloud credentials or database access.

is3

The rendering worker has no outbound network access (egress denied by default).

is4

A syscall filter (seccomp, AppArmor or SELinux profile) blocks process execution and other calls the renderer does not need.

is5

Jobs have CPU, memory and wall-clock limits and are killed and discarded after each file.

Input controls · weight 18

The cheapest defence is to never hand an interpreter a format you did not mean to accept. PostScript and EPS are programs, not pictures.

0
/ 100
ip1

Only the file types the feature needs are accepted (an allowlist), checked by magic bytes, not by extension or the Content-Type the browser sent.

ip2ImageMagick policy.xml

PostScript and EPS input is disabled where it is not needed, and ImageMagick's policy.xml blocks the PS, EPS, PDF and XPS coders unless the service needs them.

ip3

Upload size, page count and image dimension limits are enforced before rendering.

ip4

Ghostscript always runs with -dSAFER (the default in current releases) and you do not rely on it as the only control.

Monitoring · weight 12

A renderer that has been turned into a shell behaves differently from one making thumbnails: it starts processes and opens connections.

0
/ 100
mo1

You alert when a renderer process spawns a shell or any unexpected child process.

mo2

You alert on any outbound connection attempt from rendering workers.

mo3

Upload and render logs keep the file hash, uploader and source address long enough to trace a bad file.

Response · weight 8

When a renderer advisory or a suspicious render lands, the first hour should be a plan, not a search.

0
/ 100
re1

A runbook says how to switch off previews or conversion quickly (feature flag, policy change) while you patch.

re2

If a renderer may have been compromised, you know which credentials and data it could reach and how to rotate them.

Secret Rotation Order Planner →
re3

Stored uploads can be re-scanned or quarantined after a new renderer CVE, so a malicious file already on disk is not re-rendered later.

Educational self-assessment from PlayCISO. The section weights are a judgement framework for structured self-reflection, not a measurement, certification or guarantee. Version and CVE details are as reported by the CVE record, Artifex and WordPress; check the vendor advisory for your exact package. The checklist runs in your browser and uploads nothing; your answers live only in the link you choose to copy.

Loading…

Sample report · illustrative data

Sample result: document rendering exposure checklist

Example answers for a made-up helpdesk that makes previews of uploaded attachments: Ghostscript patched, but the renderer runs with network access and nobody watches it.

Overall

Rendering exposure readiness
53 / 100 (Exposed)
Items answered
22 of 22 (1 marked N/A)

Score by section

SectionWeightScore
Inventory: where rendering happens1870
Version and patching2076
Sandbox and isolation2440
Input controls1873
Monitoring1210
Response820

Prioritised gaps (first five)

  • Sandbox and isolation: deny outbound network access for the rendering worker.
  • Sandbox and isolation: run the renderer as an unprivileged user with a read-only filesystem and no application secrets.
  • Sandbox and isolation: apply a seccomp or AppArmor profile that blocks process execution.
  • Version and patching: track bundled Ghostscript and ImageMagick copies in image scanning and the SBOM.
  • Monitoring: alert when gs, convert, magick or soffice starts a shell or other child process.

Made-up example data. Your own run uses your inputs. Downloads of the full report need Pro.

TL;DR

What this checklist is

5 points
  • For teams whose services convert, preview or thumbnail files people upload (PDF, PostScript, EPS, images, Office documents) with Ghostscript, ImageMagick, LibreOffice or similar: mail previews, CMS media libraries such as WordPress, print services, helpdesk attachments.
  • Six weighted sections: where rendering happens, version and patching, sandbox and isolation, input controls, monitoring and response. You get a 0–100 score, a band and the gaps to close first.
  • Prompted by "upload2shell", Ghostscript CVE-2026-125396: the CVE record describes a -dSAFER bypass through a crafted PostScript or PDF file, fixed in Ghostscript 10.08.0. No in-the-wild exploitation had been reported when we checked.
  • Isolation carries the most weight: a renderer with no network egress, no secrets and a throwaway container turns the next parser bug into a crash instead of a breach.
  • Runs in your browser; nothing is uploaded. Share the exact checklist with a link; CSV and Markdown exports are available.

Document renderers run attacker-supplied programs

PostScript is a programming language, and Ghostscript interprets PDF with the same engine. A service that makes a thumbnail of an uploaded file is running an interpreter over input a stranger wrote. Ghostscript’s -dSAFER mode is meant to stop that program from touching files or running commands, and it has been bypassed before. CVE-2026-125396, which the researchers at pwn.ai named “upload2shell”, is one such bypass. WordPress fixed a related flaw, CVE-2026-65640, for sites that use Imagick and Ghostscript.

Patching closes one bug. What decides the damage from the next one is where the renderer runs: a separate worker, an unprivileged user, a read-only filesystem, no credentials and no outbound network. Add a short list of accepted formats checked by magic bytes, PostScript and EPS switched off where nobody needs them, and an alert when a renderer starts a shell, and a malicious upload becomes a failed job. The weights in this checklist are a heuristic, shown openly; it is a self-assessment, not a certification.

Frequently asked questions

What does this checklist cover?

Any service that turns an uploaded file into something else: a thumbnail, a preview, a PDF conversion or a print job. It walks through six areas: an inventory of where rendering happens and which library does it, version and patching (including bundled copies), sandbox and isolation of the renderer, input controls such as type allowlists and ImageMagick policy.xml, monitoring for child processes and outbound connections, and a response plan. Each item has a next action, and the gaps are ranked by weight.

Which Ghostscript version fixes CVE-2026-125396?

The CVE record says Ghostscript before 10.08.0 is affected, and Artifex lists 10.08.0 as its latest release. Linux distributions may ship the fix in their own package version, so check your distribution's security notice rather than only the version number.

Why does a service that only resizes images need to care about Ghostscript?

Image libraries such as ImageMagick and Pillow hand PDF, PostScript and EPS files to Ghostscript. A crafted file with an image name can therefore reach Ghostscript on a service that was only meant to make thumbnails. The researchers who named upload2shell describe reaching Ghostscript through ImageMagick, Pillow, libvips and several applications in their own tests.

Is turning on -dSAFER enough?

No. -dSAFER is Ghostscript's own sandbox and is on by default in current releases, but CVE-2026-125396 is described as a -dSAFER bypass. Treat it as one layer and add patching, an isolated worker with no network egress, and input restrictions.

Does the tool scan my servers or upload my answers?

No. It is a self-assessment that runs entirely in your browser. It makes no network calls about your systems, and your answers are only stored in the shareable link you choose to copy.

This tool is free and always will be. Would a Pro workspace — saved designs, team sharing and exports — be worth paying for?

Show me Pro →No account needed to use this tool — this just tells us whether Pro is worth building out.

The tools people use most on PlayCISO.

All tools