CVE-2026-85714
JSON

9.1critical

Stirling-PDF: Remote Code Execution via H2

Severity
9.1critical CVSS:3.1 by GitHub_M
Exploit likelihood
3.41% (higher than 89% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

Description

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

Product or packageVersionsReported by
Stirling-Tools Stirling-PDF< 2.13.2CVE List

Classification

CWE-94

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-85714 changed 2026-10-15CVE Terms of Use
NVDCVE-2026-85714 changed 2026-10-16Public domain