CVE-2026-6039 Heap buffer overflow in DXF polyline import
A heap buffer overflow in LibreOffice's DXF importer allows attackers to execute arbitrary code or cause a crash via a malicious file.
- 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-6039?
CVE-2026-6039 is a medium-severity memory corruption 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 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.
Which versions are affected by CVE-2026-6039?
How do I fix CVE-2026-6039?
Upgrade to a fixed version.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2026-6039 being exploited?
There is no known exploitation of CVE-2026-6039 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-6039, GHSA-5jvm-83q6-h5jj, UBUNTU-CVE-2026-6039.