CVE-2024-45691 json
Moodle: lesson activity password bypass through php loose comparison
published 2024-11-20 23 mo ago modified 2026-09-08 2 mo ago also BIT-moodle-2024-45691 , EUVD-2024-3390 , GHSA-xfv7-h2qg-rjm7
- cvss
- 5.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 36%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- packagist moodle/moodle 4.1.13, 4.2.10, 4.3.7, 4.4.3
- bitnami moodle 4.1.13, 4.2.10, 4.3.7, 4.4.3
- moodle moodle 4.1.13, 4.2.10, 4.3.7, 4.4.3
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2024-45691 updated cvss 9.8
moodle: Lesson activity password bypass through PHP loose comparison
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 23 mo ago
Exploit prediction
0.41% chance of exploitation in the next 30 days, higher than 36% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
| OSV | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | moodle/moodle | <4.1.13 >=4.2.0-beta, <4.2.10 >=4.3.0-beta, <4.3.7 >=4.4.0-beta, <4.4.3 |
4.1.13 4.2.10 4.3.7 4.4.3 |
| bitnami | moodle | <4.1.13 >=4.2.0, <4.2.10 >=4.3.0, <4.3.7 >=4.4.0, <4.4.3 |
4.1.13 4.2.10 4.3.7 4.4.3 |
Classification
References
-
github.com
/moodle/moodle/commit/3fc1073d304f660d2552b591c5fb92547ed01e92
web
-
moodle.org
/security/
vendor-advisory, advisory
-
bugzilla.redhat.com
/show_bug.cgi?id=2309940
issue-tracking, web, report
-
nvd.nist.gov
/vuln/detail/CVE-2024-45691
advisory, web
-
github.com
/moodle/moodle
package
-
moodle.org
/mod/forum/discuss.php?d=461897#p1854494
web
-
moodle.org
/security
web
Sources
- CVE List CVE-2024-45691
- GitHub Advisory GHSA-xfv7-h2qg-rjm7
- NVD CVE-2024-45691
- OSV BIT-moodle-2024-45691
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.