{"id":"CVE-2012-1157","aliases":["GHSA-2x36-7xfm-pgm7"],"kind":"cve","tier":"cold","status":"published","title":"Moodle default permissions too permissive","description":"Moodle before 2.2.2 has a default repository capabilities issue where all repositories are viewable by all users by default","ai_summary":null,"severity":"medium","cvss":{"score":4.3,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"NVD"},"scores":[{"score":4.3,"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N","source":"nvd"},{"score":4,"version":"2.0","vector":"AV:N/AC:L/Au:S/C:P/I:N/A:N","source":"nvd"}],"cwe":["CWE-276"],"remote":true,"remote_unauth":false,"epss":{"score":0.01216,"percentile":0.69438,"date":"2026-12-01"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":false,"exploitdb_ids":[]},"affected":[{"ecosystem":"Packagist","name":"moodle/moodle","affected":">= 2.2, < 2.2.2","fixed":["2.2.2","2.1.5","2.0.8","1.9.17"],"source":"osv"}],"affected_products":[{"vendor":"Moodle","product":"Moodle","versions":"2.2 to 2.2.1+; 2.1 to 2.1.4+; 2.0 to 2.0.7+","source":"cvelist"}],"ai_versions":null,"mitigation":"Upgrade moodle/moodle to one of 2.2.2, 2.1.5, 2.0.8, 1.9.17 (or later in the same release line).","technologies":[],"references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2012-1157","kind":"vendor"},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2012-1157","kind":"patch"},{"url":"https://moodle.org/mod/forum/discuss.php?d=198624","kind":"patch"},{"url":"https://github.com/moodle/moodle/commit/246c2cb8e5af71a7d7c605b8fc9f9563e0fb3bc4","kind":"patch"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-April/078209.html","kind":"other"},{"url":"https://security-tracker.debian.org/tracker/CVE-2012-1157","kind":"other"},{"url":"https://access.redhat.com/security/cve/cve-2012-1157","kind":"other"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/081047.html","kind":"other"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-April/078210.html","kind":"other"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-April/077635.html","kind":"other"},{"url":"http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080712.html","kind":"other"},{"url":"https://github.com/moodle/moodle","kind":"other"}],"workarounds":null,"vendors":["fedoraproject","moodle"],"products":["fedora","moodle"],"cpes":["cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:15:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:16:*:*:*:*:*:*:*","cpe:2.3:o:fedoraproject:fedora:17:*:*:*:*:*:*:*"],"published_at":"2019-11-14T16:05:42.000Z","modified_at":"2026-06-16T23:39:09.103Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2012-1157"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-2x36-7xfm-pgm7","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2012-1157","markdown":"https://flawdb.com/CVE-2012-1157.md","json":"https://flawdb.com/api/v1/entries/CVE-2012-1157"}}