CVE-2012-1157
Moodle default permissions too permissive
Moodle before 2.2.2 has a default repository capabilities issue where all repositories are viewable by all users by default
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- Low
- Integrity
- None
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
4.3
Moodle before 2.2.2 has a default repository capabilities issue where all repositories are viewable by all users by default
- Record
CVE-2012-1157- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - CVSS 2.0
- 4.0 Medium
AV:N/AC:L/Au:S/C:P/I:N/A:N - Weakness
- CWE-276
- Updated
- 2026-11-02
CVE List No score
Moodle before 2.2.2 has a default repository capabilities issue where all repositories are viewable by all users by default
- Record
CVE-2012-1157- Updated
- 2026-11-02
EUVDEUVD-2022-1600 No score
Moodle before 2.2.2 has a default repository capabilities issue where all repositories are viewable by all users by default
- Record
EUVD-2022-1600- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-2x36-7xfm-pgm7
4.3
Moodle default permissions too permissive
Moodle before 2.2.2 default settings allowed all repositories to be viewable by all authenticated users.
- Record
GHSA-2x36-7xfm-pgm7- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-276
- Updated
- 2026-11-02
OSVGHSA-2x36-7xfm-pgm7
4.3
Moodle default permissions too permissive
Moodle before 2.2.2 default settings allowed all repositories to be viewable by all authenticated users.
- Record
GHSA-2x36-7xfm-pgm7- CVSS 3.1
- 4.3 Medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N - Weakness
- CWE-276
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
moodle/moodlePackagist |
2.2 to 2.2.1 | 2.2.2 |
moodle/moodlePackagist |
2.1 to 2.1.4 | 2.1.5 |
moodle/moodlePackagist |
2.0 to 2.0.7 | 2.0.8 |
moodle/moodlePackagist |
before 1.9.17 | 1.9.17 |
moodle/moodlePackagist |
2.2 up to 2.2.2 | 2.2.2 |
moodle/moodlePackagist |
2.1 up to 2.1.5 | 2.1.5 |
moodle/moodlePackagist |
2.0 up to 2.0.8 | 2.0.8 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2012-1157 is a medium vulnerability (CVSS 4.3) in Moodle, published November 14, 2019. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.22%, the 68th percentile. Fixed in moodle/moodle 2.2.2.
References
lists.fedoraproject.org/pipermail/package-announce/2012-April/078209.html
security-tracker.debian.org/tracker/CVE-2012-1157
bugzilla.redhat.com/show_bug.cgi?id=CVE-2012-1157
access.redhat.com/security/cve/cve-2012-1157
lists.fedoraproject.org/pipermail/package-announce/2012-May/081047.html
lists.fedoraproject.org/pipermail/package-announce/2012-April/078210.html
Show 7 moreShow less
lists.fedoraproject.org/pipermail/package-announce/2012-April/077635.html
lists.fedoraproject.org/pipermail/package-announce/2012-May/080712.html
moodle.org/mod/forum/discuss.php?d=198624
nvd.nist.gov/vuln/detail/CVE-2012-1157
github.com/moodle/moodle/commit/246c2cb8e5af71a7d7c605b8fc9f9563e0fb3bc4
github.com/advisories/GHSA-2x36-7xfm-pgm7
github.com/moodle/moodle