CVE-2026-8357
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedLibreOffice 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.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceLibreOffice Calc has a heap buffer overflow vulnerability in its formula compilation process. When processing spreadsheets with very long formulas containing many opening tokens (like parentheses), the array allocated to track nesting depth is sized one element too small, causing a one-element out-of-bounds write. This can be triggered by opening a malicious spreadsheet file.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- Low
- Privileges
- None
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Confirm LibreOffice Calc installationCheck if LibreOffice is installed and identify the Calc component. On Linux: dpkg -l | grep -i libreoffice or which libreoffice. On Windows: Check Program Files for LibreOffice folder and look for scalc.exe. On macOS: Check /Applications for LibreOffice.app and look for Calc.app inside.Affected if LibreOffice with Calc component is installed and used to open spreadsheet files
-
Determine installed LibreOffice versionRun: libreoffice --version (Linux/macOS) or check file properties of soffice.exe/scalc.exe (Windows). Note the full version string (e.g., 7.x.x or 24.x.x).Affected if The installed version is within the affected range and has not received the fix for this vulnerability
-
Identify formula-heavy spreadsheetsReview recent or frequently opened spreadsheet files (.ods, .xlsx, .xls) for presence of cells containing very long formulas with many nested parentheses or opening tokens. Use Calc's formula editor (View > Formula Bar) or export a sample to inspect formula complexity.Affected if You regularly open spreadsheets from untrusted or unknown sources that may contain complex, lengthy formulas
-
Verify formula compilation is accessibleConfirm that Calc can open and compile formulas. The vulnerability triggers during formula compilation when loading a document. Opening any spreadsheet with formulas will exercise this code path.Affected if Calc is used to open spreadsheet files containing formulas with many opening/closing tokens
You are affected if you have LibreOffice Calc installed with a version that has not yet received the fix for the nesting depth array allocation flaw, and you open spreadsheet files containing very long formulas with many opening tokens.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scopedUsers should avoid opening untrusted spreadsheet files in LibreOffice until the fixed version is applied. Organizations should implement file screening for documents from external sources.
Latest stable LibreOffice release (newer than any version with the unpatched buffer overflow)
- 1. Determine your current LibreOffice Calc version by going to Help > About LibreOffice
- 2. Check if an update is available: On Windows, go to Help > Check for Updates; on macOS, go to LibreOffice > Check for Updates; on Linux, use your package manager (e.g., sudo apt update && sudo apt upgrade libreoffice-calc for Debian/Ubuntu)
- 3. If no automatic update is available, download the latest stable LibreOffice release from the official website: https://www.libreoffice.org/download/download/
- 4. Install the latest version, ensuring all components including Calc are updated
- 5. After updating, verify the version to confirm the fix is applied
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing12.0 h
- Review / QA4.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $7,616.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2026-8357 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2026-8357 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data