CVE-2026-97999: Heap buffer overflow in embedded database migration
LibreOffice Base documents can hold an embedded HSQLDB database. When the experimental features option is enabled, LibreOffice offers to migrate such a database to the embedded Firebird engine when the document is opened. A heap buffer overflow existed when binary values were copied during the migration, because a value could be longer than the space set aside for its column. In fixed versions that space is enlarged whenever a value is longer than its column.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users who open LibreOffice Base documents containing an embedded HSQLDB database are exposed when the experimental features option is enabled and the database is migrated to the embedded Firebird engine. The described migration path is not offered unless experimental features are enabled.
What must an attacker-controlled document contain to trigger the overflow?
The document must contain an embedded HSQLDB database with binary values that are longer than the space allocated for their columns. The overflow occurs while those binary values are copied during migration to Firebird.
What can be done if an update cannot be applied immediately?
Disable the experimental features option and avoid migrating embedded HSQLDB databases to the Firebird engine when opening LibreOffice Base documents.