CVE-2026-8357
JSON

5.4medium

Heap buffer overflow in Calc formula compilation

Severity
5.4medium CVSS:4.0 by Document Fdn.
Exploit likelihood
0.22% (higher than 13% of CVEs; EPSS, by FIRST)
Published
Last changed
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

Product or packageVersionsReported by
The Document Foundation LibreOfficefrom 26.2 before < 26.2.4CVE List
libreofficeNot specified
Not affected: from 1:5.3.6.1-28.el7_9 before *, from 1:6.4.7.2-21.el8_10 before *, from 1:6.4.7.2-18.el8_4.2 before *, from 1:6.4.7.2-18.el8_6.2 before *, from 1:6.4.7.2-18.el8_8.2 before *, from 1:7.1.8.1-15.el9_8.2 before *
CVE List

All scores

Document Fdn.5.4medium CVSS:4.0CVSS: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
redhat-SADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Classification

CWE-131CWE-193CWE-787

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

LibreOffice Calc compila las fórmulas de celda al abrir una hoja de cálculo. Existía un desbordamiento de búfer de montón al compilar una fórmula muy larga compuesta por muchos tokens de apertura. El array que rastrea la profundidad de anidamiento fue asignado con un elemento demasiado pequeño para ese peor caso, por lo que dicha fórmula escribió un elemento más allá de su final. En versiones corregidas, el array se dimensiona para contener el anidamiento más grande posible.

References

https://www.libreoffice.org/about-us/security/advisories/cve-2026-8357
https://access.redhat.com/security/cve/CVE-2026-8357vdb-entry
https://bugzilla.redhat.com/show_bug.cgi?id=2488964issue-tracking
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-8357.json
https://access.redhat.com/errata/RHSA-2026:46386vendor-advisory
https://access.redhat.com/errata/RHSA-2026:35839vendor-advisory
https://access.redhat.com/errata/RHSA-2026:46387vendor-advisory
https://access.redhat.com/errata/RHSA-2026:43461vendor-advisory
https://access.redhat.com/errata/RHSA-2026:43460vendor-advisory
https://access.redhat.com/errata/RHSA-2026:43423vendor-advisory
https://access.redhat.com/errata/RHSA-2026:43424vendor-advisory
https://access.redhat.com/errata/RHSA-2026:43425vendor-advisory

Sources

SourceRecordLicence
CVE ListCVE-2026-8357 changed 2026-07-28CVE Terms of Use
NVDCVE-2026-8357 changed 2026-10-25Public domain