Skip to main content
Vulnerability Database/CVE-2026-113605

CVE-2026-113605: Stirling-PDF Auth Bypass Vulnerability

CVE-2026-113605 is an authentication bypass flaw in Stirling-PDF versions 2.13.2 through 3.2.0 that allows administrators to execute arbitrary code via SQL imports. This post explains its technical details, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-113605 Overview

CVE-2026-113605 affects Stirling-PDF versions 2.13.2 through 3.2.0. The flaw resides in DatabaseService.validateSqlContent(), which uses an incomplete denylist to filter SQL content submitted to the H2 database import endpoint. Authenticated administrators can bypass the restriction with CREATE OR REPLACE ALIAS statements, allowing H2 Java function aliases to be defined through RUNSCRIPT. This restores Java-method execution within the H2 engine and leads to arbitrary code execution on the host. The weakness is categorized as [CWE-184: Incomplete List of Disallowed Inputs].

Critical Impact

An authenticated administrator can upload a crafted SQL backup to the import-database endpoint and achieve Java-method execution on the Stirling-PDF server.

Affected Products

  • Stirling-PDF 2.13.2 through 3.2.0
  • Deployments using the H2 embedded database backend
  • The proprietary DatabaseService component in the Stirling-PDF application

Discovery Timeline

  • 2026-10-20 - CVE-2026-113605 published to NVD
  • 2026-10-20 - Last updated in NVD database

Technical Details for CVE-2026-113605

Vulnerability Analysis

Stirling-PDF exposes an administrator-only import-database endpoint that accepts SQL backup files and executes them through H2's RUNSCRIPT facility. To prevent abuse, the application calls DatabaseService.validateSqlContent(), which rejects SQL statements matching a denylist of H2 features associated with code execution. The denylist omits the CREATE OR REPLACE ALIAS form of H2's function alias syntax. H2 function aliases bind Java static methods to SQL callable functions, which turns the SQL layer into a Java execution surface. An attacker with administrator credentials can submit a backup containing CREATE OR REPLACE ALIAS statements that register arbitrary Java methods, then invoke them. The outcome is remote code execution in the context of the Stirling-PDF process.

Root Cause

The root cause is an incomplete input denylist. validateSqlContent() enumerates dangerous H2 keywords instead of enforcing an allowlist of safe DDL and DML. Because H2 supports multiple syntactic forms for defining aliases, blocking only a subset leaves equivalent constructs reachable through RUNSCRIPT.

Attack Vector

Exploitation requires authenticated administrator access over the network. The attacker crafts a SQL backup file that uses CREATE OR REPLACE ALIAS to bind a Java method, uploads it to the import-database endpoint, and triggers execution via RUNSCRIPT. No user interaction beyond the attacker's own session is required. Technical details are documented in the Abraxas Labs H2 Import Research, the follow-up Abraxas Labs PDF 3.2.0 Research, and the VulnCheck Advisory on Stirling PDF.

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-113605

Indicators of Compromise

  • SQL backup uploads to the import-database endpoint containing CREATE OR REPLACE ALIAS or CREATE ALIAS statements
  • RUNSCRIPT invocations in H2 logs referencing administrator-supplied files
  • New Stirling-PDF child processes spawning shells, scripting interpreters, or network utilities
  • Outbound network connections initiated by the Stirling-PDF JVM to unfamiliar destinations

Detection Strategies

  • Inspect application and reverse-proxy logs for POST requests to the import-database route by administrator accounts
  • Alert on H2 SQL content containing alias creation keywords after it reaches DatabaseService
  • Monitor the Stirling-PDF process tree for unexpected child processes indicative of Java-method execution

Monitoring Recommendations

  • Enable detailed audit logging for all administrator actions on Stirling-PDF, especially database import and restore operations
  • Forward application, container, and host telemetry to a centralized analytics platform for correlation
  • Baseline normal outbound connectivity from the Stirling-PDF service and alert on deviations

How to Mitigate CVE-2026-113605

Immediate Actions Required

  • Upgrade Stirling-PDF to a release later than 3.2.0 that fully blocks H2 alias definitions in imported SQL
  • Restrict access to the administrator interface to trusted operators and networks only
  • Rotate credentials for any administrator account that may have been exposed
  • Review historical import-database activity for suspicious SQL content

Patch Information

Review the vulnerable code in the GitHub Stirling-PDF DatabaseService Code and track upstream fixes in the Stirling-PDF project. The GitHub Stirling H2 Import Repository documents the bypass. Apply the vendor-provided patched version once available and validate that validateSqlContent() enforces a complete allowlist.

Workarounds

  • Disable or network-restrict the import-database endpoint until a patched release is deployed
  • Migrate the backend from H2 to a database engine that does not support Java function aliases
  • Enforce multi-factor authentication and least-privilege role assignment for Stirling-PDF administrators
  • Run Stirling-PDF in a hardened container with restricted filesystem and outbound network policies
bash
# Configuration example: block the import endpoint at the reverse proxy
location /api/v1/database/import-database {
    deny all;
    return 403;
}

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.