CVE-2011-4297Moodle
Medium 6.4 No auth needed
Follow: this CVE · Moodle · Moodle We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 2.0
- 6.4
- EPSS
- 1.5% probability of exploitation in 30 days · percentile 75
- Auth required
- No
- Published
- Jul 16, 2012
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-264
- Vector
AV:N/AC:L/Au:N/C:N/I:P/A:P
What happens
comment/lib.php in Moodle 2.0.x before 2.0.4 and 2.1.x before 2.1.1 does not properly restrict comment capabilities, which allows remote attackers to post a comment by leveraging the guest role and operating on a front-page activity.
What to do
- Apply the vendor's security update for Moodle.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | moodle/moodle |
≥ 2.0.0 < 2.0.4 |
2.0.4 |
composer require "moodle/moodle:^2.0.4" |
| Packagist | moodle/moodle |
≥ 2.1.0 < 2.1.1 |
2.1.1 |
composer require "moodle/moodle:^2.1.1" |
Per OSV / GitHub Advisories (GHSA-62wv-866c-rh86). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| moodle | moodle | 2.0.0 |
| moodle | moodle | 2.0.1 |
| moodle | moodle | 2.0.2 |
| moodle | moodle | 2.0.3 |
| moodle | moodle | 2.1.0 |
Official sources
References
Links published by the sources. Open them with care.
- git.moodle.org
- moodle.org Vendor Advisory
- openwall.com