HIGH7.5
GHSA-p2cj-86v4-7782
Moodle HTTP authorization header is preserved between "emulated redirects"
Quick fix
GHSA-p2cj-86v4-7782 — moodle/moodle: upgrade to the fixed version with the command below.
composer require moodle/moodle:^4.4.1Details
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.
Are you affected?
Enter the version of the package you're using.
Affected packages
Packagist/moodle/moodle
Introduced in:
4.4.0-betaFixed in: 4.4.1Fix
composer require moodle/moodle:^4.4.1Packagist/moodle/moodle
Introduced in:
4.3.0-betaFixed in: 4.3.5Fix
composer require moodle/moodle:^4.3.5Packagist/moodle/moodle
Introduced in:
4.2.0-betaFixed in: 4.2.8Fix
composer require moodle/moodle:^4.2.8References
- https://nvd.nist.gov/vuln/detail/CVE-2024-38275[ADVISORY]
- https://github.com/moodle/moodle/commit/0df3c5837a592e6663c4d531ff6a1f776bc2f785[WEB]
- https://github.com/moodle/moodle/commit/3e38c84315a7991ce5ef5f241f5e873b5ca24f01[WEB]
- https://github.com/moodle/moodle/commit/836b2c23a210317d130017d77bb64e3b510869a9[WEB]
- https://github.com/moodle/moodle/commit/f7988538b2208c55f2c40ce4f0815901dc88049b[WEB]
- https://github.com/moodle/moodle[PACKAGE]
- https://moodle.org/mod/forum/discuss.php?d=459500[WEB]