CVE-2026-6040: CWE-416 Use After Free in The Document Foundation LibreOffice
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.
AI Analysis
Technical Summary
This vulnerability involves a heap use-after-free condition triggered during the import of blank-width characters in an ODF number format in LibreOffice. The root cause is a lack of validation on a position value against the length of the format-code string, which can lead to memory access outside the allocated string. The issue is addressed in fixed versions by adding bounds checking before using the position value. The CVSS 4.0 base score is 5.4, indicating medium severity, with local attack vector, low complexity, no privileges required, and partial impact on confidentiality, integrity, and availability. No known exploits are reported in the wild. The vendor advisory from Red Hat does not explicitly confirm patch availability or remediation status.
Potential Impact
The vulnerability can lead to use-after-free memory corruption when processing malformed ODF number formats, potentially causing application crashes or other undefined behavior. The impact is rated medium severity with partial confidentiality, integrity, and availability impacts. There are no known exploits in the wild, and the attack requires local access with user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory at https://access.redhat.com/security/cve/CVE-2026-6040 for current remediation guidance. The vulnerability is fixed in versions where bounds checking is implemented on the position value during ODF number format import. Until a patch is applied, avoid opening untrusted ODF documents that may contain malformed number formats.
CVE-2026-6040: CWE-416 Use After Free in The Document Foundation LibreOffice
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.
CVSS v4.0
Score 5.4medium
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves a heap use-after-free condition triggered during the import of blank-width characters in an ODF number format in LibreOffice. The root cause is a lack of validation on a position value against the length of the format-code string, which can lead to memory access outside the allocated string. The issue is addressed in fixed versions by adding bounds checking before using the position value. The CVSS 4.0 base score is 5.4, indicating medium severity, with local attack vector, low complexity, no privileges required, and partial impact on confidentiality, integrity, and availability. No known exploits are reported in the wild. The vendor advisory from Red Hat does not explicitly confirm patch availability or remediation status.
Potential Impact
The vulnerability can lead to use-after-free memory corruption when processing malformed ODF number formats, potentially causing application crashes or other undefined behavior. The impact is rated medium severity with partial confidentiality, integrity, and availability impacts. There are no known exploits in the wild, and the attack requires local access with user interaction.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory at https://access.redhat.com/security/cve/CVE-2026-6040 for current remediation guidance. The vulnerability is fixed in versions where bounds checking is implemented on the position value during ODF number format import. Until a patch is applied, avoid opening untrusted ODF documents that may contain malformed number formats.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Document Fdn.
- Date Reserved
- 2026-04-09T16:42:11.799Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
- Vendor Advisory Urls
- [{"url":"https://access.redhat.com/security/cve/CVE-2026-6040","vendor":"Red Hat"}]
Threat ID: 6a303db60b89be6888695b1c
Added to database: 06/15/2026, 18:00:22 UTC
Last enriched: 07/23/2026, 21:30:59 UTC
Last updated: 07/31/2026, 19:23:00 UTC
Views: 87
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.