Skip to content
OpenAdvisories
Medium · 5.4 CVE-2026-8357 EUVD-2026-36739GHSA-j779-pcc6-8c5f

Heap buffer overflow in Calc formula compilation

Published Jun 15, 2026 · Updated Jul 28, 2026 · Assigned by Document Fdn.

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.

Affected products

VendorProductAffectedFixed
The Document Foundation LibreOffice 26.2 – < < 26.2.4 < 26.2.4

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libreoffice 4:26.2.4.2-1 —
Debian 13 libreoffice 4:25.2.3-2+deb13u5 —
Debian 12 libreoffice 4:7.4.7-1+deb12u13 —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS libreoffice 4:26.2.4.2-0ubuntu0.26.04.2 USN-8534-1
Ubuntu 25.10 libreoffice No fix yet —
Ubuntu 24.04 LTS libreoffice 4:24.2.7-0ubuntu0.24.04.6 USN-8534-1
Ubuntu 22.04 LTS libreoffice 1:7.3.7-0ubuntu0.22.04.12 USN-8534-1
Ubuntu 20.04 LTS libreoffice No fix yet —
ReleasePackageFixed inAdvisory
RHEL 9 autocorr-af +178 1:7.1.8.1-15.el9_8.2 RHSA-2026:36832
RHEL 8 autocorr-af +171 1:6.4.7.2-21.el8_10 RHSA-2026:35839
Show 10 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 9.6 EUS autocorr-af +178 1:7.1.8.1-15.el9_6.2 RHSA-2026:43425
RHEL 9.4 E4S autocorr-af +176 1:7.1.8.1-15.el9_4.2 RHSA-2026:43424
RHEL 9.2 E4S autocorr-af +176 1:7.1.8.1-14.el9_2.2 RHSA-2026:43423
RHEL 8.8 TUS autocorr-af +169 1:6.4.7.2-18.el8_8.2 RHSA-2026:43460
RHEL 8.8 E4S autocorr-af +169 1:6.4.7.2-18.el8_8.2 RHSA-2026:43460
RHEL 8.6 EUS Long Life autocorr-af +169 1:6.4.7.2-18.el8_6.2 RHSA-2026:43461
RHEL 8.6 AUS autocorr-af +169 1:6.4.7.2-18.el8_6.2 RHSA-2026:43461
RHEL 8.4 EUS Long Life autocorr-af +169 1:6.4.7.2-18.el8_4.2 RHSA-2026:46387
RHEL 8.4 AUS autocorr-af +169 1:6.4.7.2-18.el8_4.2 RHSA-2026:46387
RHEL 7 ELS autocorr-af +180 1:5.3.6.1-28.el7_9 RHSA-2026:46386

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 9 autocorr-af +178 1:7.1.8.1-15.el9_8.2.alma.1 ALSA-2026:36832
AlmaLinux 8 autocorr-af +171 1:6.4.7.2-21.el8_10.alma.1 ALSA-2026:35839

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 9 libreoffice 1:7.1.8.1-15.el9_8.2 RLSA-2026:36832
Rocky Linux 8 libreoffice 1:6.4.7.2-21.el8_10 RLSA-2026:35839
ReleasePackageFixed inAdvisory
SLES 15 SP7 libreoffice 26.2.5.1-150500.20.37.1 SUSE-SU-2026:3140-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 libreoffice 26.8.1.1-bp160.1.1 openSUSE-SU-2026:22216-1

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 9 autocorr-af +178 1:7.1.8.1-15.0.1.el9_8.2 ELSA-2026-36832
Oracle Linux 8 autocorr-af +171 1:6.4.7.2-21.0.1.el8_10 ELSA-2026-35839
Oracle Linux 7 autocorr-af +180 1:5.3.6.1-26.0.5.el7_9 ELSA-2026-46386

Advisories 20

References