{"id":"CVE-2026-6040","published":"2026-06-15T16:21:53Z","modified":"2026-07-23T12:08:09Z","title":"Heap use-after-free in ODF number-format blank-width parsing","vendor":"The Document Foundation","product":"LibreOffice","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00159,"percentile":0.05166,"provenance":"source"},"cwes":[{"id":"CWE-416","name":"Use After Free"},{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-825","name":"Expired Pointer Dereference"}],"references":[{"url":"https://www.libreoffice.org/about-us/security/advisories/cve-2026-6040","tags":[]},{"url":"https://access.redhat.com/security/cve/CVE-2026-6040","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2488966","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6040.json","tags":["x_sadp-csaf-vex"]}],"priority":{"score":4.8,"factors":[{"name":"EPSS percentile","points":1.03},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"the-document-foundation","affectedVersions":[{"vendor":"The Document Foundation","product":"LibreOffice","versions":[">= 25.8, < < 25.8.7",">= 26.2, < < 26.2.3"]}],"capec":[{"id":"CAPEC-44","name":"Overflow Binary Resource File"}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-06-15T18:14:24.996356Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2026-36735","exploited":false,"provenance":"source"}}