Vulnerability · Published Jun 15, 2026 · Assigned by Document Fdn.
CVE-2026-6039Heap buffer overflow in DXF polyline import
Medium 5.4
In plain English
A medium-severity out-of-bounds write in LibreOffice from The Document Foundation. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 10% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | libreoffice | 4:7.4.7-1+deb12u13 | DEBIAN-CVE-2026-6039 |
| Debian:13 | libreoffice | 4:25.2.3-2+deb13u5 | DEBIAN-CVE-2026-6039 |
| Debian:14 | libreoffice | 4:26.2.3.2-2 | DEBIAN-CVE-2026-6039 |
| Ubuntu:22.04:LTS | libreoffice | 1:7.3.7-0ubuntu0.22.04.12 | USN-8534-1 |
| Ubuntu:22.04:LTS | libreoffice | 1:7.3.7-0ubuntu0.22.04.12 | UBUNTU-CVE-2026-6039 |
| Ubuntu:24.04:LTS | libreoffice | 4:24.2.7-0ubuntu0.24.04.6 | UBUNTU-CVE-2026-6039 |
| Ubuntu:24.04:LTS | libreoffice | 4:24.2.7-0ubuntu0.24.04.6 | USN-8534-1 |
| Ubuntu:25.10 | libreoffice | no fix listed | UBUNTU-CVE-2026-6039 |
| Ubuntu:26.04:LTS | libreoffice | 4:26.2.4.2-0ubuntu0.26.04.2 | UBUNTU-CVE-2026-6039 |
| Ubuntu:26.04:LTS | libreoffice | 4:26.2.4.2-0ubuntu0.26.04.2 | USN-8534-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| The Document Foundation | LibreOffice | 25.8 – before < 25.8.726.2 – before < 26.2.3 |
Weakness: CWE-787, CWE-197 · Vector: 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