Description
LibreOffice can import WMF graphics, which may be embedded in documents. A heap buffer overflow existed when importing a text record that carries its own character advance widths. The count of advance values and the length of the text were read separately from the file and were not required to agree, so drawing the text walked the advance array by character position and ran past its end when the array was the shorter of the two. In fixed versions an advance array shorter than its text is ignored.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| The Document Foundation | LibreOffice | 26.2 – < < 26.2.5 | < 26.2.5 |
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libreoffice | 4:26.2.5.2-1 | — |
| Debian 13 | libreoffice | 4:25.2.3-2+deb13u7 | — |
| Debian 12 | libreoffice | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.04 LTS | libreoffice | 4:26.2.6.3-0ubuntu0.26.04.2 | USN-8868-1 |
| Ubuntu 24.04 LTS | libreoffice | 4:24.2.7-0ubuntu0.24.04.7 | USN-8868-1 |
| Ubuntu 22.04 LTS | libreoffice | 1:7.3.7-0ubuntu0.22.04.13 | USN-8868-1 |
| Ubuntu 20.04 LTS | libreoffice | No fix yet | — |
Advisories 2
- WID-SEC-2026-3521 LibreOffice: Mehrere Schwachstellen BSI CERT-Bund (WID) · Nov 11, 2026
- USN-8868-1 libreoffice vulnerabilities Ubuntu Security Notices (USN) · Oct 5, 2026