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

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Published: 2024-06-18T19:49:26.986Z
- Modified: 2026-09-08T08:48:15.285Z
- Also known as: GHSA-p2cj-86v4-7782, BIT-MOODLE-2024-38275
- Weaknesses: CWE-226, CWE-459
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: fedora

## Description

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.

(As written by CVE List.)

## Affected

- Moodle Moodle: 4.4; from 4.3 up to 4.3.4; from 4.2 up to 4.2.7; from 4.1 up to 4.1.10; from 4.1.0 up to 4.1.10; from 4.2.0 up to 4.2.7; from 4.3.0 up to 4.3.4; from 4.4.0 before 4.4.1; before 4.1.11; from 4.2.0 before 4.2.8; from 4.3.0 before 4.3.5; 4.4.0
- moodle/moodle (Packagist): from 4.4.0-beta before 4.4.1; from 4.3.0-beta before 4.3.5; from 4.2.0-beta before 4.2.8; before 4.1.11
- moodle (Bitnami): before 4.1.11; from 4.2.0 before 4.2.8; from 4.3.0 before 4.3.5; from 4.4.0 before 4.4.1

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 7.5 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`
- GitHub: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N`
- Bitnami Vulnerability Database: rating High

## References

- <https://moodle.org/mod/forum/discuss.php?d=459500> (advisory, vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-38275> (advisory, web)
- <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)

## Sources

- CVE List: [CVE-2024-38275](https://www.cve.org/CVERecord?id=CVE-2024-38275), CVE Terms of Use, modified 2024-08-02
- GitHub Advisory Database: [GHSA-p2cj-86v4-7782](https://github.com/advisories/GHSA-p2cj-86v4-7782), CC-BY-4.0, modified 2025-05-01
- NVD: [CVE-2024-38275](https://nvd.nist.gov/vuln/detail/CVE-2024-38275), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MOODLE-2024-38275](https://osv.dev/vulnerability/BIT-MOODLE-2024-38275), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2024-38275 · Whole record: https://cve.day/CVE-2024-38275.json · Rebuilt by cve.day 2026-11-25T22:58:41.988Z
