Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-6040: CWE-416 Use After Free in The Document Foundation LibreOffice

0
Medium
VulnerabilityCVE-2026-6040cvecve-2026-6040cwe-416cwe-787
Published: Mon Jun 15 2026 (06/15/2026, 16:21:53 UTC)
Source: CVE Database V5
Vendor/Project: The Document Foundation
Product: 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

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vuln. Confidentiality
Low
Vuln. Integrity
Low
Vuln. Availability
High
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

debian/libreoffice
pkg:deb/debian/libreoffice
Affected versions
=25.8=26.2

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

AILast updated: 06/15/2026, 18:15:33 UTC

Technical Analysis

This vulnerability (CVE-2026-6040) in LibreOffice involves a heap use-after-free condition triggered when importing blank-width characters of an ODF number format. The root cause is the lack of bounds checking on a position value read from the document against the length of the format-code string. This allows malformed number formats to cause memory access outside the intended buffer. The issue is classified under CWE-416 (Use After Free) and CWE-787 (Out-of-bounds Write). The vulnerability affects LibreOffice versions 25.8 and 26.2. The vendor has fixed the issue by adding bounds checking on the position value before use.

Potential Impact

Successful exploitation could lead to memory corruption due to use-after-free, potentially causing application crashes or other undefined behavior. The CVSS 4.0 base score is 5.4 (medium severity), indicating limited attack vector (local), low complexity, no privileges required, but requires user interaction. There are no known exploits in the wild at this time.

Mitigation Recommendations

No official patch or remediation level is explicitly stated in the available data. However, the vulnerability description notes that fixed versions include bounds checking on the position value. Users should upgrade to versions later than 25.8 and 26.2 where this fix is applied. Patch status is not yet confirmed — check The Document Foundation's advisory for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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

Threat ID: 6a303db60b89be6888695b1c

Added to database: 6/15/2026, 6:00:22 PM

Last enriched: 6/15/2026, 6:15:33 PM

Last updated: 6/15/2026, 8:19:01 PM

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses