CVE-2026-6040: ODF Number Format Heap Use-After-Free Vulnerability
CVE-2026-6040 is a memory safety vulnerability in ODF (Open Document Format) number format parsing. When a document contains a malformed number format with blank-width characters, a position value embedded in that format is not validated before being used to access the format-code string. This can cause the application to read from memory outside the intended buffer—a use-after-free condition. An attacker who crafts a malicious ODF document with a specially formed number format could trigger this flaw, potentially leading to information disclosure, data corruption, or application crash when the document is opened by a user.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.3 HIGH · CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- Weaknesses (CWE)
- CWE-416, CWE-787, CWE-825
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-15 / 2026-07-23
NVD description (verbatim)
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.
4 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability stems from insufficient bounds checking during ODF number format import. The affected code processes position values from document-embedded format strings without validating that the position falls within the actual length of the format-code string. This allows out-of-bounds memory access. The flaw is classified as a heap use-after-free (CWE-416), with contributing issues in buffer over-read (CWE-787) and improper pointer validation (CWE-825). Fixed versions introduce explicit bounds checking to ensure position values cannot exceed the format-code string length, preventing out-of-bounds access.
Business impact
Exploitation requires a user to open a crafted ODF document, making this a file-based attack vector suitable for targeted spear-phishing or malicious document distribution. Successful exploitation can lead to confidentiality breaches (reading sensitive heap memory), integrity violations (potential data corruption), or availability disruption (application crash). Organizations handling sensitive spreadsheets, presentations, or text documents in ODF format face elevated risk, particularly if users are exposed to untrusted sources or if document collaboration workflows are not tightly controlled.
Affected systems
No specific vendor or product information was disclosed in the source data. However, the vulnerability affects ODF number format parsing, which is primarily found in office productivity suites and document processing applications that support ODF standards. Administrators should consult vendor advisories and the KEV catalog for definitive product lists and version ranges. Verify against the vendor advisory to determine which applications and versions are affected.
Exploitability
The attack requires local access and user interaction—a user must open a malicious ODF file. The CVSS 3.1 score of 7.3 (HIGH) reflects that while the impact severity is high (confidentiality, integrity, and availability all affected), the barrier to exploitation is moderate due to these prerequisites. No known public exploits or KEV inclusion suggest active in-the-wild exploitation at time of publication, but the simplicity of crafting a malicious ODF file and the reliance on social engineering make this a credible practical threat.
Remediation
Apply patches from your ODF-supporting software vendor as they become available. Patches address the vulnerability by adding bounds checking to validate position values before they are used to index into format-code strings. Until patches are deployed, mitigate risk by restricting ODF document sources, disabling automatic document opening from untrusted channels, and educating users to avoid opening unsolicited ODF files.
Patch guidance
Monitor vendor security advisories and apply patches to all ODF-capable applications in your environment—especially those handling user-supplied or externally sourced documents. Verify against the vendor advisory for exact patch versions and deployment timelines. Test patches in a controlled environment before production rollout to ensure compatibility with your document workflows. Prioritize systems where users frequently receive documents from external parties.
Detection guidance
Application crashes or unexpected memory behavior when opening ODF documents may signal exploitation attempts. Log and alert on document parsing failures in ODF-capable applications. Consider file-integrity monitoring on shared document repositories. Network and endpoint detection should flag suspicious ODF files with malformed number formats, though signature-based detection is challenging without vendor-provided indicators. In the near term, behavioral monitoring for application crashes triggered by ODF imports offers the most practical signal.
Why prioritize this
Score 7.3 (HIGH) and user-interaction dependency warrant rapid but not emergency patching. The vulnerability affects document processing, a ubiquitous use case; organizations handling external documents or relying on ODF workflows should prioritize this. The absence of KEV designation and active exploitation reports allows a measured deployment timeline, but patches should not be deferred indefinitely. High-risk organizations handling sensitive document collections should patch within 30 days; others within 60 days.
Risk score, explained
The CVSS 3.1 score of 7.3 reflects a high-impact vulnerability (C:H, I:H, A:H) requiring local access and user interaction. The combination of heap corruption potential and reliance on social engineering to trigger the flaw lands it in the HIGH range. It is not CRITICAL because it requires user action and local access, not network propagation. The score appropriately signals that patching is important but allows time for staged deployment and testing.
Frequently asked questions
Can this vulnerability be exploited remotely without user interaction?
No. The attack requires local access and user interaction—specifically, a user must open a crafted ODF document. Remote exploitation over a network is not possible, and the flaw cannot be triggered by merely receiving a file; the file must be opened in an application that processes ODF number formats.
What types of ODF documents can trigger this vulnerability?
Any ODF document type that includes number formatting (spreadsheets, presentations with number fields, or text documents with formatted numbers) can be weaponized. The attacker crafts a malformed number format with an unchecked position value that causes out-of-bounds memory access when imported.
Is there a workaround if I cannot patch immediately?
No permanent workaround exists. Mitigation strategies include restricting ODF document sources, blocking unexpected ODF attachments via email controls, disabling auto-open features for ODF files, and user training to avoid opening unsolicited documents. These reduce risk but do not eliminate it; patching remains the only complete remedy.
How can I detect if this vulnerability has been exploited in my environment?
Look for application crashes or hangs during ODF document import, unusual memory-access errors in application logs, and unexpected termination of office productivity suites. If your environment has file-integrity monitoring or endpoint detection and response (EDR) tools, configure them to flag anomalous process behavior triggered by document parsing. However, successful silent exploitation may leave minimal forensic traces, so prevention and timely patching are the primary defenses.
This analysis is based on publicly disclosed information current as of the modification date (2026-07-23). No vendor products or patch versions were specified in the source data; verify all remediation guidance against official vendor advisories before deployment. No active exploitation or KEV inclusion was reported at analysis time, but threat landscape changes may affect this assessment. SEC.co makes no warranty regarding the completeness or accuracy of this intelligence and recommends independent validation by qualified security professionals before operational decisions. Source: NVD (public-domain), retrieved 2026-07-24. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-11933HIGHMongoDB Server Use-After-Free in JavaScript Engine (CVSS 8.8)
- CVE-2026-12291HIGHFirefox & Thunderbird HTTP Use-After-Free RCE (CVSS 8.8)
- CVE-2026-12310HIGHFirefox and Thunderbird Memory Safety Vulnerability (CVSS 7.5)
- CVE-2026-12314HIGHFirefox & Thunderbird Memory Safety Vulnerability – Patch Now
- CVE-2026-42909HIGHMicrosoft Remote Desktop Client Race Condition Remote Code Execution
- CVE-2026-42913HIGHRemote Desktop Client Race Condition Allows Network Code Execution
- CVE-2026-42985HIGHRemote Desktop Client Use-After-Free RCE Vulnerability
- CVE-2026-44422HIGHFreeRDP RDPEAR Double-Free Vulnerability (HIGH Severity)