Heap use-after-free in ODF number-format blank-width parsing
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Passive
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · High
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 4.0 · CNA. Fix status from CNA and Red Hat.
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| The Document Foundation | LibreOffice | 25.8 to before < 25.8.7; 26.2 to before < 26.2.3 | < 25.8.7, < 26.2.3 | Patch available | CNA |
- LibreOffice VendorThe Document Foundation Affected 25.8 to before < 25.8.7; 26.2 to before < 26.2.3 Fixed in < 25.8.7, < 26.2.3 Patch available CNA
Remediation
- Fix · CNA LibreOffice (The Document Foundation) Fixed in < 25.8.7, < 26.2.3
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
The Document Foundation LibreOffice < 25.8.7, < 26.2.3
4 records Highest priority Priority LOW 4 LOW
Other records, highest priority first
- TI-2026-05305 Heap buffer overflow in EMF+ gradient brush importPriority LOW 24
- TI-2026-05300 Heap buffer overflow in DXF polyline importPriority LOW 24
- TI-2026-05307 Heap buffer overflow in OOXML text box element importPriority LOW 23
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
Not affected: 3 products
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
Timeline
- 2026-10-02 Threatist record created from CVE-2026-6040
- 2026-10-03 Alias added: GHSA-pp4w-c8m6-4xvf
More The Document Foundation vulnerabilities
- TI-2019-07233 LibreLogo global-event script execution CVSS 3.1CRITICAL 9.8
- TI-2018-12068 Path traversal in [UNKNOWN] libreoffice CVSS 3.0CRITICAL 9.8
- TI-2018-07474 An information disclosure vulnerability occurs when LibreOffice 6.0.3 and Apache… CVSS 3.0HIGH 7.5
- TI-2019-07230 Code injection in Document Foundation LibreOffice CVSS 3.1CRITICAL 9.8
- TI-2018-05018 LibreOffice before 5.4.5 and 6.x before 6.0.1 allows remote attackers to read arbitrary… CVSS 3.0CRITICAL 9.8
- TI-2023-01118 Arbitrary file write in libreoffice CVSS 3.1MEDIUM 5.5
Sources
- CVE-2026-6040 · CVE Program
- CVE-2026-6040 · NVD
- FIRST EPSS
- GHSA-pp4w-c8m6-4xvf · GitHub Advisory Database · CC BY 4.0
- CVE-2026-6040 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences