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-2022-0983

CVE-2022-0983: Moodle SQL Injection Vulnerability

CVE-2022-0983 is an SQL injection flaw in Moodle's Badges criteria configuration that could allow unauthorized database access. This article covers the technical details, affected versions, impact, and mitigation steps.

Published: February 17, 2026

CVE-2022-0983 Overview

An SQL injection vulnerability was identified in the Moodle learning management system, specifically within the Badges code relating to configuring criteria. This vulnerability allows authenticated attackers with teacher or manager roles to inject malicious SQL queries through the badge configuration interface, potentially leading to unauthorized data access, modification, or deletion within the underlying database.

Critical Impact

Authenticated users with teacher/manager capabilities can execute arbitrary SQL commands against the Moodle database, potentially compromising confidentiality, integrity, and availability of sensitive educational data.

Affected Products

  • Moodle LMS (multiple versions)
  • Fedora 35 and 36
  • Fedora Extra Packages for Enterprise Linux (EPEL) 7.0

Discovery Timeline

  • 2022-03-25 - CVE-2022-0983 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-0983

Vulnerability Analysis

This SQL injection vulnerability (CWE-89) exists within Moodle's badge criteria configuration functionality. The vulnerable code fails to properly sanitize user-supplied input when processing badge configuration parameters, allowing malicious SQL statements to be injected and executed against the backend database.

The attack requires network access and authenticated credentials with at least teacher-level permissions. While this limits the attack surface to authenticated users, the default Moodle configuration grants these capabilities to teachers and managers, who may be numerous in large educational institutions. Once exploited, an attacker can achieve full database compromise, extracting sensitive student data, grades, personal information, and potentially escalating privileges within the system.

Root Cause

The root cause of this vulnerability is improper input validation and lack of parameterized queries in the Badges module code. When configuring badge criteria, user-supplied parameters are concatenated directly into SQL statements rather than being properly escaped or bound as parameters. This classic SQL injection pattern allows attackers to break out of the intended query structure and execute arbitrary database commands.

Attack Vector

The vulnerability is exploitable over the network by any authenticated user with teacher or manager capabilities. The attacker navigates to the badge configuration interface and injects SQL payloads into the criteria configuration fields. Since no user interaction is required beyond the attacker's own actions, and the attack complexity is low, exploitation is straightforward for anyone with the requisite access level.

The attack flow involves crafting malicious input containing SQL syntax that breaks out of the original query context, then appending arbitrary SQL commands. These commands execute with the database privileges of the Moodle application, typically allowing full read/write access to all Moodle data.

Detection Methods for CVE-2022-0983

Indicators of Compromise

  • Unusual or malformed entries in web server access logs related to badge configuration endpoints
  • Database query logs showing unexpected SQL syntax such as UNION SELECT, OR 1=1, or comment sequences (--, /*)
  • Unexplained changes to badge configurations or criteria
  • Evidence of data exfiltration attempts in database audit logs

Detection Strategies

  • Deploy web application firewalls (WAF) with SQL injection detection signatures monitoring badge-related API endpoints
  • Enable database query logging and alert on queries containing SQL injection patterns
  • Implement application-level monitoring for anomalous badge configuration activities
  • Review Moodle access logs for suspicious teacher/manager account behavior

Monitoring Recommendations

  • Enable comprehensive audit logging for all badge module activities within Moodle
  • Configure database monitoring to detect unusual query patterns or execution times
  • Monitor for elevated database error rates which may indicate injection attempts
  • Implement user behavior analytics to detect anomalous actions by teacher accounts

How to Mitigate CVE-2022-0983

Immediate Actions Required

  • Update Moodle to the latest patched version immediately
  • Review database and application logs for evidence of exploitation
  • Audit all teacher and manager accounts for suspicious activity
  • Consider temporarily restricting badge configuration capabilities until patching is complete

Patch Information

Moodle has released security updates to address this vulnerability. Administrators should consult the Red Hat Bug Report #2064119 and Fedora Package Announcement for specific version information and update instructions. Apply all available security patches to remediate this vulnerability.

Workarounds

  • Restrict badge configuration capabilities to highly trusted administrators only via role permissions
  • Implement additional input validation at the reverse proxy or WAF level
  • Enable database-level query logging and monitoring for SQL injection patterns
  • Consider disabling the Badges feature temporarily if not critical to operations
bash
# Example: Restrict badge capabilities in Moodle
# Navigate to Site Administration > Users > Permissions > Define roles
# Edit Teacher role and remove 'moodle/badges:configurecriteria' capability
# This limits exposure while awaiting patch deployment

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

  • Vulnerability Details
  • TypeSQLI

  • Vendor/TechMoodle

  • SeverityHIGH

  • CVSS Score8.8

  • EPSS Probability0.31%

  • 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-89
  • Technical References
  • Red Hat Bug Report #2064119

  • Fedora Package Announcement
  • Related CVEs
  • CVE-2025-26533: Moodle SQL Injection Vulnerability

  • CVE-2022-0332: Moodle SQL Injection Vulnerability

  • CVE-2021-36393: Moodle SQL Injection Vulnerability

  • CVE-2026-30884: Moodle CustomCert Info Disclosure 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