CVE-2026-104692: Code execution through Java method calls in HSQLDB databases
LibreOffice bundles the HSQLDB database engine, which can be used through the generic JDBC database driver as well as through the support for embedded databases. HSQLDB lets SQL statements call Java methods, limited to the classes that are permitted. When HSQLDB was used through the generic JDBC driver this limit did not apply, so SQL in a crafted document could call any Java method and run code. In fixed versions SQL can call only the built-in functions of HSQLDB, whichever way the database is reached.
Affected Software
Event History
Frequently Asked Questions
Which LibreOffice database usage is affected?
The issue applies when LibreOffice uses HSQLDB through the generic JDBC database driver. The description also notes that LibreOffice bundles HSQLDB and supports embedded databases, but identifies the missing Java-method restriction specifically for generic JDBC use.
What must an attacker provide to exploit this?
An attacker needs a crafted document containing SQL that reaches HSQLDB through the generic JDBC driver. The SQL can invoke Java methods that were not limited to permitted classes, allowing code execution.
How do fixed versions change the behavior?
In fixed versions, SQL can call only HSQLDB built-in functions regardless of how the database is accessed. This prevents SQL from invoking arbitrary Java methods.