Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • 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-26525

CVE-2025-26525: Moodle Path Traversal Vulnerability

CVE-2025-26525 is a path traversal flaw in Moodle's TeX notation filter that enables arbitrary file reads on systems with pdfTeX installed. This article covers the technical details, affected versions, and mitigation.

Updated: January 22, 2026

CVE-2025-26525 Overview

CVE-2025-26525 is a critical arbitrary file read vulnerability affecting Moodle's TeX notation filter. The vulnerability stems from insufficient input sanitization when processing TeX notation, allowing unauthenticated attackers to read arbitrary files from the server on systems where pdfTeX is available (such as those with TeX Live installed).

This vulnerability falls under CWE-552 (Files or Directories Accessible to External Parties), representing a serious information disclosure risk that could expose sensitive configuration files, credentials, and other confidential data stored on affected Moodle servers.

Critical Impact

Unauthenticated attackers can read arbitrary files from Moodle servers where TeX Live is installed, potentially exposing sensitive configuration data, database credentials, and other confidential information.

Affected Products

  • Moodle LMS (multiple versions with TeX notation filter enabled)
  • Systems with pdfTeX available (TeX Live installations)
  • Moodle instances using the TeX notation filter for mathematical content rendering

Discovery Timeline

  • 2025-02-24 - CVE-2025-26525 published to NVD
  • 2025-08-08 - Last updated in NVD database

Technical Details for CVE-2025-26525

Vulnerability Analysis

The vulnerability exists within Moodle's TeX notation filter, a component designed to render mathematical formulas and expressions. When processing user-supplied TeX input, the filter fails to properly sanitize special commands that can be leveraged to read files from the underlying file system.

The attack is network-accessible and requires no authentication or user interaction, making it particularly dangerous for internet-facing Moodle installations. The scope change indicator in the vulnerability assessment suggests that successful exploitation could impact resources beyond the vulnerable component itself.

This vulnerability specifically affects environments where pdfTeX is available, typically through TeX Live installations. TeX Live is commonly installed on educational platforms to support mathematical content rendering, meaning many Moodle deployments in academic environments are potentially at risk.

Root Cause

The root cause of CVE-2025-26525 is insufficient sanitization of user-supplied input in the TeX notation filter. The filter processes TeX commands without adequately validating or restricting commands that can access the file system. TeX engines like pdfTeX include powerful primitives such as \input, \openin, and related commands that can read external files during document processing.

Without proper filtering, an attacker can craft malicious TeX input that instructs pdfTeX to read arbitrary files from the server and include their contents in the rendered output, effectively exfiltrating sensitive data.

Attack Vector

The attack can be executed remotely over the network without authentication. An attacker would craft malicious TeX notation containing file-reading primitives and submit it through any Moodle interface that processes TeX content.

The exploitation flow involves:

  1. Identifying a Moodle instance with the TeX notation filter enabled
  2. Crafting malicious TeX input containing file read commands
  3. Submitting the payload through a content input field (e.g., forum posts, assignments, or other user-generated content areas)
  4. The pdfTeX processor executes the commands and reads the targeted files
  5. File contents are returned in the rendered output or error messages

Targeted files may include /etc/passwd, Moodle's config.php containing database credentials, or other sensitive system and application files.

Detection Methods for CVE-2025-26525

Indicators of Compromise

  • Unusual TeX processing errors in Moodle logs referencing file paths outside expected directories
  • pdfTeX processes accessing sensitive system files like /etc/passwd or config.php
  • Anomalous content submissions containing TeX primitives such as \input, \openin, \read, or \write
  • Unexpected file access patterns from the web server user account

Detection Strategies

  • Monitor Moodle application logs for TeX filter processing errors or unusual file path references
  • Implement Web Application Firewall (WAF) rules to detect TeX file-reading primitives in POST data
  • Review pdfTeX process activity for access to files outside the Moodle data directory
  • Audit content submissions for suspicious TeX command patterns

Monitoring Recommendations

  • Enable verbose logging for the TeX notation filter component
  • Monitor file access patterns from the web server process, particularly to configuration files
  • Set up alerts for pdfTeX processes accessing files outside the TeX Live installation directory
  • Review Moodle access logs for repeated requests to content rendering endpoints

How to Mitigate CVE-2025-26525

Immediate Actions Required

  • Apply the official Moodle security patch referenced in MDL-84136 immediately
  • If patching is not immediately possible, disable the TeX notation filter until updates can be applied
  • Review server logs for potential exploitation attempts
  • Audit any potentially exposed credentials and rotate them if compromise is suspected

Patch Information

Moodle has released patches to address this vulnerability. The fix is tracked under MDL-84136 and is available through the official Moodle Git repository. Administrators should update to the latest patched version of their Moodle branch.

For detailed patch information and commit history, refer to the Moodle Commit MDL-84136. Additional discussion and context can be found in the Moodle Forum Discussion.

Workarounds

  • Disable the TeX notation filter in Site Administration → Plugins → Filters → Manage filters
  • If TeX rendering is required, consider using alternative rendering methods like MathJax that don't rely on pdfTeX
  • Implement filesystem-level restrictions on the pdfTeX binary to prevent access to sensitive directories
  • Use a containerized or sandboxed environment for TeX processing to limit file system access
bash
# Disable TeX notation filter via Moodle CLI
php admin/cli/cfg.php --name=textfilters --set="tex=0"

# Alternatively, restrict pdfTeX file access using AppArmor (example profile addition)
# Add to /etc/apparmor.d/usr.bin.pdflatex
deny /etc/passwd r,
deny /var/www/moodle/config.php r,

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

  • Vulnerability Details
  • TypePath Traversal

  • Vendor/TechMoodle

  • SeverityHIGH

  • CVSS Score8.6

  • EPSS Probability0.22%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityNone
  • CWE References
  • CWE-552
  • Vendor Resources
  • Moodle Commit MDL-84136

  • Moodle Forum Discussion
  • Related CVEs
  • CVE-2022-35650: Moodle Path Traversal Vulnerability

  • CVE-2026-30884: Moodle CustomCert Info Disclosure Flaw

  • CVE-2026-26045: Moodle Backup Restore RCE Vulnerability

  • CVE-2026-26046: Moodle TeX Filter RCE Vulnerability
Default Legacy - Prefooter | 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