CVE-2026-85714Stirling-Tools Stirling-PDF
Remote Code Execution in Stirling-PDF via SQL Injection in Database Import
Critical 9.1
Follow: this CVE · Stirling-Tools · Stirling-Tools Stirling-PDF We alert you by email or Slack (account required).
- Priority
- 55
- CVSS 3.1
- 9.1
- EPSS
- —
- Auth required
- Yes
- Published
- Oct 14, 2026
- Updated
- Oct 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-94
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: no · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H
What happens
Stirling-PDF prior to 2.13.2 allows authenticated administrators to execute arbitrary code by uploading malformed SQL files to the database import endpoint. Insufficient SQL content validation bypasses the whitelist and permits dangerous H2 functions such as FILE_READ and CREATE ALIAS, resulting in arbitrary file access and operating-system command execution with JVM service account privileges.
Show the original NVD text
Stirling-PDF is a locally hosted web application that facilitates various operations on PDF files. Prior to 2.13.2, an authenticated administrator using the default H2 database and security mode can upload a crafted SQL file to POST /api/v1/database/import-database. DatabaseService.validateSqlContent() splits normalized input on semicolons and accepts a statement when it contains any allowed keyword, allowing dangerous H2 functions such as FILE_READ and CSVWRITE, plus CREATE ALIAS, to bypass the insufficient whitelist and execute side effects when RUNSCRIPT processes the file. This permits arbitrary file access. The demonstrated operating-system command execution chain writes attacker-controlled startup files to a user-site location and then triggers an application Python interpreter configured to load those startup files, resulting in command execution as the JVM service account. This issue is fixed in version 2.13.2.
What to do
Patch available · fixed versions: 2.13.2
Update Stirling-PDF to version 2.13.2 or later to apply the SQL validation fix.
- Apply the vendor's security update for Stirling-PDF.
Affected products
- Stirling-Tools · Stirling-PDF
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.