Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. moodle/moodle
  4. ›
  5. CVE-2024-38275

CVE-2024-38275: Moodle HTTP authorization header is preserved between "emulated redirects"

June 18, 2024 (updated May 1, 2025)

The cURL wrapper in Moodle retained the original request headers when following redirects, so HTTP authorization header information could be unintentionally sent in requests to redirect URLs.

References

  • github.com/advisories/GHSA-p2cj-86v4-7782
  • github.com/moodle/moodle
  • github.com/moodle/moodle/commit/0df3c5837a592e6663c4d531ff6a1f776bc2f785
  • github.com/moodle/moodle/commit/3e38c84315a7991ce5ef5f241f5e873b5ca24f01
  • github.com/moodle/moodle/commit/836b2c23a210317d130017d77bb64e3b510869a9
  • github.com/moodle/moodle/commit/f7988538b2208c55f2c40ce4f0815901dc88049b
  • moodle.org/mod/forum/discuss.php?d=459500
  • nvd.nist.gov/vuln/detail/CVE-2024-38275

Code Behaviors & Features

Detect and mitigate CVE-2024-38275 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.1.11, all versions starting from 4.2.0-beta before 4.2.8, all versions starting from 4.3.0-beta before 4.3.5, all versions starting from 4.4.0-beta before 4.4.1

Fixed versions

  • 4.4.1
  • 4.3.5
  • 4.2.8
  • 4.1.11

Solution

Upgrade to versions 4.1.11, 4.2.8, 4.3.5, 4.4.1 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Weakness

  • CWE-226: Sensitive Information in Resource Not Removed Before Reuse
  • CWE-459: Incomplete Cleanup

Source file

packagist/moodle/moodle/CVE-2024-38275.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:42 +0000.