CVE-2024-43427: Moodle Package Exposes Sensitive Secrets in Admin Presets Export

moodle/moodle Updated 02 Oct 2025

Summary

11/11/2024
Yes i
Low
3.7

CVE-2024-43427: Moodle admin presets export tool includes some secrets that should not be exported. Affects moodle/moodle across 4 version ranges.

< 4.1.12 >= 4.2.0, < 4.2.9 >= 4.3.0, < 4.3.6 >= 4.4.0, < 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-43427 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 Devnack Penetration testing for web, API and mobile 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. It offers a variety of features including course management, user management, and customizable themes. However, a recent vulnerability has been identified in the admin presets export tool, which inadvertently includes sensitive information that should not be shared.

Vulnerability Detail

A flaw was found in Moodle's admin presets export tool, where sensitive secrets and keys are not excluded from the export process. This oversight could lead to unintentional exposure of these secrets if the exported presets are shared with third parties. The vulnerability stems from improper handling of sensitive data during the export operation, potentially allowing unauthorized access to critical information.

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, < 4.2.9 4.2.9
    composer require moodle/moodle:4.2.9
  • >= 4.3.0, < 4.3.6 4.3.6
    composer require moodle/moodle:4.3.6
  • >= 4.4.0, < 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 measure, it is advisable to avoid exporting site administration presets until the package has been updated to a secure version. Additionally, ensure that any exported presets are not shared with untrusted parties.

Conclusion

The CVE-2024-43427 vulnerability in Moodle poses a significant risk by exposing sensitive secrets during the export of admin presets. It is crucial for users to update to the latest patched versions to mitigate this risk and protect their data.

See every vulnerability recorded for moodle/moodle →

Share this vulnerability

FAQ

CVE-2024-43427 is a vulnerability in Moodle that allows sensitive secrets to be included in the admin presets export, potentially leading to data leaks.

You can check if your application is affected by using the Vulert playground at Vulert Scanner, which monitors vulnerabilities based on your composer.lock file.

If you cannot update Moodle right away, avoid exporting admin presets and ensure that any exported data is not shared with untrusted individuals.

Failing to address this vulnerability could result in unauthorized access to sensitive information, leading to potential data breaches and loss of user trust.

You can find more information about Moodle vulnerabilities on the official Moodle website or security advisories related to the package.

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, < 4.2.9 4.2.9
    composer require moodle/moodle:4.2.9
  • >= 4.3.0, < 4.3.6 4.3.6
    composer require moodle/moodle:4.3.6
  • >= 4.4.0, < 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