{"id":"GHSA-62wv-866c-rh86","summary":"Moodle does not properly restrict comment capabilities","details":"comment/lib.php in Moodle 2.0.x before 2.0.4 and 2.1.x before 2.1.1 does not properly restrict comment capabilities, which allows remote attackers to post a comment by leveraging the guest role and operating on a front-page activity.","aliases":["CVE-2011-4297"],"modified":"2025-04-12T03:27:06.418627Z","published":"2022-05-13T01:13:15Z","database_specific":{"nvd_published_at":"2012-07-16T10:28:00Z","cwe_ids":["CWE-863"],"severity":"MODERATE","github_reviewed":true,"github_reviewed_at":"2025-04-12T02:53:38Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2011-4297"},{"type":"PACKAGE","url":"http://git.moodle.org"},{"type":"WEB","url":"http://git.moodle.org/gw?p=moodle.git%3Ba=commit%3Bh=9da3c2efadcc5f56cb8adc19c67ed16be35780f3"},{"type":"WEB","url":"http://git.moodle.org/gw?p=moodle.git;a=commit;h=9da3c2efadcc5f56cb8adc19c67ed16be35780f3"},{"type":"WEB","url":"http://moodle.org/mod/forum/discuss.php?d=182740"},{"type":"WEB","url":"http://openwall.com/lists/oss-security/2011/11/14/1"}],"affected":[{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/moodle/moodle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.0.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-62wv-866c-rh86/GHSA-62wv-866c-rh86.json"}},{"package":{"name":"moodle/moodle","ecosystem":"Packagist","purl":"pkg:composer/moodle/moodle"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.1.0"},{"fixed":"2.1.1"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-62wv-866c-rh86/GHSA-62wv-866c-rh86.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N/E:U"}]}