Heap Use-After-Free Vulnerability in LibreOffice ODF Number Format
CVE-2026-6040

5.4MEDIUM

Key Information:

Vendor
CVE Published:
15 June 2026

What is CVE-2026-6040?

This vulnerability arises from a heap use-after-free situation that occurs during the importation of blank-width characters from an ODF number format. The flaw lies in the improper bounds-checking of a position value read from the document, allowing a malformed number format to process memory segments beyond the intended format-code string. This situation can lead to memory corruption, potentially resulting in adverse effects on the system's stability and security. Revised versions have implemented necessary position checks to prevent this issue.

Affected Version(s)

LibreOffice 25.8

LibreOffice 26.2

References

CVSS V4

Score:
5.4
Severity:
MEDIUM
Confidentiality:
Low
Integrity:
Low
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
Unknown

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Anthropic (automated discovery using Claude)
Trail of Bits (triage and validation)
.