CVE-2026-6040

published 15 Jun 2026 · updated 23 Jul 2026

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

5.4MediumCVSS 5.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in < 25.8.7 and < 26.2.3.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
The Document Foundation>=25.8 << 25.8.7, >=26.2 << 26.2.3< 25.8.7, < 26.2.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-6040 severity on Zeptric[![CVE-2026-6040](https://zeptric.io/badge/cve/CVE-2026-6040.svg)](https://zeptric.io/cve/CVE-2026-6040)