{"id":"CVE-2021-40694","aliases":["BIT-moodle-2021-40694","EUVD-2022-6866","GHSA-m37g-mwcg-7j7v","UBUNTU-CVE-2021-40694"],"status":"published","title":"Moodle Improper Encoding or Escaping of Output","description":"Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.","severity":{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.00901,"percentile":0.59951,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-116"],"published":"2022-01-21T18:17:34Z","modified":"2026-10-24T10:30:49Z","fixes":[{"ecosystem":"Packagist","package":"moodle/moodle","fixed_in":["3.9.10","3.10.7","3.11.3"],"sources":["ghsa","osv"]},{"ecosystem":"Bitnami","package":"moodle","fixed_in":["3.9.10","3.10.7","3.11.3"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.9"},{"fixed":"3.9.10"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.10"},{"fixed":"3.10.7"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.11"},{"fixed":"3.11.3"}]}]},{"source":"osv","ecosystem":"Bitnami","package":"moodle","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"3.9.10"},{"introduced":"3.10.0"},{"fixed":"3.10.7"},{"introduced":"3.11.0"},{"fixed":"3.11.3"}]}]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.9"},{"fixed":"3.9.10"}]}],"versions":["v3.9.0","v3.9.0-beta","v3.9.0-rc1","v3.9.0-rc2","v3.9.0-rc3","v3.9.1","v3.9.2","v3.9.3","v3.9.4","v3.9.5","v3.9.6","v3.9.7","v3.9.8","v3.9.9"]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.10"},{"fixed":"3.10.7"}]}],"versions":["v3.10.0","v3.10.0-beta","v3.10.0-rc1","v3.10.0-rc2","v3.10.1","v3.10.2","v3.10.3","v3.10.4","v3.10.5","v3.10.6"]},{"source":"osv","ecosystem":"Packagist","package":"moodle/moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.11"},{"fixed":"3.11.3"}]}],"versions":["v3.11.0","v3.11.0-beta","v3.11.0-rc1","v3.11.0-rc2","v3.11.1","v3.11.2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.7.9+dfsg-1","2.7.10+dfsg-1","2.7.11+dfsg-1","2.7.11+dfsg-2","2.7.12+dfsg-1","3.0.3+dfsg-0ubuntu1","3.0.3+dfsg-0ubuntu1+esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"moodle","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.0.3+dfsg-0ubuntu1","3.0.3+dfsg-0ubuntu1+esm1"]}],"products":[{"vendor":"moodle","product":"moodle"}],"references":[{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2043421","tags":["x_refsource_MISC","x_transferred","Issue Tracking","Third Party Advisory","advisory","report","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-40694","tags":["web","advisory"]},{"url":"https://github.com/advisories/GHSA-m37g-mwcg-7j7v"},{"url":"https://github.com/moodle/moodle","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2021-40694","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-40694","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2021-40694","description":"Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.","status":"published","published":"2022-01-21T18:17:34Z","modified":"2024-08-04T02:51:06.549Z","updated_at":"2026-11-02T14:33:01.852999Z"}],"euvd":[{"id":"EUVD-2022-6866","description":"Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.","status":"published","published":"2022-01-21T18:17:34Z","modified":"2024-08-04T02:51:06Z","updated_at":"2026-11-03T03:24:19.692229Z"}],"ghsa":[{"id":"GHSA-m37g-mwcg-7j7v","title":"Moodle Improper Encoding or Escaping of Output","description":"Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.","status":"published","published":"2022-09-30T00:00:29Z","modified":"2024-04-23T23:37:23Z","cvss":[{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-116"],"updated_at":"2026-11-02T14:37:44.867253Z"}],"nvd":[{"id":"CVE-2021-40694","description":"Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.","status":"published","published":"2022-09-29T03:15:14.417Z","modified":"2026-06-17T04:07:15.907Z","cvss":[{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-116"],"updated_at":"2026-11-02T14:07:06.906968Z"}],"osv":[{"id":"CVE-2021-40694","description":"Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.","status":"published","published":"2022-09-29T03:15:14.417Z","modified":"2026-10-24T10:30:49.378281548Z","cvss":[{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:44:21.249056Z"},{"id":"GHSA-m37g-mwcg-7j7v","title":"Moodle Improper Encoding or Escaping of Output","description":"Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.","status":"published","published":"2022-09-30T00:00:29Z","modified":"2024-04-23T23:58:34.172359Z","cvss":[{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"cwes":["CWE-116"],"updated_at":"2026-11-02T15:46:51.10002Z"},{"id":"UBUNTU-CVE-2021-40694","description":"Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.","status":"published","published":"2022-09-29T03:15:00Z","modified":"2026-09-23T18:46:10.163703232Z","cvss":[{"version":"3.1","score":4.9,"vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","level":"medium"}],"updated_at":"2026-11-02T15:54:29.220315Z"},{"id":"BIT-moodle-2021-40694","description":"Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.","status":"published","published":"2024-03-06T11:07:09.496Z","modified":"2026-09-08T08:48:14.529829685Z","updated_at":"2026-11-02T15:28:33.469426Z"}]}}
