CVE-2026-6040

Summary

A heap use-after-free existed when importing the blank-width characters of an ODF number format. A position value read from the document was not checked against the length of the format-code string, so a malformed number format could be processed against memory outside that string. In fixed versions the position is bounds-checked before use.

Affected Software

VendorProductVersion RangeStatus
The Document FoundationLibreOffice25.8 < < 25.8.7affected
The Document FoundationLibreOffice26.2 < < 26.2.3affected

Weaknesses

  • CWE-416: CWE-416 Use After Free
  • CWE-787: CWE-787 Out-of-bounds Write

ADP Enrichment

CISA ADP Vulnrichment

  • SSVC:
  • Exploitation: none
    • Automatable: no
    • Technical Impact: partial

libreoffice: LibreOffice: Heap use-after-free allows arbitrary code execution via malformed ODF number format

Additional References

References