CVE-2026-6045: The Document Foundation LibreOffice heap buffer overflow in EMF+ import

CVE-2026-6045 · Severity: info · CVSS 5.4 · Published 2026-06-15

LibreOffice, a popular open-source office productivity suite, is vulnerable to a memory corruption issue when processing certain types of embedded graphics. An attacker could create a malicious document that, when opened by a user, causes the application to crash or potentially allows for unauthorized code execution. This could lead to a loss of data or a compromise of the user's workstation.

Technologies: The Document Foundation LibreOffice. Vendors: The Document Foundation.

Quick answers

Is CVE-2026-6045 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-6045 being exploited in the wild.
How severe is CVE-2026-6045?
Informational severity, with a CVSS score of 5.4, published 15 June 2026.
Which products and versions are affected?
The Document Foundation LibreOffice Versions prior to fix (specific fixed versions not listed in text for this CVE).
Is there a fix for CVE-2026-6045?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2026-6045 attacked?
It is attacked with local access, in a network appliance.
Am I affected by CVE-2026-6045?
Check whether you run The Document Foundation LibreOffice at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A heap buffer overflow exists in LibreOffice's EMF+ graphic import component. The vulnerability is caused by an integer overflow (CWE-190) when calculating the allocation size for gradient blend points. The application reads the number of blend points from a file and multiplies it to determine the buffer size; if this multiplication overflows, a small buffer is allocated. Subsequent data is then written into this undersized buffer, resulting in an out-of-bounds write (CWE-787). An attacker can exploit this by providing a specially crafted document containing a malicious EMF+ image. Fixed versions mitigate this by validating the blend-point count against the actual available data before performing the allocation.

Affected products

  • The Document Foundation LibreOffice Versions prior to fix (specific fixed versions not listed in text for this CVE)

Timeline

  • 2026-06-15: disclosed: CVE published to NVD dataset

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.