CVE-2010-1615: Moodle SQL Injection Vulnerability in Wiki Module

moodle/moodle Updated 14 Dec 2025

Summary

13/05/2022
Yes i
High
8.1

CVE-2010-1615: Moodle vulnerable to SQL injection. Affects moodle/moodle across 2 version ranges.

>= 1.8.0, < 1.8.12 >= 1.9.0, < 1.9.8

Fixed in 1.8.12 or 1.9.8, depending on the release line you run. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Moodle is an open-source learning platform designed to provide educators, administrators, and learners with a single robust, secure, and integrated system to create personalized learning environments. It is widely used in educational institutions for online learning and course management. However, certain versions of Moodle (1.8.x before 1.8.12 and 1.9.x before 1.9.8) are vulnerable to SQL injection attacks, which can compromise the integrity and confidentiality of the database.

Vulnerability Detail

Multiple SQL injection vulnerabilities exist in Moodle versions 1.8.x before 1.8.12 and 1.9.x before 1.9.8. These vulnerabilities allow remote attackers to execute arbitrary SQL commands through the 'add_to_log' function in the wiki module (mod/wiki/view.php) and through inadequate data validation in some form elements related to lib/form/selectgroups.php. The exploitation of these vulnerabilities can lead to unauthorized access to sensitive data, data manipulation, or even complete database compromise.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 1.8.0, < 1.8.12 1.8.12
    composer require moodle/moodle:1.8.12
  • >= 1.9.0, < 1.9.8 1.9.8
    composer require moodle/moodle:1.9.8

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Workaround

As a temporary measure, users can restrict access to the affected modules or disable the wiki functionality until the patch is applied. Additionally, implementing web application firewalls (WAF) can help mitigate SQL injection attempts.

Conclusion

The SQL injection vulnerabilities in Moodle versions 1.8.x before 1.8.12 and 1.9.x before 1.9.8 pose significant risks to users and their data. Immediate action is required to update to the latest versions to safeguard against potential exploitation.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

SQL injection is a code injection technique that exploits vulnerabilities in an application's software by inserting or 'injecting' SQL queries via input data from the client to the application.

You can check if your application is affected by using Vulert, which monitors and alerts for open-source vulnerabilities in real-time. Visit the Vulert playground at Vulert Scanner to analyze your composer.lock file.

The risks include unauthorized access to sensitive information, data manipulation, and potential complete control over the database, which can lead to data breaches and loss of integrity.

Yes, it is crucial to update to the latest patched version as soon as possible to protect your system from potential attacks.

Yes, you can prevent SQL injection by implementing prepared statements, using stored procedures, and employing input validation and sanitization techniques.

Related vulnerabilities

Recent vulnerabilities recorded for moodle/moodle.

How To Fix

Fixed versions by release line

The minimum fixed version depends on the release line you run.

  • >= 1.8.0, < 1.8.12 1.8.12
    composer require moodle/moodle:1.8.12
  • >= 1.9.0, < 1.9.8 1.9.8
    composer require moodle/moodle:1.9.8

Tip — Not sure which release line you're on? Vulert can find the fix for the version you are using. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback