CVE-2026-6040
published 2026-06-15CVE-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…
PriorityP338high7.3CVSS 3.1
AVLACLPRLUIRSUCHIHAH
EPSS
0.11%
1.7th percentile
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
3 ranges
| Vendor | Product | Version range | Fixed in |
|---|---|---|---|
| libreoffice | libreoffice | — | — |
| the_document_foundation | libreoffice | >= 25.8 < < 25.8.7 | < 25.8.7 |
| the_document_foundation | libreoffice | >= 26.2 < < 26.2.3 | < 26.2.3 |
CVSS provenance
nvdv3.17.3HIGHCVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
nvdv4.05.4MEDIUMCVSS: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
vendor_redhat5.4MEDIUM
Stop checking back — get the weekly exploitation signal.
Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.
GHSA
A heap use-after-free existed when importing the blank-width characters of an ODF number format.
ghsa_unreviewed·2026-06-15
CVE-2026-6040 [MEDIUM] CWE-416 A heap use-after-free existed when importing the blank-width characters of an ODF number format.
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.
VulDB
LibreOffice up to 25.8.6/26.2.2 use after free
vuldb·2026-06-15·CVSS 5.4
CVE-2026-6040 [MEDIUM] LibreOffice up to 25.8.6/26.2.2 use after free
A vulnerability was found in LibreOffice up to 25.8.6/26.2.2. It has been declared as critical. Impacted is an unknown function. Executing a manipulation can lead to use after free.
This vulnerability is handled as CVE-2026-6040. The attack can be executed remotely. There is not any exploit available.
It is recommended to upgrade the affected component.
Red Hat
libreoffice: LibreOffice: Heap use-after-free allows arbitrary code execution via malformed ODF number format
vendor_redhat·2026-06-15·CVSS 5.4
CVE-2026-6040 [MEDIUM] CWE-825 libreoffice: LibreOffice: Heap use-after-free allows arbitrary code execution via malformed ODF number format
libreoffice: LibreOffice: Heap use-after-free allows arbitrary code execution via malformed ODF number format
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.
A vulnerability was found in LibreOffice. If a user inadvertently opens a malicious OpenDocument Format (ODF) file, an attacker could execute unauthorized code and potentially gain full control of the system.
Statement: This LibreOffice vulnerability is rated as Important. If a user inadvertently opens a maliciously crafted OpenDocument Form
No detection rules found.
No public exploits indexed.
Bugzilla
CVE-2026-6040 libreoffice: LibreOffice: Heap use-after-free allows arbitrary code execution via malformed ODF number format [fedora-all]
bugzilla·2026-06-18·CVSS 5.4
CVE-2026-6040 [MEDIUM] CVE-2026-6040 libreoffice: LibreOffice: Heap use-after-free allows arbitrary code execution via malformed ODF number format [fedora-all]
CVE-2026-6040 libreoffice: LibreOffice: Heap use-after-free allows arbitrary code execution via malformed ODF number format [fedora-all]
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.
Bugzilla
CVE-2026-6040 libreoffice: LibreOffice: Heap use-after-free allows arbitrary code execution via malformed ODF number format
bugzilla·2026-06-15·CVSS 5.4
CVE-2026-6040 [MEDIUM] CVE-2026-6040 libreoffice: LibreOffice: Heap use-after-free allows arbitrary code execution via malformed ODF number format
CVE-2026-6040 libreoffice: LibreOffice: Heap use-after-free allows arbitrary code execution via malformed ODF number format
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.
2026-06-15
Published