Read the docs

Heap buffer overflow in LibreOffice embedded database migration

Priority MEDIUM 40CWE-787Published · Updated

Key facts

Attack vector
Local
Privileges required
None
User interaction
Passive
Attack complexity
Low
Attack requirements
None
Impact type
—
Confidentiality · integrity · availability
Low · Low · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA.

Summary

LibreOffice Base documents can hold an embedded HSQLDB database. When the experimental features option is enabled, LibreOffice offers to migrate that database to the embedded Firebird engine when the document is opened. A heap buffer overflow occurs when binary values are copied during the migration, because a value can be longer than the space reserved for its column. The issue is rated 5.4 (MEDIUM) under CVSS 4.0.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

Description from the CNA

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.

Why it matters now

Fix Fixed LibreOffice (The Document Foundation): < 26.2.7, < 26.8.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
The Document FoundationLibreOffice26.2 to before < 26.2.7; 26.8 to before < 26.8.2< 26.2.7, < 26.8.2Patch availableCNA
  • LibreOffice VendorThe Document Foundation Affected 26.2 to before < 26.2.7; 26.8 to before < 26.8.2 Fixed in < 26.2.7, < 26.8.2 Patch available CNA

Remediation

Upgrade to LibreOffice 26.2.7 or later on the 26.2 line, or to 26.8.2 or later on the 26.8 line. The fixed versions enlarge a column's space whenever a value is longer than the column.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

  • Fix · CNA LibreOffice (The Document Foundation) Fixed in < 26.2.7, < 26.8.2

Fixed in the same release

Records fixed by the same vendor advisory or release, as the CNA lists them.

  • Release ·

    The Document Foundation LibreOffice < 26.2.7, < 26.8.2

    19 records Highest priority Priority MEDIUM 10 MEDIUM, 9 LOW

    Other records, highest priority first

    • TI-2026-92219 LibreOffice Writer runs HTML event macros without security checkPriority MEDIUM 52
    • TI-2026-92206 Base document events run macros without the macro security checkPriority MEDIUM 52
    • TI-2026-92224 Local file disclosure through embedded media in LibreOfficePriority MEDIUM 45

Timeline

  1. 2026-11-16 Threatist record created from CVE-2026-97999
  2. 2026-11-16 Alias added: GHSA-frjq-2gwq-5hrp

References

  • TI-2019-07233 LibreLogo global-event script execution CVSS 3.1CRITICAL 9.8
  • TI-2018-12068 Path traversal in [UNKNOWN] libreoffice CVSS 3.0CRITICAL 9.8
  • TI-2018-07474 An information disclosure vulnerability occurs when LibreOffice 6.0.3 and Apache… CVSS 3.0HIGH 7.5
  • TI-2019-07230 Code injection in Document Foundation LibreOffice CVSS 3.1CRITICAL 9.8
  • TI-2018-05018 LibreOffice before 5.4.5 and 6.x before 6.0.1 allows remote attackers to read arbitrary… CVSS 3.0CRITICAL 9.8
  • TI-2023-01118 Arbitrary file write in libreoffice CVSS 3.1MEDIUM 5.5
See all 117 →

Sources