All reports
High

libreoffice: LibreOffice Calc: Arbitrary code execution via heap buffer overflow in formula compilation

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-8357

Probability of exploitation in the next 30 days: 0.22%

FIRST EPSS · 2026-11-21

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.

A vulnerability has been identified in LibreOffice Calc. An application crash may occur if a user opens a malicious spreadsheet that contains excessively long formulas. Successful exploitation of this vulnerability could result in a denial of service or potentially lead to arbitrary code execution.