{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2012-0798","published":"2012-07-17T10:20:53.130000Z","last_modified":"2026-06-16T23:38:16.853000Z","status":"Modified","cvss":{"version":"2.0","score":5.5,"severity":"MEDIUM","vector":"AV:N/AC:L/Au:S/C:P/I:P/A:N","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-264"],"cpes":[{"criteria":"cpe:2.3:a:moodle:moodle:2.1.0:*:*:*:*:*:*:*","part":"a","vendor":"moodle","product":"moodle","version":"2.1.0"},{"criteria":"cpe:2.3:a:moodle:moodle:2.1.1:*:*:*:*:*:*:*","part":"a","vendor":"moodle","product":"moodle","version":"2.1.1"},{"criteria":"cpe:2.3:a:moodle:moodle:2.1.2:*:*:*:*:*:*:*","part":"a","vendor":"moodle","product":"moodle","version":"2.1.2"},{"criteria":"cpe:2.3:a:moodle:moodle:2.1.3:*:*:*:*:*:*:*","part":"a","vendor":"moodle","product":"moodle","version":"2.1.3"},{"criteria":"cpe:2.3:a:moodle:moodle:2.2.0:*:*:*:*:*:*:*","part":"a","vendor":"moodle","product":"moodle","version":"2.2.0"}],"cpes_truncated":false,"vendors":["moodle"],"products":["moodle/moodle"],"cat":"app","platform":"multi","eol":false,"severity":"medium","priority_score":33,"links":{"html_es":"/es/cve/CVE-2012-0798/","html_en":"/en/cve/CVE-2012-0798/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2012-0798","cve_org":"https://www.cve.org/CVERecord?id=CVE-2012-0798"},"untrusted":{"vendor_name":"Moodle","product_name":"Moodle","desc_en":"The self-enrolment functionality in Moodle 2.1.x before 2.1.4 and 2.2.x before 2.2.1 allows remote authenticated users to obtain the manager role by leveraging the teacher role.","affected":[],"references":[{"url":"http://git.moodle.org/gw?p=moodle.git&a=search&h=HEAD&st=commit&s=MDL-29469","tags":[]},{"url":"http://moodle.org/mod/forum/discuss.php?d=194017","tags":["Vendor Advisory"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=783532","tags":[]}]}}