Skip to content
OpenAdvisories
Medium · 5.4 CVE-2026-6039 EUVD-2026-36734GHSA-5jvm-83q6-h5jj

Heap buffer overflow in DXF polyline import

Published Jun 15, 2026 · Updated Jun 15, 2026 · 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.

Affected products

VendorProductAffectedFixed
The Document Foundation LibreOffice 25.8 – < < 25.8.7, 26.2 – < < 26.2.3 < 25.8.7

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libreoffice 4:26.2.3.2-2 —
Debian 13 libreoffice 4:25.2.3-2+deb13u5 —
Debian 12 libreoffice 4:7.4.7-1+deb12u13 —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS libreoffice 4:26.2.4.2-0ubuntu0.26.04.2 USN-8534-1
Ubuntu 25.10 libreoffice No fix yet —
Ubuntu 24.04 LTS libreoffice 4:24.2.7-0ubuntu0.24.04.6 USN-8534-1
Ubuntu 22.04 LTS libreoffice 1:7.3.7-0ubuntu0.22.04.12 USN-8534-1
Ubuntu 20.04 LTS libreoffice No fix yet —
ReleasePackageFixed inAdvisory
SLES 15 SP7 libreoffice 26.2.5.1-150500.20.37.1 SUSE-SU-2026:3140-1
ReleasePackageFixed inAdvisory
openSUSE Leap 16.0 libreoffice 26.8.1.1-bp160.1.1 openSUSE-SU-2026:22216-1

Advisories 4

References