---
id: "CVE-2026-97999"
page: "https://infrastack.ai/live/CVE-2026-97999"
kind: "vulnerability"
aliases: ["CVE-2026-97999"]
title: "LibreOffice Base: heap overflow when migrating embedded HSQLDB databases"
severity: "medium"
cvss: 5.4
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "LibreOffice", "fixed": [], "affected": "", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["desktop", "documents", "libreoffice", "package"]
not_affected_if: ["default-config", "no-experimental-features"]
published_at: "2026-11-16T17:17:55+00:00"
first_seen_at: "2026-11-16T17:37:59+00:00"
updated_at: "2026-11-16T17:39:06+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-97999", "first_seen_at": "2026-11-16T17:37:59+00:00"}]
exploit_sources: []
---

# LibreOffice Base: heap overflow when migrating embedded HSQLDB databases

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

When experimental features are enabled, opening a LibreOffice Base document with an embedded HSQLDB database can prompt a migration to Firebird, and binary values longer than their column overflow a heap buffer during the copy. The overflow can corrupt memory in the LibreOffice process, which an attacker can use to crash it or possibly run code.

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

## Affected

- vendor:LibreOffice affected range not listed fixed no fixed version listed

## Fix

In fixed versions the buffer is enlarged whenever a value is longer than its column; the fixed version numbers are not stated in the sources.

## Timeline

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

## From the sources

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.

---

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