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 package | Versions | Reported by |
|---|---|---|
| The Document Foundation LibreOffice | from 26.2 before < 26.2.4 | CVE List |
| libreoffice | Not 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.0 | 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 | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H |
Classification
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
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-8357 changed 2026-07-28 | CVE Terms of Use |
| NVD | CVE-2026-8357 changed 2026-10-25 | Public domain |