Description
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.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 6.0 | moodle | 1.9.9.dfsg2-2.1+squeeze2 | DSA-2338-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| Packagist | moodle/moodle | < 1.9.14 | 1.9.14 | GHSA-jcrj-gmr6-p5j8 |
| Packagist | moodle/moodle | >= 2.0, < 2.0.5 | 2.0.5 | GHSA-jcrj-gmr6-p5j8 |
| Packagist | moodle/moodle | >= 2.1, < 2.1.2 | 2.1.2 | GHSA-jcrj-gmr6-p5j8 |
Advisories 1
- DSA-2338-1 moodle - several Debian Security (DSA / DLA) · Mar 9, 2026