CVE-2026-8357: Heap Buffer Overflow in LibreOffice Calc Formula Compilation
CVE-2026-8357 is an off-by-one heap buffer overflow in LibreOffice Calc's formula compilation. Calc compiles cell formulas when opening a spreadsheet. A very long formula containing many opening tokens can exhaust a nesting-depth tracking array that is allocated one element too small for the worst case, causing a one-element out-of-bounds write. The vulnerability affects the LibreOffice 26.2 release series before 26.2.4 and can cause application crashes or potentially arbitrary code execution.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
A crafted spreadsheet can corrupt heap memory during formula compilation, causing denial of service through an application crash and potentially arbitrary code execution. Successful code execution could compromise data accessible to the affected LibreOffice process and modify data with that process's privileges.
Mitigation
If you can’t patch tonight, do this now.
Until patched, avoid opening untrusted or potentially malformed spreadsheets in LibreOffice Calc. No vulnerability-specific workaround is documented.
Remediation
Patch, then assume compromise.
Upgrade LibreOffice 26.2 installations to version 26.2.4 or later. The fix sizes the nesting-depth tracking array to accommodate the largest possible nesting depth. For distribution-managed installations, apply the vendor's security packages rather than relying solely on upstream version comparisons. Debian trixie provides the fix in libreoffice version 4:25.2.3-2+deb13u5 or later; affected Rocky Linux 8 installations should apply the updates specified in CIQ advisory crlsa-2026_35839.
Exploits
No public exploits tracked yet. Mallory keeps watching.
References
Frequently asked questions
- Is CVE-2026-8357 exploited in the wild?
- As of Nov 23, 2026, Mallory has no reports of CVE-2026-8357 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-8357?
- As of Nov 23, 2026, Mallory has found no public exploit for CVE-2026-8357.
- Is there a patch for CVE-2026-8357?
- Upgrade LibreOffice 26.2 installations to version 26.2.4 or later. The fix sizes the nesting-depth tracking array to accommodate the largest possible nesting depth.
- How severe is CVE-2026-8357?
- CVE-2026-8357 has a CVSS v4 score of 5.4 (Medium) and an EPSS score of 0.23% (8th percentile) as of Nov 23, 2026.
Recent activity
7 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.