CVE-2021-40694
MEDIUM 4.9CVSS 3.1Moodle Improper Encoding or Escaping of Output
Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.
- Published
- 29 Sep 2022
- Last modified
- 17 Jun 2026
- Assigned by
- secalert@redhat.com
- NVD status
- Modified
- Weakness
- CWE-116
- Also known as
- BIT-moodle-2021-40694GHSA-m37g-mwcg-7j7v
- Sources
- NVDJSONOSV GHSA-m37g-mwcg-7j7vJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 4.9 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
< 3.9.10 | 3.9.10 |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
>= 3.10.0, < 3.10.7 | 3.10.7 |
| NVD | moodle | moodlecpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:* |
>= 3.11.0, < 3.11.3 | 3.11.3 |
| OSV | Packagist | moodle/moodle | >= 3.9, < 3.9.10 | 3.9.10 |
| OSV | Packagist | moodle/moodle | >= 3.10, < 3.10.7 | 3.10.7 |
| OSV | Packagist | moodle/moodle | >= 3.11, < 3.11.3 | 3.11.3 |
References
- https://bugzilla.redhat.com/show_bug.cgi?id=2043421 · Issue Tracking, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2021-40694 · ADVISORY
- https://github.com/moodle/moodle · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 29 Sep 2022)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 30 Sep 2022)