LibreOffice: Off-by-one Error
CVE-2026-8357 is a high-severity off-by-one error vulnerability in LibreOffice from The Document Foundation, with a CVSS 3.1 base score of 7.8 out of 10. It can be exploited with local access to the system by an unauthenticated attacker, but only if a user takes part, for example by opening a link or file. The record lists version < 26.2.4 as the first without the flaw, so updating LibreOffice to that release or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 0.22% chance of exploitation within 30 days, which is low compared with other CVEs.
High severity with no evidence of exploitation so far.
What to do
- Update LibreOffice to < 26.2.4 or a later version.
- Read the advisory on libreoffice.org for workarounds and exact fixed builds.
- Because the attack needs a user to take part, warn users about unexpected links and files related to this product until it is patched.
Affected products and versions
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- LocalThe attacker needs local access or must trick a user into running something.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- RequiredA user must take an action such as opening a file or link.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H. Scored by CNA.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 4.0 | 5.4 | Medium | CNA (documentfoundation.org) |
| CVSS 3.1 | 7.8 | High | CNA |
Official 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.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Off-by-one Error
A product calculates or uses an incorrect maximum or minimum value that is 1 more, or 1 less, than the correct value.
How developers prevent this class of flaw
- When copying character arrays or using character manipulation methods, the correct size parameter must be used to account for the null terminator that needs to be added at the end of the array. Some examples of functions susceptible to this weakness in C include strcpy(), strncpy(), strcat(), strncat(), printf(), sprintf(), scanf() and sscanf().
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: partial).
- Record last changed materially (score, affected products, status or references).
References
Other references
- access.redhat.com/errata/RHSA-2026:35839
- access.redhat.com/errata/RHSA-2026:36832
- access.redhat.com/errata/RHSA-2026:43423
- access.redhat.com/errata/RHSA-2026:43424
- access.redhat.com/errata/RHSA-2026:43425
- access.redhat.com/errata/RHSA-2026:43460
- access.redhat.com/errata/RHSA-2026:43461
- access.redhat.com/errata/RHSA-2026:46386
- access.redhat.com/errata/RHSA-2026:46387
- access.redhat.com/security/cve/CVE-2026-8357
- bugzilla.redhat.com/show_bug.cgi?id=2488964
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-8357.json
Other vulnerabilities in LibreOffice
- 8.5 High severity
- 7.3 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
- 7.8 High severity
Recent Off-by-one Error vulnerabilities
- 8.6 High severity
- 7.8 High severity
- 8.6 High severity
- 7.5 High severity
- 7.1 High severity
- 8.1 High severity
Spotted an error? Tell us.