Skip to main content

LibreOffice CVE-2026-6045

| EUVDEUVD-2026-36736 MEDIUM
Out-of-bounds Write (CWE-787)
2026-06-15 Document Fdn. GHSA-mc63-87jp-8648
5.4
CVSS 4.0 · Vendor: Document Fdn.
Share

Severity by source

Vendor (Document Fdn.) PRIMARY
5.4 MEDIUM
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
6.6 MEDIUM

Document-based delivery requires local file open and user action (AV:L, UI:R); heap overflow yields reliable crash (A:H) with limited memory exposure and write primitives (C:L/I:L).

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
SUSE
6.6 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
Red Hat
6.6 MEDIUM
qualitative

Primary rating from Vendor (Document Fdn.).

CVSS VectorVendor: Document Fdn.

CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector
Local
Attack Complexity
Low
Privileges Required
None
User Interaction
P
Scope
X

Lifecycle Timeline

3
Patch available
Jun 15, 2026 - 19:01 EUVD
Analysis Generated
Jun 15, 2026 - 18:27 vuln.today
CVE Published
Jun 15, 2026 - 16:22 cve.org
MEDIUM 5.4

DescriptionCVE.org

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.

AnalysisAI

Heap buffer overflow in LibreOffice's EMF+ graphics importer enables memory corruption when a user opens a specially crafted document containing a malicious gradient brush. The root cause is an integer overflow in the multiplication used to compute a heap allocation size from an attacker-controlled gradient blend point count - resulting in an undersized buffer that is subsequently written as if it were full-sized. A proof of concept exists (CVSS 4.0 E:P supplemental metric), no confirmed active exploitation is recorded, and impact spans process crash to potential arbitrary code execution within the LibreOffice session.

Technical ContextAI

Enhanced Metafile Plus (EMF+) is a Microsoft graphics format embeddable within documents LibreOffice imports, including ODT, DOCX, and presentation formats. During EMF+ gradient brush parsing, LibreOffice reads a blend point count from the file and multiplies it by the element size to compute a heap allocation. When that multiplication overflows - producing a wrap-around value smaller than the actual data - LibreOffice allocates a small buffer but subsequently fills it as though it were large, writing past the end of the allocation. This is a textbook CWE-787 (Out-of-bounds Write) rooted in an unchecked integer multiplication, a subclass of CWE-190 (Integer Overflow). The fix validates the blend point count against the quantity of data actually present in the file before allocating, preventing the overflow condition. The affected CPE cpe:2.3:a:the_document_foundation:libreoffice:*:*:*:*:*:*:*:* covers all LibreOffice versions from The Document Foundation prior to the patch.

RemediationAI

Upgrade LibreOffice to the fixed version identified in the vendor advisory at https://www.libreoffice.org/about-us/security/advisories/cve-2026-6045; the fix introduces a bounds check that validates the gradient blend point count against the data actually available in the EMF+ stream before computing the allocation size. An exact patched version number was not included in the data provided for this analysis and must be confirmed directly from the advisory before deployment. Where immediate patching is not feasible, configure email gateway and web proxy policies to quarantine or strip documents embedding OLE or EMF content from untrusted or external senders - note that this may disrupt legitimate document workflows involving graphics-rich files. Opening untrusted documents inside a disposable virtual machine or a sandboxed environment (such as LibreOffice Online in an isolated container) is the most actionable compensating control, limiting blast radius to the sandbox. There is no documented LibreOffice configuration switch to disable EMF+ rendering in isolation, so disabling the feature at the application level is not a readily available mitigation.

CVE-2019-9851 CRITICAL POC
9.8 Aug 15

LibreOffice is typically bundled with LibreLogo, a programmable turtle vector graphics script, which can execute arbitra

CVE-2015-5212 MEDIUM
6.8 Nov 10

Integer underflow in LibreOffice before 4.4.5 and Apache OpenOffice before 4.1.2, when the configuration setting "Load p

CVE-2015-5214 MEDIUM
6.8 Nov 10

LibreOffice before 4.4.6 and 5.x before 5.0.1 and Apache OpenOffice before 4.1.2 allows remote attackers to cause a deni

CVE-2018-6871 CRITICAL POC
9.8 Feb 09

LibreOffice before 5.4.5 and 6.x before 6.0.1 allows remote attackers to read arbitrary files via =WEBSERVICE calls in a

CVE-2021-25631 HIGH POC
8.8 May 03

In the LibreOffice 7-1 series in versions prior to 7.1.2, and in the 7-0 series in versions prior to 7.0.5, the denylist

CVE-2012-2334 MEDIUM POC
6.8 Jun 19

Integer overflow in filter/source/msfilter/msdffimp.cxx in OpenOffice.org (OOo) 3.3, 3.4 Beta, and possibly earlier, and

CVE-2018-10583 HIGH POC
7.5 May 01

An information disclosure vulnerability occurs when LibreOffice 6.0.3 and Apache OpenOffice Writer 4.1.5 automatically p

CVE-2014-3524 CRITICAL
9.3 Aug 26

Apache OpenOffice before 4.1.1 allows remote attackers to execute arbitrary commands and possibly have other unspecified

CVE-2015-5213 MEDIUM
6.8 Nov 10

Integer overflow in LibreOffice before 4.4.5 and Apache OpenOffice before 4.1.2 allows remote attackers to cause a denia

CVE-2014-0247 CRITICAL
10.0 Jul 03

LibreOffice 4.2.4 executes unspecified VBA macros automatically, which has unspecified impact and attack vectors, possib

CVE-2012-0037 MEDIUM POC
6.5 Jun 17

Redland Raptor (aka libraptor) before 2.0.7, as used by OpenOffice 3.3 and 3.4 Beta, LibreOffice before 3.4.6 and 3.5.x

CVE-2017-7856 CRITICAL
9.8 Apr 14

LibreOffice before 2017-03-11 has an out-of-bounds write caused by a heap-based buffer overflow in the SVMConverter::Imp

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP7 Affected
SUSE Linux Enterprise Server 15 SP7 Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP7 Affected
SUSE Linux Enterprise Workstation Extension 15 SP7 Affected

Share

CVE-2026-6045 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy