CVE-2026-6045 Heap buffer overflow in EMF+ gradient brush import
An integer overflow in LibreOffice's EMF+ gradient brush import allows heap buffer overflows, potentially leading to code execution or crashes when opening malicious documents.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-6045?
CVE-2026-6045 is a medium-severity vulnerability in The Document Foundation LibreOffice, published on 15 Jun 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Official 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.
Which versions are affected by CVE-2026-6045?
How do I fix CVE-2026-6045?
Apply the vendor's patch.
Is CVE-2026-6045 being exploited?
There is no known exploitation of CVE-2026-6045 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-6045, GHSA-mc63-87jp-8648, UBUNTU-CVE-2026-6045.