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

CVE-2024-38276: Moodle CSRF risks due to misuse of confirm_sesskey

June 18, 2024

Incorrect CSRF token checks resulted in multiple CSRF risks.

References

  • github.com/advisories/GHSA-356g-7x36-7m34
  • github.com/moodle/moodle
  • github.com/moodle/moodle/commit/093aedf79889114d004495f05969168b646b0285
  • github.com/moodle/moodle/commit/137d311fd1354c679b974633512a771e6e0559a1
  • github.com/moodle/moodle/commit/30fadc3686fa7490860a0bd87a29636139dfb371
  • github.com/moodle/moodle/commit/31ced0851189a6879e4cd27c7e65d21dd9d6e87e
  • github.com/moodle/moodle/commit/57f20b6cb352893871c3afdfa8a4c09a96e16764
  • github.com/moodle/moodle/commit/756090ed79aa056d0b5f58e7a1dff67f139f76b4
  • github.com/moodle/moodle/commit/9af9711c0a78ebad87d49bcb369ff813bc57d0a7
  • github.com/moodle/moodle/commit/a0d8c025f732d5c18a2b9d1a8e5cbee35dce86f4
  • github.com/moodle/moodle/commit/c18b59808cefe7b54c85dce6bf2cc71601080667
  • github.com/moodle/moodle/commit/c1aacb3e2884ea4dcc221c5ef2e449ce345f78ae
  • github.com/moodle/moodle/commit/c5b1604e8136db6d72057dd8052955058489206c
  • github.com/moodle/moodle/commit/da8e8cee6ffaf7c184eded97e1016f20c9de0561
  • github.com/moodle/moodle/commit/dc84fcfab06a4a0fe37797b8422e9fe3a1031c3e
  • github.com/moodle/moodle/commit/e1dab5f38166a2ff62983178f7bf8f0ed3a61090
  • github.com/moodle/moodle/commit/e23f603c41055ab92f9b430cf0e7a54b4e120f95
  • github.com/moodle/moodle/commit/f2807dee5bc777d9c58b7a70cba6e4c21ee02ea1
  • moodle.org/mod/forum/discuss.php?d=459501
  • nvd.nist.gov/vuln/detail/CVE-2024-38276

Code Behaviors & Features

Detect and mitigate CVE-2024-38276 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 8.8 HIGH

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

Learn more about CVSS

Weakness

  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Wed, 17 Dec 2025 12:18:45 +0000.