CVE-2026-6040 MEDIUM

CVE-2026-6040: Heap use-after-free in ODF number-format blank-width parsing

Vendor The Document Foundation
Product LibreOffice
Weakness CWE-416
Published June 15, 2026
Last update June 30, 2026

CVSS base score

5.4/10
Attack vector Local
Attack complexity Low
Privileges required None
User interaction
Confidentiality
Integrity

CVSS vector

CVSS: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

What the vulnerability does

01Description

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.

Key dates

02Disclosure timeline

June 15, 2026 CVE published
June 30, 2026 Record updated