# CVE-2026-6039: Heap buffer overflow in DXF polyline 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.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-06-15T16:21:16.514Z
- Modified: 2026-10-25T23:10:00.167Z
- Weaknesses: CWE-197, CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Document Fdn.

## Description

LibreOffice can import drawings in the DXF format used by CAD software. A heap buffer overflow existed when importing a DXF polyline. The point count taken from the file was truncated to a 16-bit value when the point buffer was sized, while the full count was used to fill it, so a polyline whose point count exceeded the 16-bit range was written past the end of the buffer. In fixed versions such oversized polylines are rejected.

(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-6039>

## Sources

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

---

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