CVE-2011-4301Moodle
Medium 5.0 No auth needed
Follow: this CVE · Moodle · Moodle We alert you by email or Slack (account required).
- Priority
- 45
- CVSS 2.0
- 5.0
- EPSS
- 2.1% probability of exploitation in 30 days · percentile 82
- Auth required
- No
- Published
- Jul 11, 2012
- Updated
- Jun 16, 2026
- Category
- Application · Cross-platform
- Vector
AV:N/AC:L/Au:N/C:N/I:P/A:N
What happens
The MoodleQuickForm class in the Forms Library in lib/formslib.php in Moodle 1.9.x before 1.9.14, 2.0.x before 2.0.5, and 2.1.x before 2.1.2 does not recognize Forms API setConstant operations, which allows remote attackers to submit unexpected form content by modifying the values of constant fields.
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 |
< 1.9.14 |
1.9.14 |
composer require "moodle/moodle:^1.9.14" |
| Packagist | moodle/moodle |
≥ 2.0 < 2.0.5 |
2.0.5 |
composer require "moodle/moodle:^2.0.5" |
| Packagist | moodle/moodle |
≥ 2.1 < 2.1.2 |
2.1.2 |
composer require "moodle/moodle:^2.1.2" |
Per OSV / GitHub Advisories (GHSA-jcrj-gmr6-p5j8). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| moodle | moodle | 1.9.2 |
| moodle | moodle | 1.9.3 |
| moodle | moodle | 1.9.4 |
| moodle | moodle | 1.9.5 |
| moodle | moodle | 1.9.6 |
| moodle | moodle | 1.9.7 |
| moodle | moodle | 1.9.8 |
| moodle | moodle | 1.9.9 |
| moodle | moodle | 1.9.10 |
| moodle | moodle | 1.9.11 |
| moodle | moodle | 1.9.12 |
| moodle | moodle | 1.9.13 |
| moodle | moodle | 2.0.0 |
| moodle | moodle | 2.0.1 |
| moodle | moodle | 2.0.2 |
| moodle | moodle | 2.0.3 |
| moodle | moodle | 2.0.4 |
| moodle | moodle | 2.1.0 |
| moodle | moodle | 2.1.1 |
Official sources
References
Links published by the sources. Open them with care.
- git.moodle.org
- moodle.org Vendor Advisory
- bugzilla.redhat.com