CVE-2026-6045
Deferred Deferred - Pending Action
Heap Buffer Overflow in LibreOffice EMF+ Import

Publication date: 2026-06-15

Last updated on: 2026-06-15

Assigner: Document Foundation, The

Description
LibreOffice can import EMF+ graphics, which may be embedded in documents. A heap buffer overflow existed when importing an EMF+ gradient brush. The number of gradient blend points was read from the file and used to compute an allocation size, but that multiplication could overflow, so a small buffer was allocated and then filled as if it were large, writing past its end. In fixed versions the blend-point count is checked against the data actually available before allocating.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-06-15
Last Modified
2026-06-15
Generated
2026-06-16
AI Q&A
2026-06-15
EPSS Evaluated
N/A
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
the_document_foundation libreoffice From 3.2.4 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-787 The product writes data past the end, or before the beginning, of the intended buffer.
CWE-190 The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability exists in LibreOffice when importing EMF+ graphics embedded in documents. Specifically, it involves a heap buffer overflow triggered by importing an EMF+ gradient brush. The software reads the number of gradient blend points from the file and uses this number to calculate the size of a memory allocation. However, this multiplication can overflow, causing the program to allocate a smaller buffer than needed. Subsequently, the program writes data beyond the allocated buffer's end, leading to a heap buffer overflow.

In fixed versions, the number of blend points is checked against the actual available data before allocating memory, preventing this overflow.

Impact Analysis

The heap buffer overflow caused by this vulnerability can lead to memory corruption when processing maliciously crafted EMF+ gradient brushes in documents. This may result in application crashes, denial of service, or potentially allow an attacker to execute arbitrary code with the privileges of the user running LibreOffice.

Mitigation Strategies

To mitigate this vulnerability, you should update LibreOffice to a fixed version where the blend-point count is properly checked before allocating memory.

Avoid opening untrusted documents that may contain malicious EMF+ graphics until the update is applied.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-6045. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart