CVE-2021-40694Moodle
Medium 4.9
Follow: this CVE · Moodle · Moodle We alert you by email or Slack (account required).
- Priority
- 29
- CVSS 3.1
- 4.9
- EPSS
- 0.9% probability of exploitation in 30 days · percentile 59
- Auth required
- Yes
- Published
- Sep 29, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-116
- Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N
What happens
Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.
What to do
- Apply the vendor's security update for Moodle.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | moodle/moodle |
≥ 3.9 < 3.9.10 |
3.9.10 |
composer require "moodle/moodle:^3.9.10" |
| Packagist | moodle/moodle |
≥ 3.10 < 3.10.7 |
3.10.7 |
composer require "moodle/moodle:^3.10.7" |
| Packagist | moodle/moodle |
≥ 3.11 < 3.11.3 |
3.11.3 |
composer require "moodle/moodle:^3.11.3" |
Per OSV / GitHub Advisories (GHSA-m37g-mwcg-7j7v). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| moodle | moodle | < 3.9.10 |
| moodle | moodle | ≥ 3.10.0 < 3.10.7 |
| moodle | moodle | ≥ 3.11.0 < 3.11.3 |
Official sources
References
Links published by the sources. Open them with care.
- bugzilla.redhat.com Issue Tracking Third Party Advisory