The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2023-6186

CVE-2023-6186: LibreOffice Macro Execution RCE Vulnerability

CVE-2023-6186 is a remote code execution flaw in LibreOffice that allows attackers to execute malicious macros without user warning. This post explains its technical details, affected versions, impact, and mitigation.

Published: February 4, 2026

CVE-2023-6186 Overview

CVE-2023-6186 is an authorization bypass vulnerability affecting The Document Foundation's LibreOffice office suite. The vulnerability stems from insufficient macro permission validation, which allows an attacker to execute built-in macros without triggering the standard user warning prompts. In affected versions, LibreOffice supports hyperlinks with macro or similar built-in command targets that can be executed when activated without warning the user, effectively bypassing security controls designed to protect users from malicious macro execution.

Critical Impact

Attackers can execute built-in macros through crafted hyperlinks without user consent or warning, potentially leading to system compromise, data theft, or malware installation when users interact with malicious documents.

Affected Products

  • LibreOffice (versions prior to patched releases)
  • Fedora 38
  • Debian Linux 11.0 and 12.0

Discovery Timeline

  • December 11, 2023 - CVE-2023-6186 published to NVD
  • February 13, 2025 - Last updated in NVD database

Technical Details for CVE-2023-6186

Vulnerability Analysis

This vulnerability is classified under CWE-281 (Improper Preservation of Permissions), indicating a fundamental flaw in how LibreOffice handles macro permission validation during hyperlink processing. The issue manifests when users interact with specially crafted documents containing hyperlinks that target built-in macro commands.

LibreOffice includes security mechanisms designed to warn users before executing macros, which is a critical defense against macro-based malware attacks. However, this vulnerability creates a bypass path where hyperlinks can invoke built-in macro functionality without triggering these protective warnings. This effectively circumvents the macro security model that users depend on to protect against malicious document-based attacks.

The vulnerability requires user interaction (clicking a malicious hyperlink within a document), but the lack of warning eliminates the user's opportunity to make an informed security decision. An attacker with low-level access can craft a malicious document and distribute it via phishing campaigns, email attachments, or other document-sharing mechanisms.

Root Cause

The root cause lies in insufficient validation logic within LibreOffice's hyperlink processing mechanism. When a hyperlink targets a built-in macro or similar command, the application fails to apply the same permission validation and user warning mechanisms that would normally be invoked for explicit macro execution requests. This permission preservation failure allows macro-like functionality to execute outside the normal security control path.

Attack Vector

The attack exploits the network-accessible nature of document distribution. An attacker crafts a LibreOffice document containing hyperlinks that target built-in macro commands. When the victim opens the document and clicks the malicious hyperlink, the associated macro commands execute without any security warning being displayed. The attack scenario follows this pattern:

  1. Attacker creates a malicious LibreOffice document with crafted hyperlinks targeting built-in macro commands
  2. Document is distributed to victims via email, file sharing, or web download
  3. Victim opens the document in an affected LibreOffice version
  4. Victim clicks on what appears to be a legitimate hyperlink
  5. Built-in macro commands execute without warning, potentially compromising the system

Since no verified code examples are available for this vulnerability, readers should consult the LibreOffice Security Advisory for technical implementation details regarding the vulnerability mechanism and its exploitation characteristics.

Detection Methods for CVE-2023-6186

Indicators of Compromise

  • Documents containing unusual hyperlink structures targeting internal macro commands or vnd.sun.star protocol handlers
  • Unexpected LibreOffice process behavior following document interaction, such as spawned child processes or network connections
  • Suspicious document files received from untrusted sources with embedded hyperlinks
  • Unusual file system or registry modifications following document opening

Detection Strategies

  • Monitor LibreOffice process execution for unexpected child process spawning after document opens
  • Implement email gateway scanning for documents containing suspicious hyperlink patterns
  • Deploy endpoint detection rules to identify macro-like behavior originating from hyperlink activation
  • Review document metadata and content for indicators of embedded macro command hyperlinks

Monitoring Recommendations

  • Enable enhanced logging for LibreOffice application events and document interactions
  • Configure security information and event management (SIEM) rules to correlate document opens with subsequent suspicious activity
  • Implement network monitoring for unexpected outbound connections following document interaction
  • Monitor file system activity for changes triggered by LibreOffice processes

How to Mitigate CVE-2023-6186

Immediate Actions Required

  • Update LibreOffice to the latest patched version immediately
  • Review and apply security updates from distribution repositories (Debian, Fedora)
  • Educate users about the risks of clicking hyperlinks in documents from untrusted sources
  • Consider temporarily restricting document opening to trusted sources only

Patch Information

The Document Foundation has released security patches addressing this vulnerability. Users should update to the latest LibreOffice version through official channels or their distribution's package manager.

For detailed patch information and affected version ranges, refer to:

  • LibreOffice Security Advisory CVE-2023-6186
  • Debian Security Advisory DSA-5574
  • Debian LTS Announcement
  • Fedora Package Announcement

Workarounds

  • Configure LibreOffice macro security to the highest level via Tools → Options → Security → Macro Security
  • Disable hyperlink execution by holding Ctrl while clicking links (manual verification mode)
  • Use document viewers instead of full LibreOffice for untrusted documents
  • Implement organizational policies restricting document sources to trusted origins
bash
# Update LibreOffice on Debian/Ubuntu systems
sudo apt update
sudo apt upgrade libreoffice

# Update LibreOffice on Fedora systems
sudo dnf update libreoffice

# Verify installed LibreOffice version
libreoffice --version

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechLibreoffice

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability1.09%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-281
  • Technical References
  • Debian LTS Announcement

  • Fedora Package Announcement

  • Debian Security Advisory DSA-5574
  • Vendor Resources
  • LibreOffice Security Advisory CVE-2023-6186
  • Related CVEs
  • CVE-2023-0950: LibreOffice Spreadsheet RCE Vulnerability

  • CVE-2024-6472: LibreOffice Auth Bypass Vulnerability

  • CVE-2025-2866: LibreOffice PDF Signature Spoofing Flaw

  • CVE-2024-7788: LibreOffice Signature Forgery Vulnerability
Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English