CVE-2024-43432: Moodle cURL Wrapper HTTP Authorization Header Exposure

moodle Updated 02 Oct 2025

Summary

02/05/2025
Yes i
Medium
Not published

CVE-2024-43432: Moodle: authorization headers preserved between "emulated redirects". Affects 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-43432 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 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 supports various features such as course management, user management, and a wide range of plugins. However, it has been found to have a vulnerability in its cURL wrapper that can lead to unintended exposure of HTTP authorization headers during emulated redirects.

Vulnerability Detail

A flaw was identified in Moodle's cURL wrapper where it strips HTTPAUTH and USERPWD headers during emulated redirects but retains other original request headers. This behavior can lead to the unintended sending of HTTP authorization header information to redirect URLs, potentially exposing sensitive information to unauthorized parties. The vulnerability affects various versions of Moodle, making it critical for users to address it promptly.

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
  • >= 4.2.0, < 4.2.9 4.2.9
  • >= 4.3.0, < 4.3.6 4.3.6
  • >= 4.4.0, < 4.4.2 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, users can avoid using HTTP authorization headers in requests that may be redirected. This can be done by modifying the request logic to ensure sensitive headers are not included in requests that could lead to redirects.

Conclusion

In summary, CVE-2024-43432 presents a significant risk to Moodle users by potentially exposing sensitive HTTP authorization headers during redirects. It is crucial for users to update their installations to the latest patched versions to mitigate this vulnerability and ensure the security of their applications.

See every vulnerability recorded for moodle →

Share this vulnerability

FAQ

CVE-2024-43432 is a vulnerability in Moodle's cURL wrapper that can unintentionally expose HTTP authorization headers during redirects.

You can check if your application is affected by using Vulert's playground at Vulert Scanner, which allows you to monitor for open-source vulnerabilities without requiring a signup.

The vulnerability affects Moodle versions prior to 4.1.12, 4.2.9, 4.3.6, and 4.4.2. Users should update to these versions or later.

The main risk is the unintended exposure of sensitive HTTP authorization information to unauthorized redirect URLs, which could lead to security breaches.

Yes, the permanent fix is to update to the patched versions of Moodle mentioned above. Regular updates are recommended to maintain security.

Related vulnerabilities

Recent vulnerabilities recorded for 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
  • >= 4.2.0, < 4.2.9 4.2.9
  • >= 4.3.0, < 4.3.6 4.3.6
  • >= 4.4.0, < 4.4.2 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