Heap buffer overflow in DXF polyline import (The Document Foundation LibreOffice)

CVE-2026-6039
MEDIUM 5.4

At a glance

Source
NVD
EPSS
EPSS 0.20 % Β· percentile 9 ()
State
PUBLISHED
Published
Updated
Assigner
Document Fdn.
NVD status
Deferred

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.

Weaknesses (CWE)

  • CWE-787 β€” Out-of-bounds Write
  • CWE-197 β€” Numeric Truncation Error

References

Scores

VersionScoreVectorScored by
CVSS 4.0MEDIUM 5.4CVSS: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:PDocument Fdn.
CVSS 4.0MEDIUM 5.4CVSS: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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:XNVD Β· security@documentfoundation.org (Secondary)

European references

Affected products

ProductVersions
The Document Foundation Β· LibreOfficeaffected 25.8 < < 25.8.7 ; affected 26.2 < < 26.2.3

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST β€” attribution requested
ENISA EUVDENISA β€” reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain β€” this product uses data from the NVD API but is not endorsed or certified by the NVD