CVE-2026-18566: Out-of-bounds read in EMF, EMF+ and WMF image import
LibreOffice can import EMF, EMF+ and WMF images, which may be embedded in documents. Several out-of-bounds reads existed in the readers for these formats, because sizes, counts and offsets taken from a crafted image were not checked against the data the image actually holds. In fixed versions these values are checked against the size of each record and the data that remains, and a record that fails the checks is not used.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Users who open documents containing embedded EMF, EMF+, or WMF images are exposed. The crafted image may be part of a document rather than supplied as a standalone image file.
What does an attacker need to exploit it?
An attacker needs to provide a crafted EMF, EMF+, or WMF image with malformed sizes, counts, or offsets that do not match the image data. Exploitation requires LibreOffice to import or process that image.
How can I reduce exposure if I cannot update immediately?
Avoid opening untrusted documents or image files that may contain EMF, EMF+, or WMF content. Treat documents from unknown or untrusted sources as potentially carrying malformed embedded images.
How do fixed versions handle malformed image records?
Fixed versions validate sizes, counts, and offsets against each record's size and the remaining available data. Records that fail those checks are not used.