Menu

Django's ImageField Let an EPS Through. Then Pillow Called Ghostscript
📰

Django's ImageField Let an EPS Through. Then Pillow Called Ghostscript

DEV Community: django·Lycore Development·1 day ago
#J7Drbvz1
#devtodjango#devto#dev#django#ghostscript
Long article (2137 words) — no AI summary yet.
Reading 0:00
15s threshold

On November 21, pwn.ai published the full write-up of Upload2Shell , now CVE-2026-125396: a use-after-free in Ghostscript's Type 1 font loader that lets a crafted document switch off the -dSAFER sandbox and run commands as whatever account is doing the rendering. Artifex fixed it in Ghostscript 10.08.0 back on September 8, the CVE was published on November 9, and The Hacker News notes there are no reports of it being exploited in the wild.

So why write about a bug that was patched two and a half months ago? Because of one table in the pwn.ai research post . In their tests on Pillow 13.0.0, Image.open() followed by load() , crop() or thumbnail() invoked Ghostscript when the upload contained EPS content, even when the file was named .png . Their list of affected application paths includes Gradio, ComfyUI, InvokeAI, Frappe, Home Assistant and django-filer, all of which reach Ghostscript through Pillow.

I write Django. Pillow is in almost every project we ship.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.