What’s Vulnerable › Vulnerabilities

CVE-2026-8357: Heap buffer overflow in Calc formula compilation

Description

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 products

How to fix

Upgrade to a fixed version: The Document Foundation LibreOffice < 26.2.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-8357 or the next vulnerability affects your stack