Heap use-after-free in ODF number-format blank-width parsing (The Document Foundation LibreOffice)

CVE-2026-6040
MEDIUM 5.4

At a glance

Source
NVD
EPSS
EPSS 0.16 % Β· percentile 5 ()
State
PUBLISHED
Published
Updated
Assigner
Document Fdn.
NVD status
Deferred

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.

Weaknesses (CWE)

  • CWE-416 β€” Use After Free
  • CWE-787 β€” Out-of-bounds Write
  • CWE-825 β€” Expired Pointer Dereference

References

Scores

VersionScoreVectorScored by
CVSS 4.0MEDIUM 5.4CVSS: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:PDocument Fdn.
CVSS 3.1HIGH 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:Hredhat-SADP
CVSS 4.0MEDIUM 5.4CVSS: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:XNVD Β· security@documentfoundation.org (Secondary)
CVSS 3.1HIGH 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HNVD Β· 0b0ca135-0b70-47e7-9f44-1890c2a1c46c (Secondary)

European references

Affected products

ProductVersions
The Document Foundation Β· LibreOfficeaffected 25.8 < < 25.8.7 ; affected 26.2 < < 26.2.3

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST β€” attribution requested
ENISA EUVDENISA β€” reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain β€” this product uses data from the NVD API but is not endorsed or certified by the NVD