High severity · published Jun 15, 2026
CVE-2026-6040
Heap use-after-free in ODF number-format blank-width parsing
7.3
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
Required
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 5% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
LI
LibreOffice · The Document Foundation
25.8 before < 25.8.7; 26.2 before < 26.2.3 · source: vendor
RH
Red Hat Enterprise Linux 6 · Red Hat
All versions, or not specified · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-6040
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-6040
www.libreoffice.org
https://www.libreoffice.org/about-us/security/advisories/cve-2026-6040
access.redhat.com
https://access.redhat.com/security/cve/CVE-2026-6040
bugzilla.redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=2488966
security.access.redhat.com
https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6040.json
More from LibreOffice
8.5
CVE-2026-63277
RCE via calcext:data-mappings, sql provider and jdbc connector
7.8
CVE-2026-8357
Heap buffer overflow in Calc formula compilation
7.8
CVE-2026-4430
Heap Buffer Overflow in AgileEngine
6.8
CVE-2026-63266
Arbitrary file write via calcext:data-mappings, sql provider and Firebird backup functionality
6.7
CVE-2026-63270
Environment/ini-file leaks
