Code execution via formula nesting off-by-one
Published Jun 15, 2026 · Updated Jun 15, 2026
Heap buffer overflow in LibreOffice Calc 26.2 through 26.2.3 allows attackers to execute code when a crafted spreadsheet is opened. Calc's formula compiler allocates its nesting-depth array one element too small for the maximum number of opening tokens, causing a one-element out-of-bounds write. Exploitation requires a user to open the spreadsheet and can corrupt memory within the LibreOffice process.
Summary
What happened
Heap buffer overflow in LibreOffice Calc 26.2 through 26.2.3 allows attackers to execute code when a crafted spreadsheet is opened. Calc's formula compiler allocates its nesting-depth array one element too small for the maximum number of opening tokens, causing a one-element out-of-bounds write. Exploitation requires a user to open the spreadsheet and can corrupt memory within the LibreOffice process.
The record
- CVE
- CVE-2026-8357
- Published
- Jun 15, 2026
- Updated
- Jun 15, 2026
- Vendor
- The Document Foundation
- Product
- LibreOffice
- Classifications
- CWE-193, CWE-787, CWE-131, T1204.002
- Attack vector
- local
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 15, 2026CVE publishedPublication date reported by the CVE source.
- Jun 15, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=26.2 << 26.2.4
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo