Use After Free in The Document Foundation Libreoffice
CVE-2026-6040
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.
Vulnerability class: Use-After-Free
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.3 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.002 (5.5th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 6th percentile — 5.5% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.001 · newest: 0.002 · change: +0.001
Affected products
- The Document Foundation Libreoffice — versions 25.8, 26.2
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-6040?
- CVE-2026-6040 is a high-severity vulnerability in The Document Foundation Libreoffice, classified under Use After Free. CVSS score: 7.3/10. Published 2026-06-15.
- How severe is CVE-2026-6040?
- High severity. CVSS v3 base score is 7.3 out of 10.