# CVE-2026-6045: Heap buffer overflow in EMF+ gradient brush import

- Severity: Medium 5.4 (CVSS:4.0, scored by 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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-02)
- Published: 2026-06-15T16:22:16.574Z
- Modified: 2026-10-25T23:10:00.167Z
- Weaknesses: CWE-190, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Document Fdn.

## 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.

(As written by CVE List.)

## Affected

- The Document Foundation LibreOffice: from 25.8 before < 25.8.7; from 26.2 before < 26.2.3

## References

- <https://www.libreoffice.org/about-us/security/advisories/cve-2026-6045>

## Sources

- CVE List: [CVE-2026-6045](https://www.cve.org/CVERecord?id=CVE-2026-6045), CVE Terms of Use, modified 2026-10-21
- NVD: [CVE-2026-6045](https://nvd.nist.gov/vuln/detail/CVE-2026-6045), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-6045 · Whole record: https://cve.day/CVE-2026-6045.json · Rebuilt by cve.day 2026-11-25T22:59:24.646Z
