{"id":"CVE-2021-40694","aliases":["CVE-2021-40694","GHSA-m37g-mwcg-7j7v","BIT-MOODLE-2021-40694"],"related":[],"kind":"vulnerability","state":"published","title":"Moodle Improper Encoding or Escaping of Output","summary":"Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.","source":"cvelist"},{"lang":"es","text":"Un escape insuficiente del preámbulo de LaTeX hacía posible que los administradores del sitio leyeran archivos disponibles para la cuenta del sistema del servidor HTTP","source":"nvd"}],"published":"2022-01-21T18:17:34.000Z","modified":"2026-09-08T08:48:14.529Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9,"rating":"MEDIUM"},{"scorer":"Bitnami Vulnerability Database","scheme":"rating","rating":"MEDIUM"}],"cwes":["CWE-116"],"affected":[{"ranges":[{"version":"3.11 to 3.11.2, 3.10 to 3.10.6, 3.9 to 3.9.9 and earlier unsupported versions","status":"affected"}],"product":"moodle","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"3.9","status":"affected","fixed":"3.9.10"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.10","status":"affected","fixed":"3.10.7"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"3.11","status":"affected","fixed":"3.11.3"}],"ecosystem":"Packagist","package":"moodle/moodle","purl":"pkg:composer/moodle/moodle","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"3.9.10"},{"status":"affected","introduced":"3.10.0","fixed":"3.10.7"},{"status":"affected","introduced":"3.11.0","fixed":"3.11.3"}],"vendor":"moodle","product":"moodle","cpe":"cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"3.9.10"},{"type":"semver","introduced":"3.10.0","status":"affected","fixed":"3.10.7"},{"type":"semver","introduced":"3.11.0","status":"affected","fixed":"3.11.3"}],"ecosystem":"Bitnami","package":"moodle","purl":"pkg:bitnami/moodle","source":"bitnami"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2043421","tags":["advisory","issue-tracking","third-party-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","bitnami"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40694","tags":["advisory","web"],"sources":["ghsa","bitnami"]},{"url":"https://github.com/moodle/moodle","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"redhat","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-40694","url":"https://www.cve.org/CVERecord?id=CVE-2021-40694","licence":"CVE Terms of Use","modified":"2024-08-04T02:51:06.549Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-m37g-mwcg-7j7v","url":"https://github.com/advisories/GHSA-m37g-mwcg-7j7v","licence":"CC-BY-4.0","modified":"2024-04-23T23:58:34.172Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-40694","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40694","licence":"Public domain","modified":"2026-06-17T04:07:15.907Z"},{"source":"bitnami","name":"Bitnami Vulnerability Database","id":"BIT-MOODLE-2021-40694","url":"https://osv.dev/vulnerability/BIT-MOODLE-2021-40694","licence":"Apache-2.0","modified":"2026-09-08T08:48:14.529Z"}],"updatedAt":"2026-11-25T22:58:07.835Z","epss":{"score":0.00931,"percentile":0.61671,"date":"2026-12-01T12:00:22.000Z"}}