CWE-193Weakness · CWE-193

CVE-2026-8357

HIGH · 7.8 CVSS v3.1 Published 2026-06-15
Mitigation only
No fix yet — a mitigation exists. There is no fixed release. A documented workaround reduces exposure in the meantime.
See remediation →
81/100
Remediation priority · High
No privileges

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 · unedited
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.

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 confidence

LibreOffice 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.

MitigationUsers should avoid opening untrusted spreadsheet files in LibreOffice until the fixed version is applied. Organizations should implement file screening for documents from external sources.

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 checks

Work through these to decide whether this CVE applies to you.

  1. Confirm LibreOffice Calc installation
    Check 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
  2. Determine installed LibreOffice version
    Run: 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
  3. Identify formula-heavy spreadsheets
    Review 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
  4. Verify formula compilation is accessible
    Confirm 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.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

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 · scoped
Mitigation available No clean upgrade yet — mitigate in the meantime
Mitigation

Users should avoid opening untrusted spreadsheet files in LibreOffice until the fixed version is applied. Organizations should implement file screening for documents from external sources.

Recommended fix Moderate confidence

Latest stable LibreOffice release (newer than any version with the unpatched buffer overflow)

  1. 1. Determine your current LibreOffice Calc version by going to Help > About LibreOffice
  2. 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. 3. If no automatic update is available, download the latest stable LibreOffice release from the official website: https://www.libreoffice.org/download/download/
  4. 4. Install the latest version, ensuring all components including Calc are updated
  5. 5. After updating, verify the version to confirm the fix is applied
Caveat Minor: Interface changes possible between major version jumps; always review release notes

Generated from the published advisory — verify against the referenced sources before acting.

Have this fixed Scoped from the published advisory
  • Consultation4.0 h
  • Implementation8.0 h
  • Testing12.0 h
  • Review / QA4.0 h
28.0 hours of engineering $4,760
Get help mitigating

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 locally
dbcve dependency scanner

Check 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 sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2026-8357 in production — separate from our analysis above.

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.

What this is

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.

What belongs here
  • 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