Live threats

All CVEs / Moodle

CVE-2011-4301Moodle

Medium 5.0 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Moodle.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
moodlemoodle1.9.2
moodlemoodle1.9.3
moodlemoodle1.9.4
moodlemoodle1.9.5
moodlemoodle1.9.6
moodlemoodle1.9.7
moodlemoodle1.9.8
moodlemoodle1.9.9
moodlemoodle1.9.10
moodlemoodle1.9.11
moodlemoodle1.9.12
moodlemoodle1.9.13
moodlemoodle2.0.0
moodlemoodle2.0.1
moodlemoodle2.0.2
moodlemoodle2.0.3
moodlemoodle2.0.4
moodlemoodle2.1.0
moodlemoodle2.1.1

Official sources

References

Links published by the sources. Open them with care.