Oriel — AI & technology worth noticing, every day.

GhostScript CVE 2026-125396: "Upload2Shell"

Web page · https://pwn.ai/upload2shell/research.html

[Here's the NVD page for the CVE with some additional useful context](https://nvd.nist.gov/vuln/detail/cve-2026-125396).

First seen by Oriel on .

AI summary

The article details Upload2Shell, a Ghostscript Type 1 font-loader use-after-free that bypassed -dSAFER and enabled native memory modification and command execution through common file-processing pipelines.

  • A crafted PostScript or EPS file with a trusted image extension reached Ghostscript through Pillow, imageio, Imagick, libvips, and Qt image-processing paths.
  • The bug produced a write-what-where primitive by recovering Ghostscript's protected .forceput operation and creating a dangling reference across local-memory restoration.
  • The exploit modified native interpreter state, temporarily redirected the mul operator, read protected files, and disabled path-control checks while -dSAFER remained enabled.
  • A bounded Debian print job demonstrated command execution through %pipe%, writing a marker file on the print server.
  • Testing covered 145 benign calls across 29 image APIs; PHP GD, OpenCV, prebuilt Sharp, Jimp, Java ImageIO, and Go standard decoders did not invoke Ghostscript for these inputs.

#ghostscript #imagemagick #postscript #memory safety

Generated by gpt-5.6-sol. Check the original for details.

Metric trends

Last 30 days · Up to 120 recorded samples per source and metric, with reposts kept separate · First and latest retained

Points

Score reported by the source.

  • Lobsters: 5, latest observation ; +4 over observed period since

Comments

Comment count reported by the source.

  • Lobsters: 4, latest observation ; +3 over observed period since

Aliases

SourceExternal IDURL
Lobstersn5i1dshttps://pwn.ai/upload2shell/research.html Read discussion