Cloudanix VulnDB

CVE-2026-8357

High · 7.8

CVSS

7.8

EPSS

0.2%

Published

Jun 15, 2026

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

Opening a specially made spreadsheet can cause the spreadsheet program to crash or allow unwanted code to run because a calculation buffer was sized too small.

Exploitation
Requires User Interaction
Attacker needs
User Interaction
Complexity
Low
Impact
Denial Of Service
Component
Application
Class
Buffer Overflow
Remediation
Upgrade
Effort
Medium
Patch risk
Low

What it actually does

Heap buffer overflow during formula compilation in Calc when a formula exceeds the allocated size of the nesting-depth tracking array by one element.

Why it matters to the business

Potential application crashes or limited code execution when users open specially crafted spreadsheets, disrupting document workflows and requiring emergency patching.

How an attack unfolds

An attacker crafts a spreadsheet containing an extremely long formula composed of many opening tokens that overflows the nesting array, then delivers the file to a target who opens it in LibreOffice Calc, triggering the out-of-bounds write.

How to fix it

Upgrade LibreOffice to a version that correctly sizes the nesting-depth array for the maximum possible formula depth; apply all Calc-related security updates promptly.

How to confirm the fix worked

Confirm the installed LibreOffice version contains the corrected array allocation logic; test by attempting to open a spreadsheet with a formula that previously triggered the overflow.

Typical attack path

  1. Craft malicious spreadsheet with oversized formula using many opening tokens
  2. Deliver file via email, download link, or shared document
  3. Victim opens file in vulnerable LibreOffice Calc
  4. Formula compilation triggers one-element overflow on the heap
  5. Attacker attempts to leverage the write for code execution or denial of service

How to detect it

Review application crash logs and audit trails for unexpected LibreOffice Calc terminations immediately after opening spreadsheets; no network or file-based IOCs are available for this local flaw.

What your security team should do

  • Prioritize patching LibreOffice Calc on all endpoints that process untrusted spreadsheets
  • Restrict opening of documents from untrusted sources until updates are deployed
  • Monitor vendor advisories for the exact fixed release versions

The record

LibreOffice Calc compiles cell formulas when opening a spreadsheet. A heap buffer overflow existed when compiling a very long formula made up of many opening tokens. The array that tracks nesting depth was allocated one element too small for that worst case, so such a formula wrote one element past its end. In fixed versions the array is sized to hold the largest possible nesting.

Affected packages

Ecosystem Package Introduced Fixed

Related vulnerabilities