CVE-2024-38276: Moodle CSRF risks due to misuse of confirm_sesskey
Incorrect CSRF token checks resulted in multiple CSRF risks.
Published Jun 18, 2024 · Updated Aug 4, 2024
Affected packages
moodle/moodle
- Ecosystem
- Composer (PHP)
- Affected
- >= 4.4.0-beta, < 4.4.1
- Fixed in
- 4.4.1
- Check
composer show moodle/moodle
moodle/moodle
- Ecosystem
- Composer (PHP)
- Affected
- >= 4.3.0-beta, < 4.3.5
- Fixed in
- 4.3.5
- Check
composer show moodle/moodle
moodle/moodle
- Ecosystem
- Composer (PHP)
- Affected
- >= 4.2.0-beta, < 4.2.8
- Fixed in
- 4.2.8
- Check
composer show moodle/moodle
moodle/moodle
- Ecosystem
- Composer (PHP)
- Affected
- < 4.1.11
- Fixed in
- 4.1.11
- Check
composer show moodle/moodle
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Incorrect CSRF token checks resulted in multiple CSRF risks.
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-38276
- https://moodle.org/mod/forum/discuss.php?d=459501
- https://github.com/moodle/moodle/commit/f2807dee5bc777d9c58b7a70cba6e4c21ee02ea1
- https://github.com/moodle/moodle/commit/e23f603c41055ab92f9b430cf0e7a54b4e120f95
- https://github.com/moodle/moodle/commit/e1dab5f38166a2ff62983178f7bf8f0ed3a61090
- https://github.com/moodle/moodle/commit/dc84fcfab06a4a0fe37797b8422e9fe3a1031c3e
- https://github.com/moodle/moodle/commit/da8e8cee6ffaf7c184eded97e1016f20c9de0561
- https://github.com/moodle/moodle/commit/c5b1604e8136db6d72057dd8052955058489206c
- https://github.com/moodle/moodle/commit/c1aacb3e2884ea4dcc221c5ef2e449ce345f78ae
- https://github.com/moodle/moodle/commit/c18b59808cefe7b54c85dce6bf2cc71601080667
- https://github.com/moodle/moodle/commit/a0d8c025f732d5c18a2b9d1a8e5cbee35dce86f4
- https://github.com/moodle/moodle/commit/9af9711c0a78ebad87d49bcb369ff813bc57d0a7
- https://github.com/moodle/moodle/commit/756090ed79aa056d0b5f58e7a1dff67f139f76b4
- https://github.com/moodle/moodle/commit/57f20b6cb352893871c3afdfa8a4c09a96e16764
- https://github.com/moodle/moodle/commit/31ced0851189a6879e4cd27c7e65d21dd9d6e87e
- https://github.com/moodle/moodle/commit/30fadc3686fa7490860a0bd87a29636139dfb371
- https://github.com/moodle/moodle/commit/137d311fd1354c679b974633512a771e6e0559a1
- https://github.com/moodle/moodle/commit/093aedf79889114d004495f05969168b646b0285
- https://lists.fedoraproject.org/archives/list/[email protected]/message/F7AZYR7EXV6E5SQE2GYTNQE3NOENJCQ6
- https://lists.fedoraproject.org/archives/list/[email protected]/message/GHTIX55J4Q4LEOMLNEA4OZSWVEENQX7E
- https://github.com/advisories/GHSA-356g-7x36-7m34
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Composer (PHP) vulnerabilities
All Composer (PHP) entriesCVE-2026-26045
Moodle has a Remote Code Execution risk via file restore
high7.2Feb 21, 2026CVE-2026-26047
Moodle TeX formula editor is vulnerable to DoS through lack of execution time limits
medium6.5Feb 21, 2026CVE-2025-67848
Moodle authentication bypass vulnerability
high8.1Feb 3, 2026CVE-2025-67849
Moodle Cross-site Scripting (XSS) vulnerability
high7.3Feb 3, 2026CVE-2025-67850
Moodle vulnerable to Cross-site Scripting
high7.3Feb 3, 2026CVE-2025-67851
Moodle formula injection vulnerability
medium6.1Feb 3, 2026
