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-2025-67851

CVE-2025-67851: Moodle Formula Injection Vulnerability

CVE-2025-67851 is a formula injection vulnerability in Moodle that allows remote attackers to execute arbitrary formulas through improperly escaped exported data. This article covers technical details, affected versions, and mitigation.

Published: February 6, 2026

CVE-2025-67851 Overview

A formula injection vulnerability has been identified in Moodle, a widely-used open-source learning management system (LMS). This flaw occurs when data fields are exported without proper escaping, allowing a remote attacker to inject malicious formulas into exported data. When the exported file is opened in a spreadsheet application such as Microsoft Excel or Google Sheets, the embedded formulas execute, potentially leading to compromised data integrity and unintended operations within the spreadsheet environment.

Critical Impact

Attackers can exploit improper data export sanitization to inject malicious spreadsheet formulas, enabling data exfiltration, credential theft, or arbitrary command execution when victims open exported files in spreadsheet applications.

Affected Products

  • Moodle LMS (specific versions not disclosed in advisory)
  • Systems utilizing Moodle data export functionality
  • Organizations relying on exported Moodle data in spreadsheet applications

Discovery Timeline

  • 2026-02-03 - CVE-2025-67851 published to NVD
  • 2026-02-03 - Last updated in NVD database

Technical Details for CVE-2025-67851

Vulnerability Analysis

This vulnerability is classified as CWE-1236 (Improper Neutralization of Formula Elements in a CSV File), commonly known as CSV Injection or Formula Injection. The flaw exists in how Moodle processes and exports user-supplied data to external file formats such as CSV or other spreadsheet-compatible formats.

When a user exports data from Moodle (such as user profiles, grades, or other database content), the application fails to properly sanitize or escape special characters that are interpreted as formula delimiters by spreadsheet applications. Characters like =, +, -, @, and tab characters at the beginning of cell values can trigger formula execution in applications like Microsoft Excel, Google Sheets, or LibreOffice Calc.

An attacker with the ability to submit data to Moodle (such as through user profile fields, assignment submissions, or forum posts) can craft malicious payloads that remain dormant within the database until an administrator or instructor exports the data. Upon opening the exported file, the spreadsheet application interprets the payload as a formula and executes it.

Root Cause

The root cause lies in insufficient output encoding during the data export process. When Moodle generates exportable data, it does not properly escape or prefix cell values that begin with characters recognized as formula indicators by spreadsheet applications. This allows user-controlled input to break out of the data context and be interpreted as executable formulas.

Proper mitigation requires either prefixing potentially dangerous cell values with a single quote character (') to force text interpretation, or implementing comprehensive output encoding that neutralizes formula injection vectors.

Attack Vector

The attack requires local access in the sense that the attacker must have legitimate access to submit data into Moodle fields that may later be exported. The exploitation chain involves:

  1. Initial Access: Attacker submits malicious formula-containing data through legitimate Moodle input channels (profile fields, course enrollments, forum posts, etc.)
  2. Persistence: The malicious payload is stored in the Moodle database without triggering any alerts
  3. Trigger: An administrator or instructor with export privileges exports data containing the attacker's payload
  4. Execution: The victim opens the exported file in a spreadsheet application, causing the malicious formula to execute

Common payload examples include Dynamic Data Exchange (DDE) formulas that can execute system commands or formulas that exfiltrate data to attacker-controlled servers. The vulnerability requires user interaction (opening the exported file) and operates within the security context of the victim's spreadsheet application.

For technical details regarding the vulnerability mechanism, refer to the Moodle Forum Discussion and the Red Hat CVE Advisory.

Detection Methods for CVE-2025-67851

Indicators of Compromise

  • Presence of formula injection payloads in Moodle database fields (values beginning with =, +, -, @, or containing DDE commands like =cmd|)
  • User-submitted content containing suspicious patterns such as =HYPERLINK(), =IMPORTXML(), =WEBSERVICE(), or DDE sequences
  • Log entries indicating unusual data submissions with special characters in profile or course data fields
  • Reports from users about unexpected behavior when opening exported Moodle data files

Detection Strategies

  • Implement database scanning for cells containing formula injection patterns such as ^[=+\-@] or DDE command syntax
  • Deploy web application firewall (WAF) rules to detect and block formula injection payloads in incoming POST requests
  • Monitor Moodle audit logs for suspicious data submissions, particularly in fields commonly included in exports
  • Configure endpoint detection to alert on spreadsheet applications executing commands or making unusual network connections after opening CSV/Excel files

Monitoring Recommendations

  • Enable verbose logging for Moodle data export operations to track who exports data and what datasets are included
  • Implement file integrity monitoring for exported files if they are stored on shared network locations
  • Configure SIEM rules to correlate Moodle export activities with subsequent endpoint alerts
  • Regularly audit user-submitted data in Moodle for suspicious patterns that could indicate attempted exploitation

How to Mitigate CVE-2025-67851

Immediate Actions Required

  • Review and apply security patches from Moodle when available by monitoring the Moodle Forum Discussion
  • Audit existing Moodle database content for potential formula injection payloads in user-submitted fields
  • Educate administrators and instructors about the risks of opening exported data in spreadsheet applications
  • Consider implementing administrative controls to limit data export capabilities to trusted users only
  • Enable Protected View or similar sandboxing features in spreadsheet applications used to open exported Moodle data

Patch Information

Patch information is available through the official Moodle security channels. Organizations should consult the Moodle Forum Discussion for the latest updates on patched versions. Additional technical details are available in Red Hat Bug Report #2423841.

Workarounds

  • Configure spreadsheet applications to disable automatic formula execution and DDE features before opening exported Moodle files
  • Pre-process exported files using scripts that prefix all cell values with single quotes to force text interpretation
  • Use text editors instead of spreadsheet applications to review exported data when formula execution is not required
  • Implement input validation on Moodle data fields to reject or sanitize values beginning with formula indicator characters
bash
# Configuration example - Disable DDE in Microsoft Excel via registry
# Run as administrator on Windows systems opening Moodle exports
reg add "HKEY_CURRENT_USER\Software\Microsoft\Office\16.0\Excel\Security" /v WorkbookLinkWarnings /t REG_DWORD /d 2 /f

# Pre-processing script example - Add single quote prefix to CSV cells
# This forces text interpretation and prevents formula execution
sed -i "s/^\([=+\-@]\)/'\1/g; s/,\([=+\-@]\)/,'\1/g" exported_data.csv

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMoodle

  • SeverityMEDIUM

  • CVSS Score6.1

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:L/I:H/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityLow
  • CWE References
  • CWE-1236
  • Technical References
  • Red Hat CVE Advisory

  • Red Hat Bug Report #2423841

  • Moodle Forum Discussion
  • Related CVEs
  • CVE-2026-26045: Moodle Backup Restore RCE Vulnerability

  • CVE-2026-26046: Moodle TeX Filter RCE Vulnerability

  • CVE-2025-67847: Moodle Restore Interface RCE Vulnerability

  • CVE-2025-3642: Moodle LMS EQUELLA Repository RCE Flaw
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