CVE-2026-6045: Heap buffer overflow in EMF+ gradient brush import
Last updated 4 July 2026
Other sources
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.
— MITRE
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/libreofficeto a version that resolves this vulnerability.Fixed in 4:7.4.7-1+deb12u14Fixed in 4:7.4.7-1+deb12u13Fixed in 4:25.2.3-2+deb13u6Fixed in 4:25.2.3-2+deb13u5Fixed in 4:26.2.4.2-2 - Upgrade
Upgrade
ubuntu/libreofficeto a version that resolves this vulnerability.Fixed in 1:7.3.7-0ubuntu0.22.04.12 - Upgrade
Upgrade
ubuntu/libreofficeto a version that resolves this vulnerability.Fixed in 4:24.2.7-0ubuntu0.24.04.6 - Upgrade
Upgrade
ubuntu/libreofficeto a version that resolves this vulnerability.Fixed in 4:26.2.4.2-0ubuntu0.26.04.2
Event History
Frequently Asked Questions
What is the severity of CVE-2026-6045?
CVE-2026-6045 has a medium severity rating of 5.4.
How do I fix CVE-2026-6045?
To fix CVE-2026-6045, update LibreOffice to the latest version that addresses this vulnerability.
What type of vulnerability is CVE-2026-6045?
CVE-2026-6045 is classified as a heap buffer overflow vulnerability.
What software is affected by CVE-2026-6045?
CVE-2026-6045 affects The Document Foundation's LibreOffice.
What is the impact of CVE-2026-6045?
CVE-2026-6045 can lead to potential exploitation through crafted EMF+ graphics in documents.