---
id: "CVE-2026-104692"
page: "https://infrastack.ai/live/CVE-2026-104692"
kind: "vulnerability"
aliases: ["CVE-2026-104692"]
title: "LibreOffice: crafted documents can run arbitrary Java code via HSQLDB"
severity: "high"
cvss: 8.5
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["desktop", "document-processing", "libreoffice", "package"]
not_affected_if: ["unknown"]
published_at: "2026-11-16T17:17:27+00:00"
first_seen_at: "2026-11-16T17:37:55+00:00"
updated_at: "2026-11-16T17:38:42+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-104692", "first_seen_at": "2026-11-16T17:37:55+00:00"}]
exploit_sources: []
---

# LibreOffice: crafted documents can run arbitrary Java code via HSQLDB

Link for people: https://infrastack.ai/live/CVE-2026-104692 (this .md is for agents)

LibreOffice bundles the HSQLDB database engine, and when it was reached through the generic JDBC driver, the restriction on which Java classes SQL may call was not enforced. A crafted document can therefore make SQL execute any Java method, which runs code on the machine opening the document.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed LibreOffice version via Help > About LibreOffice or `soffice --version`, and compare it with the fixed versions below.

## Fix

- LibreOffice: fixed versions are not stated in the sources available; unknown
- In fixed versions SQL can call only the built-in HSQLDB functions, whichever way the database is reached.

## Timeline

- 2026-11-16T17:37:55+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-104692

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
