Home / Moodle / Moodle / CVE-2012-1157
CVE-2012-1157: is it exploited, and which versions of Moodle are affected and fixed?
CVE-2012-1157 is an insecure default permissions vulnerability in Moodle. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 21:09 UTC). Affected: moodle/moodle from 2.2 before 2.2.2, moodle/moodle from 2.1 before 2.1.5, moodle/moodle from 2.0 before 2.0.8 and 1 more (GitHub advisory GHSA-2x36-7xfm-pgm7). Fixed in 2.2.2, 2.1.5, 2.0.8 and 1.9.17 (GitHub advisory GHSA-2x36-7xfm-pgm7). Severity: Medium (4.3, CVSS 3.1, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 21:09 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:18 UTC.
What is CVE-2012-1157?
Moodle before 2.2.2 has a default repository capabilities issue where all repositories are viewable by all users by default
From the CVE record by redhat, last updated August 6, 2024, 18:53 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| Moodle | Moodle | 2.2 to 2.2.1+ 2.1 to 2.1.4+ 2.0 to 2.0.7+ |
As the CVE record by redhat states it, last updated August 6, 2024. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Packagist | moodle/moodle | >= 2.2, < 2.2.2 | 2.2.2 | GHSA-2x36-7xfm-pgm7 |
| Packagist | moodle/moodle | >= 2.1, < 2.1.5 | 2.1.5 | GHSA-2x36-7xfm-pgm7 |
| Packagist | moodle/moodle | >= 2.0, < 2.0.8 | 2.0.8 | GHSA-2x36-7xfm-pgm7 |
| Packagist | moodle/moodle | < 1.9.17 | 1.9.17 | GHSA-2x36-7xfm-pgm7 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated December 29, 2023. Summary: Moodle default permissions too permissive.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| moodle | moodle | before 2.2.2 | application |
| fedoraproject | fedora | 15 | operating system |
| fedoraproject | fedora | 16 | operating system |
| fedoraproject | fedora | 17 | operating system |
NVD analysis (status Modified), last modified June 16, 2026, 23:39 UTC.
How severe is CVE-2012-1157?
| Score | Version | Vector | Source |
|---|---|---|---|
| Medium 4.3 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N | NVD |
| Medium 4.0 | CVSS 2.0 | AV:N/AC:L/Au:S/C:P/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2012-1157 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 1.22% probability of exploitation activity in the next 30 days, percentile 69.6 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-276 Incorrect Default Permissions
Where are the vendor advisories and references?
- http://lists.fedoraproject.org/pipermail/package-announce/2012-April/078209.html x_refsource_MISC
- https://security-tracker.debian.org/tracker/CVE-2012-1157 x_refsource_MISC
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2012-1157 x_refsource_MISC
- https://access.redhat.com/security/cve/cve-2012-1157 x_refsource_MISC
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/081047.html x_refsource_MISC
- http://lists.fedoraproject.org/pipermail/package-announce/2012-April/078210.html x_refsource_MISC
- http://lists.fedoraproject.org/pipermail/package-announce/2012-April/077635.html x_refsource_MISC
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080712.html x_refsource_MISC
- https://moodle.org/mod/forum/discuss.php?d=198624 x_refsource_CONFIRM
When was it published, and where is the official record?
- Reserved
- February 14, 2012
- Published
- November 14, 2019, 16:05 UTC
- CVE record updated
- August 6, 2024, 18:53 UTC by redhat
- NVD
- Modified, last modified June 16, 2026, 23:39 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:18 UTC; KEV December 3, 2026, 21:09 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Moodle?
- Sep 30, 2026CVE-2026-102588 Moodle: origin not validated
- Sep 30, 2026CVE-2026-102587 Moodle: observable Response Discrepancy
- Sep 30, 2026CVE-2026-102586 Moodle: cross-site scripting (XSS)
- Sep 30, 2026CVE-2026-102585 Moodle: placement of User into Incorrect Group
- Sep 30, 2026CVE-2026-102584 Moodle: direct Request
- Sep 30, 2026CVE-2026-102583 Moodle: direct Request
- Sep 30, 2026CVE-2026-102582 Moodle: direct Request
- Sep 30, 2026CVE-2026-102581 Moodle: cross-site scripting (XSS)
Questions about CVE-2012-1157
Is CVE-2012-1157 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 21:09 UTC. FIRST's EPSS gives it a 1.22% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Moodle are affected by CVE-2012-1157?
moodle/moodle from 2.2 before 2.2.2, moodle/moodle from 2.1 before 2.1.5, moodle/moodle from 2.0 before 2.0.8 and moodle/moodle before 1.9.17, per the GitHub advisory GHSA-2x36-7xfm-pgm7. The tables above give every range the sources list.
Which version fixes CVE-2012-1157?
2.2.2, 2.1.5, 2.0.8 and 1.9.17, per the GitHub advisory GHSA-2x36-7xfm-pgm7. Check the vendor's advisory before you rely on it.
How severe is CVE-2012-1157?
Medium (4.3, CVSS 3.1, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2012-1157?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.