{"id":"CVE-2024-45691","aliases":["CVE-2024-45691","GHSA-xfv7-h2qg-rjm7","BIT-MOODLE-2024-45691"],"related":[],"kind":"vulnerability","state":"published","title":"Moodle: lesson activity password bypass through php loose comparison","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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"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\".","source":"nvd"}],"published":"2024-11-20T10:25:30.380Z","modified":"2026-09-08T08:48:15.139Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-285","CWE-289"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"4.1.13","status":"affected"},{"type":"semver","introduced":"4.2","fixed":"4.2.10","status":"affected"},{"type":"semver","introduced":"4.3","fixed":"4.3.7","status":"affected"},{"type":"semver","introduced":"4.4","fixed":"4.4.3","status":"affected"}],"package":"moodle","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"4.1.13"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.2.0-beta","status":"affected","fixed":"4.2.10"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.3.0-beta","status":"affected","fixed":"4.3.7"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"4.4.0-beta","status":"affected","fixed":"4.4.3"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"4.1.13"},{"status":"affected","introduced":"4.2.0","fixed":"4.2.10"},{"status":"affected","introduced":"4.3.0","fixed":"4.3.7"},{"status":"affected","introduced":"4.4.0","fixed":"4.4.3"}],"vendor":"moodle","product":"moodle","cpe":"cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"4.1.13"},{"type":"semver","introduced":"4.2.0","status":"affected","fixed":"4.2.10"},{"type":"semver","introduced":"4.3.0","status":"affected","fixed":"4.3.7"},{"type":"semver","introduced":"4.4.0","status":"affected","fixed":"4.4.3"}],"ecosystem":"Bitnami","package":"moodle","purl":"pkg:bitnami/moodle","source":"bitnami"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2309940","tags":["issue-tracking","report","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://moodle.org/security/","tags":["advisory","vendor-advisory"],"sources":["cvelist","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45691","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/moodle/moodle/commit/3fc1073d304f660d2552b591c5fb92547ed01e92","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/moodle/moodle","tags":["package"],"sources":["ghsa"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=461897#p1854494","tags":["web"],"sources":["ghsa"]},{"url":"https://moodle.org/security","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"fedora","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-11-20T19:17:16.356Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-45691","url":"https://www.cve.org/CVERecord?id=CVE-2024-45691","licence":"CVE Terms of Use","modified":"2024-11-20T19:17:19.480Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xfv7-h2qg-rjm7","url":"https://github.com/advisories/GHSA-xfv7-h2qg-rjm7","licence":"CC-BY-4.0","modified":"2025-06-03T16:59:35.215Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-45691","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45691","licence":"Public domain","modified":"2026-06-17T07:54:40.033Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MOODLE-2024-45691","url":"https://osv.dev/vulnerability/BIT-MOODLE-2024-45691","licence":"Apache-2.0","modified":"2026-09-08T08:48:15.139Z"}],"updatedAt":"2026-11-25T22:58:48.866Z","epss":{"score":0.00414,"percentile":0.37758,"date":"2026-12-01T12:00:22.000Z"}}