CVE-2026-6040
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
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| The Document Foundation | LibreOffice | 25.8 < < 25.8.7 | affected |
| The Document Foundation | LibreOffice | 26.2 < < 26.2.3 | affected |
Weaknesses
- CWE-416: CWE-416 Use After Free
- CWE-787: CWE-787 Out-of-bounds Write
ADP Enrichment
CISA ADP Vulnrichment
- SSVC:
- Exploitation: none
- Automatable: no
- Technical Impact: partial
libreoffice: LibreOffice: Heap use-after-free allows arbitrary code execution via malformed ODF number format
Additional References
- https://access.redhat.com/security/cve/CVE-2026-6040
- https://bugzilla.redhat.com/show_bug.cgi?id=2488966
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6040.json
References
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.