All reports
High

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

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-6040

Probability of exploitation in the next 30 days: 0.16%

FIRST EPSS · 2026-11-20

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.

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.