CVE-2026-8357
High · 7.8CVSS
7.8
EPSS
0.2%
Published
Jun 15, 2026
CISA due date
—
Cloudanix analysis
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
- Craft malicious spreadsheet with oversized formula using many opening tokens
- Deliver file via email, download link, or shared document
- Victim opens file in vulnerable LibreOffice Calc
- Formula compilation triggers one-element overflow on the heap
- 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
- CVE-2026-120061 The psqlODBC parser for ODBC escape sequences in application SQL text writes the argument… CWE-193
- CVE-2026-116735 libpff through 20260926 contains an off-by-one bounds check in… CWE-193
- CVE-2026-115916 vLLM is an inference and serving engine for large language models. CWE-193
- CVE-2026-114460 A flaw was found in mod_qos. CWE-193
- CVE-2026-12727 IBM MQ could allow an authenticated attacker to cause potential process instability due… CWE-193
- CVE-2026-42618 In NTFS-3G before 2026.7.7, a heap buffer overflow exists in ntfs_decompress() in… CWE-193
- CVE-2026-106584 In ssh-keygen in OpenSSH before 10.6, certificates could have incorrect expiration times… CWE-193
- CVE-2026-104033 A flaw was found in SSSD. CWE-193