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-6039: CWE-787 Out-of-bounds Write in The Document Foundation LibreOffice

0
Medium
VulnerabilityCVE-2026-6039cvecve-2026-6039cwe-787cwe-197
Published: Mon Jun 15 2026 (06/15/2026, 16:21:16 UTC)
Source: CVE Database V5
Vendor/Project: The Document Foundation
Product: LibreOffice

Description

LibreOffice can import drawings in the DXF format used by CAD software. A heap buffer overflow existed when importing a DXF polyline. The point count taken from the file was truncated to a 16-bit value when the point buffer was sized, while the full count was used to fill it, so a polyline whose point count exceeded the 16-bit range was written past the end of the buffer. In fixed versions such oversized polylines are rejected.

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:37 UTC

Technical Analysis

CVE-2026-6039 is a heap buffer overflow vulnerability in LibreOffice's DXF import functionality. The flaw arises from truncating the polyline point count to 16 bits when allocating the buffer, while the full point count is used to fill it. This mismatch allows writing beyond the allocated buffer boundary if the polyline's point count exceeds the 16-bit limit. The Document Foundation has addressed this by rejecting oversized polylines in fixed versions.

Potential Impact

The vulnerability can lead to heap corruption due to out-of-bounds writes when importing specially crafted DXF files containing polylines with excessive point counts. This may cause application crashes or potentially enable code execution or other memory corruption impacts. The CVSS 4.0 base score is 5.4 (medium severity), reflecting local attack vector with low complexity and partial impact on confidentiality, integrity, and high impact on availability.

Mitigation Recommendations

No official patch or remediation level is currently confirmed. Fixed versions reject oversized polylines, but no specific fixed versions or patches are provided in the data. Users should monitor The Document Foundation advisories for official updates and avoid importing untrusted DXF files with large polylines until a fix is available.

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:29:22.953Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a303db60b89be6888695b19

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

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

Last updated: 6/15/2026, 8:17:52 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