CVE-2025-3637: Moodle mod_data CSRF Token Exposure Vulnerability

moodle/moodle Updated 02 Oct 2025

Summary

25/04/2025
Yes i
Low
3.1

CVE-2025-3637: Moodle's mod_data edit/delete pages pass CSRF token in GET parameter. Affects moodle/moodle across 4 version ranges.

>= 4.3.0-beta, < 4.3.12 < 4.3.12 >= 4.4.0-beta, < 4.4.8 >= 4.5.0-beta, < 4.5.4

Fixed in 4.3.12, 4.4.8 or 4.5.4, 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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

Moodle is a widely-used open-source learning platform designed to provide educators, administrators, and learners with a single robust, secure, and integrated system to create personalized learning environments. The mod_data module in Moodle allows users to create and manage data collections, facilitating the organization and sharing of information. However, a recent vulnerability has been identified that compromises the security of this module, specifically concerning the handling of CSRF tokens.

Vulnerability Detail

A security vulnerability was discovered in Moodle's mod_data module, where the edit and delete pages expose the CSRF token through the URL. This flaw allows potential attackers to exploit the token, leading to unauthorized actions being performed on behalf of legitimate users. The vulnerability arises from the improper handling of sensitive information, which should not be publicly accessible. The ramifications include the risk of unauthorized data manipulation and potential data breaches, making it critical for users to address this issue promptly.

How To Fix

Fixed versions by release line

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

  • >= 4.3.0-beta, < 4.3.12 4.3.12
    composer require moodle/moodle:4.3.12
  • < 4.3.12 4.3.12
    composer require moodle/moodle:4.3.12
  • >= 4.4.0-beta, < 4.4.8 4.4.8
    composer require moodle/moodle:4.4.8
  • >= 4.5.0-beta, < 4.5.4 4.5.4
    composer require moodle/moodle:4.5.4

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 workaround, users can restrict access to the mod_data edit and delete pages until the update is applied. This can be done by modifying user permissions or disabling the mod_data module until the patch is installed.

Conclusion

The CSRF token exposure vulnerability in Moodle's mod_data module poses a significant risk to users by allowing unauthorized actions through exposed tokens. It is crucial for users to update to the latest patched versions to mitigate this risk. Additionally, utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

The vulnerability involves the exposure of CSRF tokens in the URL of Moodle's mod_data edit and delete pages, which can be exploited by attackers.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The risks include unauthorized actions being performed on behalf of legitimate users, which can lead to data manipulation and breaches.

Yes, patches are available in versions 4.3.12, 4.4.8, and 4.5.4 of Moodle.

The CVSS score for this vulnerability is 3.1, indicating a low severity level.

Related vulnerabilities

Recent vulnerabilities recorded for moodle/moodle.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Fixed versions by release line

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

  • >= 4.3.0-beta, < 4.3.12 4.3.12
    composer require moodle/moodle:4.3.12
  • < 4.3.12 4.3.12
    composer require moodle/moodle:4.3.12
  • >= 4.4.0-beta, < 4.4.8 4.4.8
    composer require moodle/moodle:4.4.8
  • >= 4.5.0-beta, < 4.5.4 4.5.4
    composer require moodle/moodle:4.5.4

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