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
CVE-2026-125396 — Technical advisory and detection guide for CVE-2026-125396, a Ghostscript Type 1 font Use-After-Free that bypasses -dSAFER for code execution, with verification and remediation steps. | Kitploit
Tools/GitHubGitHub/0xblackash/cve-2026-125396
Defensive ToolsVulnerability AnalysisExploitationWeb Application ExploitationInformation GatheringSecurity VirtualizationPapers & ResearchMisconfiguration
Share
GitHub0xblackash/cve-2026-125396

CVE-2026-125396

Technical advisory and detection guide for CVE-2026-125396, a Ghostscript Type 1 font Use-After-Free that bypasses -dSAFER for code execution, with verification and remediation steps.

View Repository
1Nov 22, 2026Not yet reviewed

🔴 CVE-2026-125396 - UPLOAD2SHELL

CVE-2026-125396 — Ghostscript Sandbox Escape to Code Execution

Upload2Shell_ Ghostscript Sandbox Escape

⚠️ ONE FILE. ONE VULNERABLE RENDERER. POTENTIAL SERVER COMPROMISE.


🔴 01 — Overview

Upload2Shell is a security vulnerability affecting Ghostscript, a widely used interpreter for PostScript and PDF documents.

Tracked as CVE-2026-125396, the vulnerability involves a Use-After-Free condition in Ghostscript's Type 1 font loader.

An attacker can potentially exploit this flaw to bypass the -dSAFER security restrictions and execute arbitrary commands in the context of the vulnerable rendering process.

Vulnerability Information

AttributeDetails
VulnerabilityUpload2Shell
CVE IDCVE-2026-125396
VendorArtifex Software
ComponentGhostscript
Vulnerability TypeUse-After-Free
CWECWE-416
CVSS 3.17.8 — High
Attack VectorLocal (CVSS classification)
ImpactCode Execution
Affected VersionsBefore 10.08.0
Fixed Upstream Version10.08.0

🔴 02 — Technical Breakdown

The vulnerability exists in Ghostscript's font-loading functionality.

The affected .putgstringcopy procedure calls the privileged .forceput operator without properly validating operand types.

This can allow an attacker to:

  1. Trigger a type error using crafted document content.
  2. Recover access to the privileged operator through a custom error handler.
  3. Trigger a Use-After-Free condition across save and restore.
  4. Bypass the -dSAFER security boundary.
  5. Potentially execute arbitrary commands.

Core security issue:

Crafted PostScript / PDF
          |
          v
    Ghostscript
          |
          v
   Type 1 Font Loader
          |
          v
    .putgstringcopy
          |
          v
     .forceput
          |
          v
    Use-After-Free
          |
          v
      -dSAFER
       BYPASS
          |
          v
   CODE EXECUTION

🔴 03 — Attack Surface

Ghostscript can be integrated into multiple application workflows.

Potentially exposed processing paths include:

TechnologyProcessing Workflow
ImageMagickImage conversion
PHP ImagickUploaded media processing
CUPSDocument printing
RoundcubeEmail attachment previews
WordPressMedia processing
PillowEPS image processing

Important: These integrations are potential attack paths, not automatically vulnerable installations. Exploitability depends on the actual renderer, version, configuration and processing workflow.


🔴 04 — Security Impact

ImpactDescription
Sandbox EscapeBypass Ghostscript security restrictions
Code ExecutionExecute commands as the rendering process
ConfidentialityPotential unauthorized information access
IntegrityPotential modification of accessible files
AvailabilityPotential disruption of document-processing services

🔴 05 — Detection & Verification

Check whether Ghostscript is installed:

which gs

Identify the installed version:

gs --version

Check Debian/Kali package information:

dpkg -l | grep ghostscript

Inspect package details:

apt-cache policy ghostscript

Check ImageMagick configuration:

magick -list delegate

screenshot

upload2shell safe upload2shell

Note: Version checks alone are insufficient for distributions that backport security patches. Verify the installed package against the distribution's security advisory.


🔴 06 — Mitigation & Remediation

🛡️ Recommended Security Actions

1. Upgrade Ghostscript

Upgrade to upstream Ghostscript 10.08.0 or later, or install the security-patched distribution package.

2. Restrict Untrusted Documents

Limit processing of untrusted PostScript, EPS and PDF files.

3. Isolate Processing Services

Run document-rendering workers with minimal privileges and restricted filesystem access.

4. Review ImageMagick Policies

Review delegate permissions and prevent untrusted documents from reaching vulnerable rendering components.

5. Monitor File Processing

Monitor unusual child processes and unexpected command execution from document-processing services.


🔴 07 — Security Research Checklist

  • Identify installed Ghostscript versions.
  • Review document-upload functionality.
  • Identify ImageMagick and Imagick integrations.
  • Inspect document preview and conversion workflows.
  • Verify vendor security patches.
  • Review renderer privileges.
  • Validate remediation in an isolated environment.

🔴 08 — References & Resources

  • Ghostscript Official Repository
  • Upload2Shell Technical Research
  • Debian Security Tracker
  • Ubuntu Security Advisory
  • CVE-2026-125396 — AWS Security

🔴 SECURITY IS NOT OPTIONAL
Understand • Detect • Analyze • Patch • Protect

UPLOAD2SHELL | CVE-2026-125396 | 2026

Download Tool

Related Tools

  • wazuh

    Open-source XDR and SIEM platform for threat detection, log analysis, file integrity monitoring, vulnerability assessment, and compliance management across endpoints and cloud workloads.

  • suricata

    Open-source network IDS/IPS/NSM engine for real-time traffic inspection, intrusion detection and prevention, protocol analysis, and rule-based threat hunting.

  • zeek

    Zeek is a powerful network analysis framework that is much different from the typical IDS you may know.

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    Callisto

    jetp1ane/callisto

    Automated binary vulnerability analysis tool that decompiles executables via Ghidra, scans pseudo-C code with Semgrep, and validates findings using GPT-3.5-Turbo to reduce false positives.

    2.2k
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    One-tap Android kernel exploit app for CVE-2026-43499, providing privilege escalation via kernel module loading, with offset extraction and on-device analysis tools.

    841
  • 3

    DFRoot

    a2333c/dfroot

    Android root tool for Samsung Galaxy S25 Ultra (SM-S938B) that chains DirtyFrag CVE-2026-43284 and CVE-2026-43499 to gain root automatically at boot via KernelSU.

    451
  • 4

    ARTEX

    baarai/artex

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

    377
  • 5

    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.

    351
  • 6

    wifit3

    derv82/wifit3

    Wifite but USB-only & cross-platform.

    336

Explore all tools

Browse our collection of tools

View all tools →