Medium severity · published Jun 15, 2026
CVE-2026-6045
Heap buffer overflow in EMF+ gradient brush import
5.4
CVSS
0.2%
EPSS
No
On KEV
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.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 11% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LI
LibreOffice · The Document Foundation
25.8 before < 25.8.7; 26.2 before < 26.2.3 · source: vendor
In the news
VulnerabilityHigh
ZDI-26-781: LibreOffice EMF+ Brush Integer Overflow Remote Code Execution Vulnerability
This vulnerability allows remote attackers to execute arbitrary code on affected installations of LibreOffice. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file. The ZDI has assigned a CVSS rating of 7.8. The following CVEs are assigned: CVE-2026-6045.
Oct 16, 2026·Zero Day Initiative
Affected product
LI
LibreOffice
The Document Foundation
More from LibreOffice
8.5
CVE-2026-63277
RCE via calcext:data-mappings, sql provider and jdbc connector
7.8
CVE-2026-8357
Heap buffer overflow in Calc formula compilation
7.8
CVE-2026-4430
Heap Buffer Overflow in AgileEngine
7.3
CVE-2026-6040
Heap use-after-free in ODF number-format blank-width parsing
6.8
CVE-2026-63266
Arbitrary file write via calcext:data-mappings, sql provider and Firebird backup functionality