cve.bz

CVE-2026-8357 the document foundation libreoffice: Off-by-one Error

5.4 mediumEPSS 0.2%

Medium (5.4) in the document foundation libreoffice. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 4.0

5.4 medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P

CVSS 3.1

7.8 high
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
EPSS
0.2% (unchanged from 0.2% a week ago; 0.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 12th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-06-15. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-193 Off-by-one Error
CWE-787 Out-of-bounds Write
CWE-131 Incorrect Calculation of Buffer Size
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-8357 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-8357?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-8357?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-8357 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
The Document Foundation LibreOfficefrom 26.2 before < 26.2.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12libreoffice4:7.4.7-1+deb12u13DEBIAN-CVE-2026-8357 DLA-4633-1
Debian13libreoffice4:25.2.3-2+deb13u5DEBIAN-CVE-2026-8357 DSA-6346-1
Debian14libreoffice4:26.2.4.2-1DEBIAN-CVE-2026-8357
Ubuntu20.04:LTS, 25.10libreofficeno fix listedUBUNTU-CVE-2026-8357
Ubuntu22.04:LTSlibreoffice1:7.3.7-0ubuntu0.22.04.12UBUNTU-CVE-2026-8357 USN-8534-1
Ubuntu24.04:LTSlibreoffice4:24.2.7-0ubuntu0.24.04.6UBUNTU-CVE-2026-8357 USN-8534-1
Ubuntu26.04:LTSlibreoffice4:26.2.4.2-0ubuntu0.26.04.2UBUNTU-CVE-2026-8357 USN-8534-1
Red Hatenterprise_linux:8::appstreamautocorr-af, autocorr-bg, autocorr-ca and 186 more1:6.4.7.2-21.el8_10RHSA-2026:35839
Red Hatenterprise_linux:8::crblibreoffice-sdk, libreoffice-sdk-doc, libreoffice-debuginfo and 18 more1:6.4.7.2-21.el8_10RHSA-2026:35839
Red Hatenterprise_linux:9::appstreamautocorr-af, autocorr-bg, autocorr-ca and 193 more1:7.1.8.1-15.el9_8.2RHSA-2026:36832
Red Hatenterprise_linux:9::crblibreoffice-sdk, libreoffice-sdk-doc, libreoffice-debuginfo and 18 more1:7.1.8.1-15.el9_8.2RHSA-2026:36832
Red Hatrhel_aus:8.4::appstream, rhel_eus_long_life:8.4::appstreamautocorr-af, autocorr-bg, autocorr-ca and 186 more1:6.4.7.2-18.el8_4.2RHSA-2026:46387
Red Hatrhel_aus:8.6::appstream, rhel_eus_long_life:8.6::appstreamautocorr-af, autocorr-bg, autocorr-ca and 186 more1:6.4.7.2-18.el8_6.2RHSA-2026:43461
Red Hatrhel_e4s:8.8::appstream, rhel_tus:8.8::appstreamautocorr-af, autocorr-bg, autocorr-ca and 186 more1:6.4.7.2-18.el8_8.2RHSA-2026:43460
Red Hatrhel_e4s:9.2::appstreamautocorr-af, autocorr-bg, autocorr-ca and 193 more1:7.1.8.1-14.el9_2.2RHSA-2026:43423
Red Hatrhel_e4s:9.4::appstreamautocorr-af, autocorr-bg, autocorr-ca and 193 more1:7.1.8.1-15.el9_4.2RHSA-2026:43424
Red Hatrhel_els:7autocorr-af, autocorr-bg, autocorr-ca and 179 more1:5.3.6.1-28.el7_9RHSA-2026:46386
Red Hatrhel_eus:9.6::appstreamautocorr-af, autocorr-bg, autocorr-ca and 193 more1:7.1.8.1-15.el9_6.2RHSA-2026:43425
Red Hatrhel_eus:9.6::crblibreoffice-sdk, libreoffice-sdk-doc, libreoffice-debuginfo and 18 more1:7.1.8.1-15.el9_6.2RHSA-2026:43425
SUSELinux Enterprise Module for Package Hub 15 SP7, Linux Enterprise Workstation Extension 15 SP7libreoffice26.2.5.1-150500.20.37.1SUSE-SU-2026:3140-1
openSUSELeap 16.0libreoffice26.8.1.1-bp160.1.1openSUSE-SU-2026:22216-1
AlmaLinux8autocorr-af, autocorr-bg, autocorr-ca and 169 more1:6.4.7.2-21.el8_10.alma.1ALSA-2026:35839
AlmaLinux9autocorr-af, autocorr-bg, autocorr-ca and 176 more1:7.1.8.1-15.el9_8.2.alma.1ALSA-2026:36832
Rocky Linux8libreoffice1:6.4.7.2-21.el8_10RLSA-2026:35839
Rocky Linux9libreoffice1:7.1.8.1-15.el9_8.2RLSA-2026:36832

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Important.

Red Hat's statement

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. In severe cases, this could allow an attacker to run unauthorized, malicious code on the user's computer. Users should avoid opening untrusted spreadsheets

Red Hat's mitigation

Users should exercise caution when opening untrusted or suspicious spreadsheet documents.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7 Extended Lifecycle Supportlibreoffice-1:5.3.6.1-28.el7_9Fixed 2026-07-27RHSA-2026:46386
Red Hat Enterprise Linux 8libreoffice-1:6.4.7.2-21.el8_10Fixed 2026-07-06RHSA-2026:35839
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportlibreoffice-1:6.4.7.2-18.el8_4.2Fixed 2026-07-27RHSA-2026:46387
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Onlibreoffice-1:6.4.7.2-18.el8_4.2Fixed 2026-07-27RHSA-2026:46387
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportlibreoffice-1:6.4.7.2-18.el8_6.2Fixed 2026-07-22RHSA-2026:43461
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onlibreoffice-1:6.4.7.2-18.el8_6.2Fixed 2026-07-22RHSA-2026:43461
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicelibreoffice-1:6.4.7.2-18.el8_8.2Fixed 2026-07-22RHSA-2026:43460
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionslibreoffice-1:6.4.7.2-18.el8_8.2Fixed 2026-07-22RHSA-2026:43460
Red Hat Enterprise Linux 9libreoffice-1:7.1.8.1-15.el9_8.2Fixed 2026-07-08RHSA-2026:36832
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionslibreoffice-1:7.1.8.1-14.el9_2.2Fixed 2026-07-22RHSA-2026:43423
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionslibreoffice-1:7.1.8.1-15.el9_4.2Fixed 2026-07-22RHSA-2026:43424
Red Hat Enterprise Linux 9.6 Extended Update Supportlibreoffice-1:7.1.8.1-15.el9_6.2Fixed 2026-07-22RHSA-2026:43425
Red Hat Enterprise Linux 6libreofficeOut of support scope

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-8357.

Attack patterns (CAPEC)

  • CAPEC-47 Buffer Overflow via Parameter Expansion Likelihood: Medium · Severity: High
  • CAPEC-100 Overflow Buffers Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON