CVE-2026-26047: Moodle TeX Formula Editor Denial of Service Vulnerability

moodle/moodle Updated 25 Feb 2026

Summary

21/02/2026
Yes i
Moderate
6.5

CVE-2026-26047: Moodle TeX formula editor is vulnerable to DoS through lack of execution time limits. Affects moodle/moodle across 3 version ranges.

< 4.5.9 >= 5.0.0-beta, < 5.0.5 >= 5.1.0-beta, < 5.1.2

Fixed in 4.5.9, 5.0.5 or 5.1.2, depending on the release line you run. How to fix ↓

Also tracked for

The same CVE-2026-26047 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 TeX formula editor in Moodle allows users to render mathematical formulas using TeX syntax. However, it has been found to be vulnerable to Denial of Service (DoS) attacks due to insufficient execution time limits when processing complex formulas.

Vulnerability Detail

A Denial of Service vulnerability exists in Moodle's TeX formula editor, specifically when rendering TeX content with mimetex. The lack of execution time limits can allow specially crafted formulas to consume excessive server resources. This can lead to degraded performance or even service interruptions, especially if an authenticated user exploits this vulnerability to submit malicious formulas.

How To Fix

Fixed versions by release line

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

  • < 4.5.9 4.5.9
    composer require moodle/moodle:4.5.9
  • >= 5.0.0-beta, < 5.0.5 5.0.5
    composer require moodle/moodle:5.0.5
  • >= 5.1.0-beta, < 5.1.2 5.1.2
    composer require moodle/moodle:5.1.2

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, you can limit the execution time for PHP scripts in your server configuration. This can be done by adding the following line to your php.ini file: max_execution_time = 30. This will help mitigate the impact of the vulnerability until a proper update can be applied.

Conclusion

The identified Denial of Service vulnerability in Moodle's TeX formula editor poses a risk to server performance and availability. It is crucial for users to update their installations to the latest patched versions to mitigate this risk. Implementing temporary workarounds can provide additional protection until updates are applied.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 6.5, indicating a moderate severity level.

Any Moodle installation using the TeX formula editor versions prior to the patched versions mentioned is potentially affected.

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

If immediate updates are not possible, consider implementing the suggested workaround to limit execution time for PHP scripts.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities using just your composer.lock file.

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.

  • < 4.5.9 4.5.9
    composer require moodle/moodle:4.5.9
  • >= 5.0.0-beta, < 5.0.5 5.0.5
    composer require moodle/moodle:5.0.5
  • >= 5.1.0-beta, < 5.1.2 5.1.2
    composer require moodle/moodle:5.1.2

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