CVE-2026-18563: Out-of-bounds write in CFF font conversion during PDF export
LibreOffice supports fonts embedded in documents. When a document is exported to PDF, the fonts it uses are embedded in the PDF, and a font in CFF (Compact Font Format) is converted to another font format on the way. An out-of-bounds write existed when the charstring program of a crafted font was interpreted, because some indexes and ranges taken from the font were not checked against the size of the data they refer to. In fixed versions these indexes and ranges are checked, and a font that fails the checks is not converted.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users of LibreOffice who export a document containing an embedded crafted CFF font to PDF are exposed. The vulnerable font conversion occurs during PDF export, not merely from having the font present in a document.
What does an attacker need to do to trigger the flaw?
An attacker would need to provide a document with an embedded CFF font whose charstring program contains indexes or ranges that refer outside the relevant font data. The crafted font must then be processed during PDF export.
What can be done if updates cannot be applied immediately?
Avoid exporting untrusted documents to PDF when they may contain embedded fonts, particularly CFF fonts. Treat documents received from untrusted sources as potentially dangerous until they can be handled with a fixed LibreOffice version.
How do fixed versions handle malformed fonts?
Fixed versions validate the indexes and ranges used while interpreting the CFF font charstring program. A font that fails those checks is not converted during PDF export.