CVE-2026-6040

MEDIUM

Heap use-after-free in ODF number-format blank-width parsing

Title source: cna
STIX 2.1

Description

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.

Scores

CVSS v4 5.4
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/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:X

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-416 CWE-787
Status published
Products (2)
The Document Foundation/LibreOffice 25.8 - < 25.8.7
The Document Foundation/LibreOffice 26.2 - < 26.2.3
Published Jun 15, 2026
Tracked Since Jun 15, 2026