Stirling-Tools Stirling-PDF
Stirling-PDF: Remote Code Execution via H2
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 2.13.2
Fixed in 2.13.2
Mitigation
Upgrade Stirling-PDF to 2.13.2 or later.
References
- Vendor advisory github.com/Stirling-Tools/Stirling-PDF/securit…
- Patch github.com/Stirling-Tools/Stirling-PDF/pull/67…
- Patch github.com/Stirling-Tools/Stirling-PDF/commit/…
1 more
- Release notes github.com/Stirling-Tools/Stirling-PDF/release…
Timeline
Days relative to CVE publicationFirst public PoC 6.3 days before publication; not in CISA KEV. First PoC: nuclei template: Stirling PDF <= 2.13.1 - H2 Database Import Remote Code Execution (nuclei template, 8 Oct 2026).
PoC repositories
Found on GitHub.No PoC repositories found yet.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| nuclei template | nuclei template: Stirling PDF <= 2.13.1 - H2 Database Import Remote Code Execution | 8 Oct 2026 | 14 Nov 2026 |