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
cortex9-pillow-ghostscript-argv-injection-model — Offline educational model of CVE-2026-112900 (Pillow Ghostscript argv injection) | Kitploit
Tools/GitHubGitHub/federiconbaez/cortex9-pillow-ghostscript-argv-injection-model
Static AnalysisVulnerability AnalysisCode AnalysisPapers & ResearchLearning & EducationLabs & Practice
GitHubfedericonbaez/cortex9-pillow-ghostscript-argv-injection-model

cortex9-pillow-ghostscript-argv-injection-model

Offline educational model of CVE-2026-112900 (Pillow Ghostscript argv injection)

View Repository
12 days agoNot yet reviewed
Share

cortex9-pillow-ghostscript-argv-injection-model

Offline model of CVE-2026-112900 (GHSA-w889-685w-c8fh): Pillow's EpsImagePlugin.Ghostscript() put fp.name as-is after -f in the Ghostscript argv, so a file name starting with - was read as an option and one starting with @ as an argument file. The fix, commit a2c363141da3 (Pillow 13.0.0), uses os.path.abspath(fp.name). Educational, deterministic, C11 checked with ASan/UBSan. Ghostscript is never run, Pillow is not imported, no file is opened and nothing touches the network. The model builds the argv as data and classifies the token.

Spanish: README.es.md. Exercises: PRACTICE.md.

What is modelled (tied to the diff)

Diff lineCodeModel
EpsImagePlugin.py 105 (context)if hasattr(fp, "name") and os.path.exists(fp.name):exists is a fixture input
old 106infile = fp.namepre: the name passes through unchanged
new 109infile = os.path.abspath(fp.name)post: normpath(join(cwd, name))
old 108 / new 111 (context)tempfile.mkstemp()TEMP branch: an absolute placeholder

The argv layout (gs -q -g.. -r.. -dBATCH -dNOPAUSE -dSAFER -sDEVICE=.. -sOutputFile=.. -c <ps> -f <infile> -c showpage) is the one quoted in the GHSA; it is not part of the diff. The token classifier follows the GHSA and the comment in the fix (new lines 106-108): leading - or -- is an option, leading @ an argument file, anything else a path.

Differential evidence (results/)

Caseprepost
-h, --help, -dNOSAFER.eps, -sOutputFile=x.eps, -OPTIONPATH (/srv/uploads/-h, ...)
@args.txt, @ATFILEPATH
image.eps, ./-h, /data/-h.epsPATHPATH
-h that does not exist (exists=0)PATH (mkstemp branch)PATH

results/sweep.csv tries every printable first byte: before the fix only 0x2d (-) and 0x40 (@) leave PATH; after it, every result starts with / (0x2f). On 20,000 generated names (tests/test_model.c) the post-fix path is always absolute and normalized, and the pre-fix class depends only on the first byte.

Run

sh scripts/build.sh test              # -Wall -Wextra -Werror, ASan + UBSan
python3 scripts/derive_expected.py | diff - fixtures/expected.tsv
sh scripts/build.sh results /tmp/r && diff -r results /tmp/r
./build/pilgs case pre '-h' 1 /srv/uploads      # prints the argv; runs nothing

fixtures/cases.tsv holds positive, negative, edge and out-of-domain cases with labels derived by hand. fixtures/expected.tsv comes from scripts/derive_expected.py, which uses Python's own posixpath instead of the C code; the C tests compare against both.

A model is not a finding: see LIMITATIONS.md and SOURCES.md. License: Apache-2.0.

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.

    1.0k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

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

    634
  • 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.

    417
  • 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.

    383
  • 5

    ARTEX

    baarai/artex

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

    328
  • 6

    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.

    288

Explore all tools

Browse our collection of tools

View all tools →