Skip to main content

LibreOffice EUVDEUVD-2026-36734

| CVE-2026-6039 MEDIUM
Out-of-bounds Write (CWE-787)
2026-06-15 Document Fdn. GHSA-5jvm-83q6-h5jj
5.4
CVSS 4.0 · Vendor: Document Fdn.
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Craft DXF with polyline point count > 65,535
  2. Delivery
    Deliver malicious file to target via email or download
  3. Exploit
    Victim opens file in LibreOffice
  4. Execution
    Parser reads oversized count, truncates to 16-bit for heap allocation
  5. Persist
    Write loop uses full count, overflows buffer
  6. Impact
    Heap corruption causes crash or enables code execution

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, write limits
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The victim must open a specially crafted DXF file in LibreOffice - this is the sole prerequisite. The DXF file must contain a polyline entity with a point count value greater than 65,535 (exceeding the 16-bit unsigned integer maximum of 0xFFFF) so that the allocation-versus-fill mismatch is triggered. No authentication, elevated privileges, special configuration, network exposure, or non-default LibreOffice settings are required. What limits exploitation is the mandatory user-interaction step: a human must actively open the malicious file, and the attack vector is local (AV:L per CVSS 4.0), meaning the attacker cannot trigger the parse remotely without a delivery mechanism such as email, USB, or file share. The vulnerability does not manifest in files containing only polylines with 65,535 or fewer points.

Impact

The provided CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H) scores 5.4 (Medium), reflecting local delivery and passive user interaction as the primary risk-reducing factors. The availability impact is rated High (VA:H), consistent with a heap overflow that will reliably crash LibreOffice; confidentiality and integrity impacts are Low, indicating limited but non-zero potential for memory disclosure or controlled writes. The E:P supplemental metric confirms a proof-of-concept exists, which elevates practical exploitability above theoretical. No EPSS percentile was provided in the input data, and the CVE is not listed in CISA KEV, suggesting exploitation has not been observed at scale. The attack complexity is Low (AC:L) and no privileges are required (PR:N), but the local attack vector and mandatory user interaction (UI:P - the victim must open a file) meaningfully constrain real-world weaponization compared to network-exploitable flaws. The net assessment is a medium-priority vulnerability: reliable crash is straightforward and a PoC exists, but code execution requires additional exploit engineering and a social-engineering or malicious-file-delivery step.

Exploit ScenarioDerived

An attacker constructs a malicious DXF file containing a POLYLINE entity whose declared point count exceeds 65,535 - for example, 70,000 points - ensuring the truncation bug triggers during import. The file is delivered to a target via email, file share, or a compromised download link, and the victim opens it in LibreOffice Draw or any LibreOffice component capable of importing DXF. The undersized heap buffer is overwritten with attacker-controlled polyline coordinate data, at minimum crashing LibreOffice; a proof-of-concept for this crash path exists per the CVSS 4.0 E:P metric, and a more sophisticated exploit could attempt heap-layout manipulation to achieve arbitrary code execution in the context of the LibreOffice process.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 15, 2026

Heap buffer overflow in LibreOffice's DXF import engine allows a crafted CAD file to corrupt process memory when a polyline with more than 65,535 points is parsed. The root cause is an integer truncation defect: the point count read from the DXF file is narrowed to a 16-bit value when sizing the heap allocation, but the original, un-truncated count drives the subsequent write loop - any polyline exceeding 65,535 points overflows the undersized buffer. A proof-of-concept exists (CVSS 4.0 E:P), exploitation requires passive user interaction (opening a malicious DXF file), and no active exploitation has been confirmed in CISA KEV at time of analysis.

RemediationAI

The primary fix is to upgrade LibreOffice to a version confirmed as patched by The Document Foundation; the vendor advisory at https://www.libreoffice.org/about-us/security/advisories/cve-2026-6039 should be consulted for the exact fixed release number, as no specific version is cited in the available intelligence data. In fixed versions, oversized DXF polylines (point count exceeding 16-bit range) are rejected at parse time rather than processed. Until patching is possible, the most effective compensating control is to prohibit opening DXF files from untrusted external sources - this can be enforced via email gateway policies that strip or quarantine .dxf attachments, and by educating users not to open DXF files received from unknown parties. Disabling LibreOffice's DXF import filter entirely is technically possible by restricting the filter list in the LibreOffice configuration, but this breaks legitimate CAD workflow and should be weighed accordingly. There is no network-level mitigation applicable given the local file-open delivery vector.

Affected VersionsENISA

libreoffice 25.8 << 25.8.7
libreoffice 26.2 << 26.2.3

Affected Packages

euvd libreoffice_25_8 fix: 25.8.7
euvd libreoffice_26_2 fix: 26.2.3

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

DXF (Drawing Exchange Format) is Autodesk's interoperability format for CAD data; LibreOffice (The Document Foundation, CPE cpe:2.3:a:the_document_foundation:libreoffice:*:*:*:*:*:*:*:*) parses it within its drawing subsystem to import vector graphics and polyline geometry. The defect is a classic integer width mismatch classified as CWE-787 (Out-of-bounds Write): the DXF parser reads a point-count field that can exceed 65,535 from the file, but casts or assigns it to a 16-bit unsigned integer before computing the heap buffer size. The allocation is therefore capped at at most 65,535-point capacity while the fill loop iterates over the full, uncapped count, writing polyline coordinates past the end of the heap allocation. This class of bug - allocate-with-narrow-type, fill-with-wide-type - is a well-understood source of heap corruption that can lead to denial of service (process crash) or, with attacker-controlled memory layout, to arbitrary code execution.

Know when Libreoffice gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Document Fdn.) PRIMARY 5.4 MEDIUM
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
vuln.today AI 6.6 MEDIUM

Local file-open delivery (AV:L), no privileges needed (PR:N), user must open file (UI:R); heap overflow yields high availability impact with limited confidentiality and integrity exposure.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:H
4.0 AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N
SUSE 5.5 MEDIUM
AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
Red Hat 5.5 MEDIUM

Primary rating from Vendor (Document Fdn.).

CVSS VectorVendor: Document Fdn.

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Jun 15, 2026 - 19:01 EUVD
CVE Published
Jun 15, 2026 - 16:21 cve.org
MEDIUM 5.4

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment Vendor VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation
None
System Exposure· derived
Small
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

CVE-2019-9851 CRITICAL POC
9.8 Aug 15

LibreOffice is typically bundled with LibreLogo, a programmable turtle vector graphics script, which can execute arbitra

CVE-2015-5212 MEDIUM
6.8 Nov 10

Integer underflow in LibreOffice before 4.4.5 and Apache OpenOffice before 4.1.2, when the configuration setting "Load p

CVE-2015-5214 MEDIUM
6.8 Nov 10

LibreOffice before 4.4.6 and 5.x before 5.0.1 and Apache OpenOffice before 4.1.2 allows remote attackers to cause a deni

CVE-2018-6871 CRITICAL POC
9.8 Feb 09

LibreOffice before 5.4.5 and 6.x before 6.0.1 allows remote attackers to read arbitrary files via =WEBSERVICE calls in a

CVE-2021-25631 HIGH POC
8.8 May 03

In the LibreOffice 7-1 series in versions prior to 7.1.2, and in the 7-0 series in versions prior to 7.0.5, the denylist

CVE-2012-2334 MEDIUM POC
6.8 Jun 19

Integer overflow in filter/source/msfilter/msdffimp.cxx in OpenOffice.org (OOo) 3.3, 3.4 Beta, and possibly earlier, and

CVE-2018-10583 HIGH POC
7.5 May 01

An information disclosure vulnerability occurs when LibreOffice 6.0.3 and Apache OpenOffice Writer 4.1.5 automatically p

CVE-2014-3524 CRITICAL
9.3 Aug 26

Apache OpenOffice before 4.1.1 allows remote attackers to execute arbitrary commands and possibly have other unspecified

CVE-2015-5213 MEDIUM
6.8 Nov 10

Integer overflow in LibreOffice before 4.4.5 and Apache OpenOffice before 4.1.2 allows remote attackers to cause a denia

CVE-2014-0247 CRITICAL
10.0 Jul 03

LibreOffice 4.2.4 executes unspecified VBA macros automatically, which has unspecified impact and attack vectors, possib

CVE-2012-0037 MEDIUM POC
6.5 Jun 17

Redland Raptor (aka libraptor) before 2.0.7, as used by OpenOffice 3.3 and 3.4 Beta, LibreOffice before 3.4.6 and 3.5.x

CVE-2017-7856 CRITICAL
9.8 Apr 14

LibreOffice before 2017-03-11 has an out-of-bounds write caused by a heap-based buffer overflow in the SVMConverter::Imp

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise Module for Package Hub 15 SP7 Affected
SUSE Linux Enterprise Server 15 SP7 Affected
SUSE Linux Enterprise Server for SAP Applications 15 SP7 Affected
SUSE Linux Enterprise Workstation Extension 15 SP7 Affected

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy