# CVE-2026-8357: Heap buffer overflow in Calc formula compilation

- Severity: Medium 5.4 (CVSS:4.0, scored by Document Fdn.) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2026-06-15T16:23:37.518Z
- Modified: 2026-10-25T23:10:00.167Z
- Weaknesses: CWE-131, CWE-193, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- The Document Foundation LibreOffice: from 26.2 before < 26.2.4
- libreoffice: no versions given (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 *; from 1:7.1.8.1-14.el9_2.2 before *; from 1:7.1.8.1-15.el9_4.2 before *; from 1:7.1.8.1-15.el9_6.2 before *)

## Every score

- Document Fdn.: 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`
- redhat-SADP: 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`

## References

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

## Sources

- CVE List: [CVE-2026-8357](https://www.cve.org/CVERecord?id=CVE-2026-8357), CVE Terms of Use, modified 2026-07-28
- NVD: [CVE-2026-8357](https://nvd.nist.gov/vuln/detail/CVE-2026-8357), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-8357 · Whole record: https://cve.day/CVE-2026-8357.json · Rebuilt by cve.day 2026-11-25T22:59:24.647Z
