CVE-2024-45691
JSON

5.4medium

Moodle: lesson activity password bypass through php loose comparison

Severity
5.4medium CVSS:3.1 by CISA-ADP
Exploit likelihood
0.41% (higher than 37% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
fedora
Also known as
GHSA-xfv7-h2qg-rjm7BIT-MOODLE-2024-45691

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.

Affected

Product or packageVersionsReported by
moodlebefore 4.1.13, from 4.2 before 4.2.10, from 4.3 before 4.3.7, from 4.4 before 4.4.3CVE List
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.3GitHub Advisory Database
moodle moodlebefore 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.3NVD
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.3Bitnami Vulnerability Database

All scores

CISA-ADP5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
GitHub5.4medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N
GitHubmedium CVSS:4.0CVSS: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 Databasemedium rating

Classification

CWE-285CWE-289

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Se encontró una falla en Moodle. Al restringir el acceso a una actividad de lección con una contraseña, ciertas contraseñas podían ser ignoradas o menos seguras debido a una comparación poco precisa en la lógica de verificación de contraseñas. Este problema solo afectaba a las contraseñas configuradas con valores de "hash mágico".

References

Sources

SourceRecordLicence
CVE ListCVE-2024-45691 changed 2024-11-20CVE Terms of Use
GitHub Advisory DatabaseGHSA-xfv7-h2qg-rjm7 changed 2025-06-03CC-BY-4.0
NVDCVE-2024-45691 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-MOODLE-2024-45691 changed 2026-09-08Apache-2.0