# CVE-2024-45691: Moodle: lesson activity password bypass through php loose comparison

- Severity: Medium 5.4 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/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.41%, higher than 37% of CVEs (2026-12-01)
- Published: 2024-11-20T10:25:30.380Z
- Modified: 2026-09-08T08:48:15.139Z
- Also known as: GHSA-xfv7-h2qg-rjm7, BIT-MOODLE-2024-45691
- Weaknesses: CWE-285, CWE-289
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: fedora

## Description

A flaw was found in Moodle. When restricting access to a lesson activity with a password, certain passwords could be bypassed or less secure due to a loose comparison in the password-checking logic. This issue only affected passwords set to "magic hash" values.

(As written by CVE List.)

## Affected

- moodle: before 4.1.13; from 4.2 before 4.2.10; from 4.3 before 4.3.7; from 4.4 before 4.4.3
- moodle/moodle (Packagist): before 4.1.13; from 4.2.0-beta before 4.2.10; from 4.3.0-beta before 4.3.7; from 4.4.0-beta before 4.4.3
- moodle moodle: before 4.1.13; from 4.2.0 before 4.2.10; from 4.3.0 before 4.3.7; from 4.4.0 before 4.4.3
- moodle (Bitnami): before 4.1.13; from 4.2.0 before 4.2.10; from 4.3.0 before 4.3.7; from 4.4.0 before 4.4.3

## Every score

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

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2309940> (issue-tracking, report, web)
- <https://moodle.org/security/> (advisory, vendor-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-45691> (advisory, web)
- <https://github.com/moodle/moodle/commit/3fc1073d304f660d2552b591c5fb92547ed01e92> (web)
- <https://github.com/moodle/moodle> (package)
- <https://moodle.org/mod/forum/discuss.php?d=461897#p1854494> (web)
- <https://moodle.org/security> (web)

## Sources

- CVE List: [CVE-2024-45691](https://www.cve.org/CVERecord?id=CVE-2024-45691), CVE Terms of Use, modified 2024-11-20
- GitHub Advisory Database: [GHSA-xfv7-h2qg-rjm7](https://github.com/advisories/GHSA-xfv7-h2qg-rjm7), CC-BY-4.0, modified 2025-06-03
- NVD: [CVE-2024-45691](https://nvd.nist.gov/vuln/detail/CVE-2024-45691), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-MOODLE-2024-45691](https://osv.dev/vulnerability/BIT-MOODLE-2024-45691), Apache-2.0, modified 2026-09-08

---

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