CVE-2024-43426: Moodle Arbitrary File Read Vulnerability via pdfTeX

moodle/moodle Updated 02 Oct 2025

Summary

07/11/2024
Yes i
Moderate
7.5

CVE-2024-43426: Moodle has arbitrary file read risk through pdfTeX. Affects moodle/moodle across 4 version ranges.

< 4.1.12 >= 4.2.0-beta, < 4.2.9 >= 4.3.0-beta, < 4.3.6 >= 4.4.0-beta, < 4.4.2

Fixed in 4 releases; the minimum fixed version depends on the release line you run. How to fix ↓

Also tracked for

The same CVE-2024-43426 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

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

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. It supports various functionalities, including course management, user enrollment, and content delivery. However, Moodle's integration with pdfTeX, a typesetting system, has revealed a significant security vulnerability that could allow unauthorized access to sensitive files on the server.

Vulnerability Detail

A flaw was identified in pdfTeX due to insufficient sanitization in the TeX notation filter. This vulnerability allows an attacker to exploit the system and read arbitrary files from the server where pdfTeX is available, particularly on installations that include TeX Live. The potential ramifications include unauthorized access to sensitive information, which could lead to data breaches or further exploitation of the system.

How To Fix

Fixed versions by release line

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

  • < 4.1.12 4.1.12
    composer require moodle/moodle:4.1.12
  • >= 4.2.0-beta, < 4.2.9 4.2.9
    composer require moodle/moodle:4.2.9
  • >= 4.3.0-beta, < 4.3.6 4.3.6
    composer require moodle/moodle:4.3.6
  • >= 4.4.0-beta, < 4.4.2 4.4.2
    composer require moodle/moodle:4.4.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 disable the pdfTeX functionality on your Moodle installation until the package is updated. This can be done by modifying the configuration settings in your Moodle admin panel to restrict access to TeX functionalities.

Conclusion

The CVE-2024-43426 vulnerability in Moodle poses a significant risk due to arbitrary file reading capabilities via pdfTeX. It is crucial for users to update their installations to the patched versions to mitigate this risk and ensure the security of their systems.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

CVE-2024-43426 is a security vulnerability in Moodle that allows for arbitrary file reading through the pdfTeX integration due to insufficient input sanitization.

This vulnerability can lead to unauthorized access to sensitive files on the server, posing a risk of data breaches and exploitation.

The affected versions include all versions prior to 4.1.12, 4.2.9, 4.3.6, and 4.4.2.

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

Vulert is a monitoring tool that uses the composer.lock file to track and alert users in real-time about open-source vulnerabilities in their software.

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.1.12 4.1.12
    composer require moodle/moodle:4.1.12
  • >= 4.2.0-beta, < 4.2.9 4.2.9
    composer require moodle/moodle:4.2.9
  • >= 4.3.0-beta, < 4.3.6 4.3.6
    composer require moodle/moodle:4.3.6
  • >= 4.4.0-beta, < 4.4.2 4.4.2
    composer require moodle/moodle:4.4.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