CVE-2026-85714: Stirling-PDF: Remote Code Execution via H2

Published Oct 14, 2026
·
Updated

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 FILEREAD 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 Software

1 affected component
Stirling-Tools Stirling-PDF<2.13.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Stirling-PDF to a version that resolves this vulnerability.

    Fixed in 2.13.2

Event History

Oct 14, 2026
CVE Published
via MITRE·06:22 PM
Data Sourced
via MITRE·06:22 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is exposed to exploitation?

Stirling-PDF deployments prior to 2.13.2 are exposed when they use the default H2 database and security mode. Exploitation requires an authenticated administrator account.

2

What access and endpoint does an attacker need?

An attacker needs administrator authentication and the ability to send a crafted SQL file to POST /api/v1/database/import-database. No user interaction is required.

3

What can a successful attacker do?

The vulnerable SQL validation can permit H2 functions including FILE_READ, CSVWRITE, and CREATE ALIAS during database import. This enables arbitrary file access and can be chained to execute operating-system commands as the JVM service account.

4

What version fixes the issue?

Upgrade Stirling-PDF to version 2.13.2. The issue affects versions prior to 2.13.2.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203