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-2021-36394

CVE-2021-36394: Moodle Shibboleth Plugin RCE Vulnerability

CVE-2021-36394 is a remote code execution vulnerability in Moodle's Shibboleth authentication plugin that enables attackers to execute arbitrary code. This article covers technical details, affected versions, and mitigation.

Published: February 25, 2026

CVE-2021-36394 Overview

A critical remote code execution vulnerability was identified in the Shibboleth authentication plugin within Moodle, the widely-used open-source learning management system (LMS). This vulnerability allows unauthenticated attackers to execute arbitrary code on vulnerable Moodle installations through the Shibboleth authentication mechanism, potentially leading to complete system compromise.

Critical Impact

This vulnerability enables unauthenticated remote code execution, allowing attackers to gain complete control over affected Moodle servers, access sensitive educational data, and potentially pivot to other systems within the network.

Affected Products

  • Moodle LMS with Shibboleth authentication plugin enabled
  • Moodle installations utilizing single sign-on (SSO) via Shibboleth
  • Multiple Moodle versions prior to security patches

Discovery Timeline

  • 2023-03-06 - CVE-2021-36394 published to NVD
  • 2025-03-06 - Last updated in NVD database

Technical Details for CVE-2021-36394

Vulnerability Analysis

This vulnerability exists within the Shibboleth authentication plugin, which is commonly used by educational institutions to enable single sign-on (SSO) capabilities in Moodle. The vulnerability is classified under CWE-94 (Improper Control of Generation of Code, or 'Code Injection') and CWE-384 (Session Fixation), indicating that the flaw involves improper handling of user-supplied input that can be leveraged for code execution.

The Shibboleth authentication plugin processes authentication data from identity providers, and a flaw in how this data is handled allows attackers to inject and execute arbitrary code without requiring any authentication. This makes the vulnerability particularly dangerous in internet-facing Moodle deployments, which are common in educational environments.

Root Cause

The root cause stems from improper input validation and sanitization within the Shibboleth authentication plugin's code handling routines. When processing authentication assertions or user attributes from the identity provider, the plugin fails to properly validate and sanitize input before using it in code execution contexts. This allows an attacker to craft malicious input that bypasses security controls and achieves code injection.

Attack Vector

The attack can be executed remotely over the network without any prior authentication or user interaction. An attacker can target the Shibboleth authentication endpoint of a vulnerable Moodle installation and submit specially crafted requests that exploit the code injection flaw. Since the vulnerability exists in the authentication mechanism itself, the attacker does not need valid credentials to exploit it.

The attack flow typically involves:

  1. Identifying Moodle installations with Shibboleth authentication enabled
  2. Crafting malicious authentication requests targeting the vulnerable code path
  3. Submitting the request to trigger code execution on the server
  4. Gaining unauthorized access to the underlying system with the privileges of the web server process

Detection Methods for CVE-2021-36394

Indicators of Compromise

  • Unusual HTTP requests to Shibboleth authentication endpoints (/auth/shibboleth/) with malformed or suspicious parameters
  • Unexpected process spawning from the web server process (PHP/Apache/Nginx)
  • Anomalous outbound network connections from the Moodle server
  • Unauthorized file modifications or new files in Moodle directories
  • Unexpected user account creation or privilege escalation in Moodle

Detection Strategies

  • Monitor web server access logs for suspicious requests targeting /auth/shibboleth/ endpoints with unusual payloads
  • Implement web application firewall (WAF) rules to detect code injection patterns in authentication requests
  • Deploy endpoint detection and response (EDR) solutions to identify post-exploitation activities
  • Enable PHP error logging and monitor for code injection-related errors or warnings

Monitoring Recommendations

  • Configure alerting for any process execution initiated by the web server user outside normal operations
  • Implement file integrity monitoring (FIM) on Moodle installation directories
  • Monitor for suspicious database queries that could indicate unauthorized data access
  • Set up network traffic analysis to detect command-and-control communications or data exfiltration

How to Mitigate CVE-2021-36394

Immediate Actions Required

  • Update Moodle to the latest patched version immediately
  • If patching is not immediately possible, disable the Shibboleth authentication plugin until updates can be applied
  • Review Moodle server logs for any signs of exploitation attempts
  • Conduct a security assessment of any systems that may have been compromised

Patch Information

Moodle has released security patches addressing this vulnerability. Administrators should consult the Moodle Security Advisory for detailed patch information and affected version ranges. The security advisory provides specific guidance on which versions are vulnerable and the corresponding patched releases.

Organizations should prioritize applying these patches given the critical severity and remote exploitation capability of this vulnerability.

Workarounds

  • Disable the Shibboleth authentication plugin if it is not actively required for operations
  • Implement network-level access controls to restrict access to Moodle authentication endpoints to trusted identity provider IP ranges only
  • Deploy a web application firewall (WAF) with rules to block code injection attempts targeting Shibboleth endpoints
  • Consider temporarily switching to alternative authentication methods until patches can be applied
bash
# Disable Shibboleth authentication plugin via Moodle CLI
php admin/cli/cfg.php --name=auth --set=manual,email
# Or disable via config.php (add this line)
# $CFG->auth = 'manual,email';

# Verify Shibboleth is disabled
php admin/cli/cfg.php --name=auth

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechMoodle

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability20.86%

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

  • NVD-CWE-noinfo

  • CWE-94
  • Vendor Resources
  • Moodle Discussion Forum Post
  • Related CVEs
  • CVE-2026-26045: Moodle Backup Restore RCE Vulnerability

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

  • CVE-2025-67851: Moodle Formula Injection Vulnerability

  • CVE-2025-67847: Moodle Restore Interface 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