{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-45691","id":"CVE-2024-45691","title":"Moodle: lesson activity password bypass through php loose comparison","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.","descriptionLong":"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.","published":"2024-11-20T10:25:30.380Z","updated":"2026-10-28T02:31:00.740638653Z","reserved":"2024-09-04T22:00:30.976Z","status":"Analyzed","rejected":false,"assigner":"fedora","metric":{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"CISA-ADP"},"metrics":[{"version":"4.0","score":null,"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","source":"GitHub"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"OSV"},{"version":"3.1","score":5.4,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:N","rating":"medium","source":"GitHub"}],"rating":"medium","products":["moodle"],"affectedProducts":[{"vendor":"","product":"moodle","defaultStatus":"unaffected","versions":[{"status":"affected","version":"0","lessThan":"4.1.13","versionType":"semver"},{"status":"affected","version":"4.2","lessThan":"4.2.10","versionType":"semver"},{"status":"affected","version":"4.3","lessThan":"4.3.7","versionType":"semver"},{"status":"affected","version":"4.4","lessThan":"4.4.3","versionType":"semver"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"moodle/moodle","purl":"pkg:composer/moodle/moodle","ranges":["<4.1.13",">=4.2.0-beta <4.2.10",">=4.3.0-beta <4.3.7",">=4.4.0-beta <4.4.3"],"fixed":["4.1.13","4.2.10","4.3.7","4.4.3"],"advisory":"GHSA-xfv7-h2qg-rjm7"}],"cwes":["CWE-285","CWE-289"],"aliases":["BIT-moodle-2024-45691","GHSA-xfv7-h2qg-rjm7"],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2309940","tags":["issue-tracking","x_refsource_REDHAT","Issue Tracking","report","web"]},{"url":"https://moodle.org/security/","tags":["Vendor Advisory","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/45xxx/CVE-2024-45691.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45691","tags":["advisory"]},{"url":"https://github.com/moodle/moodle","tags":["package"]},{"url":"https://github.com/moodle/moodle/commit/3fc1073d304f660d2552b591c5fb92547ed01e92","tags":["web"]},{"url":"https://moodle.org/mod/forum/discuss.php?d=461897#p1854494","tags":["web"]},{"url":"https://moodle.org/security","tags":["web"]}],"patchReferenced":false,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00414,"epssPercentile":0.36488,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-45691","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-45691","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-45691","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-xfv7-h2qg-rjm7","ok":true,"note":"GHSA-xfv7-h2qg-rjm7"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-45691","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}