CVE-2026-104692: Code execution through Java method calls in HSQLDB databases

Published Nov 16, 2026
·
Updated

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

1 affected component
The Document Foundation LibreOffice

Event History

Nov 16, 2026
CVE Published
via MITRE·04:40 PM
Data Sourced
via MITRE·04:40 PM
DescriptionWeakness

Frequently Asked Questions

1

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.

2

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.

3

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.

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