Skip to content
Fencer Vulns
high 7.3

CVE-2026-6040 json

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

published 2026-06-15 4 mo ago modified 2026-10-25 14 d ago also EUVD-2026-36735

cvss
7.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 5%
public exploits
0
none known

Summary

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.

Patch / fix

  • The Document Foundation LibreOffice < 25.8.7, < 26.2.3
  • libreoffice Debian 13 4:25.2.3-2+deb13u5
  • libreoffice Debian 14 4:26.2.3.2-2

debian advisories DEBIAN-CVE-2026-6040

  • libreoffice Ubuntu 24.04 LTS 4:24.2.7-0ubuntu0.24.04.6
  • libreoffice Ubuntu 26.04 LTS 4:26.2.4.2-0ubuntu0.26.04.2

ubuntu advisories UBUNTU-CVE-2026-6040

Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0

  • libreoffice SLE Workstation Extension 15 SP7, SLE Module for Package Hub 15 SP7 26.2.5.1-150500.20.37.1

suse advisories SUSE-SU-2026:3140-1

  • libreoffice openSUSE Leap 16.0 26.8.1.1-bp160.1.1

opensuse advisories openSUSE-SU-2026:22216-1

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2026-6040 updated cvss 7.3

libreoffice: LibreOffice: Heap use-after-free allows arbitrary code execution via malformed ODF number format

  • Red Hat Enterprise Linux 6 autocorr-af, autocorr-bg, autocorr-ca, autocorr-cs, autocorr-da, autocorr-de, +60 more
    affected: workaround, no fix planned “Users should exercise caution and avoid opening untrusted OpenDocument Format (ODF) files.”
  • Red Hat Enterprise Linux 7 autocorr-af, autocorr-bg, autocorr-ca, autocorr-cs, autocorr-da, autocorr-de, +105 more Red Hat Enterprise Linux 8 autocorr-af, autocorr-bg, autocorr-ca, autocorr-cs, autocorr-da, autocorr-de, +98 more Red Hat Enterprise Linux 9 autocorr-af, autocorr-bg, autocorr-ca, autocorr-cs, autocorr-da, autocorr-de, +101 more
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
4 mo ago

Exploit prediction

0.16% chance of exploitation in the next 30 days, higher than 5% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 4.0 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
CISA ADP 3.1 7.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
CNA 4.0 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
CNA 3.1 7.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H

Affected products

  • The Document Foundation LibreOffice
  • Red Hat Red Hat Enterprise Linux 6
  • Red Hat Red Hat Enterprise Linux 7
  • Red Hat Red Hat Enterprise Linux 8
  • Red Hat Red Hat Enterprise Linux 9

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.