CVE-2011-4301
Moodle Allows Modification of Constants
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.
Exploit likelihood
What each source reports
NVD Score used
5.0
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.
- Record
CVE-2011-4301- CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:P/A:N - Updated
- 2026-11-02
CVE List No score
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.
- Record
CVE-2011-4301- Updated
- 2026-11-02
EUVDEUVD-2022-4333 No score
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.
- Record
EUVD-2022-4333- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-jcrj-gmr6-p5j8 No score
Moodle Allows Modification of Constants
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.
- Record
GHSA-jcrj-gmr6-p5j8- Weakness
- CWE-471
- Updated
- 2026-11-02
OSVGHSA-jcrj-gmr6-p5j8 No score
Moodle Allows Modification of Constants
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.
- Record
GHSA-jcrj-gmr6-p5j8- Weakness
- CWE-471
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
moodle/moodlePackagist |
before 1.9.14 | 1.9.14 |
moodle/moodlePackagist |
2.0 up to 2.0.5 | 2.0.5 |
moodle/moodlePackagist |
2.1 up to 2.1.2 | 2.1.2 |
moodleDebian:6.0 From an advisory covering 5 CVEs |
before 1.9.9.dfsg2-2.1+squeeze2, plus listed versions 1.9.9.dfsg2-2.11.9.9.dfsg2-2.1+squeeze1 |
1.9.9.dfsg2-2.1+squeeze2 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| 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-2011-4301 is a medium vulnerability (CVSS 5.0) in Moodle, published November 7, 2011. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.10%, the 81st percentile. Fixed in moodle/moodle 1.9.14.
References
moodle.org/mod/forum/discuss.php?d=188313
git.moodle.org/gw?p=moodle.git%3Ba=commit%3Bh=f1f70bd4dde6cd1ea4bdb8ab28fa3d36a53b89d8
bugzilla.redhat.com/show_bug.cgi?id=747444
nvd.nist.gov/vuln/detail/CVE-2011-4301
git.moodle.org/gw?p=moodle.git;a=commit;h=f1f70bd4dde6cd1ea4bdb8ab28fa3d36a53b89d8
github.com/moodle/moodle/commit/1f52e72526c305989eadc702b5299edb2a50ac3c