{"id":"GHSA-m37g-mwcg-7j7v","aliases":["BIT-moodle-2021-40694","CVE-2021-40694"],"title":"Moodle Improper Encoding or Escaping of Output","titleSource":"OSV","descriptionSource":"OSV","declaredSeverity":"MODERATE","description":"Insufficient escaping of the LaTeX preamble made it possible for site administrators to read files available to the HTTP server system account.","severity":"medium","score":4.9,"published":"2022-09-30T00:00:29.000Z","modified":"2024-04-23T23:58:34.172Z","withdrawn":false,"knownExploited":false,"affected":[{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-m37g-mwcg-7j7v","url":"https://osv.dev/vulnerability/GHSA-m37g-mwcg-7j7v"}],"ranges":[{"events":[{"introduced":"3.9"},{"fixed":"3.9.10"}],"type":"ECOSYSTEM"}],"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"],"fixed":["3.9.10"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-m37g-mwcg-7j7v","url":"https://osv.dev/vulnerability/GHSA-m37g-mwcg-7j7v"}],"ranges":[{"events":[{"introduced":"3.10"},{"fixed":"3.10.7"}],"type":"ECOSYSTEM"}],"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"],"fixed":["3.10.7"]},{"ecosystem":"Packagist","name":"moodle/moodle","sources":[{"name":"OSV · GHSA-m37g-mwcg-7j7v","url":"https://osv.dev/vulnerability/GHSA-m37g-mwcg-7j7v"}],"ranges":[{"events":[{"introduced":"3.11"},{"fixed":"3.11.3"}],"type":"ECOSYSTEM"}],"versions":["v3.11.0","v3.11.0-beta","v3.11.0-rc1","v3.11.0-rc2","v3.11.1","v3.11.2"],"fixed":["3.11.3"]}],"sourceAffected":[],"references":["https://nvd.nist.gov/vuln/detail/CVE-2021-40694","https://bugzilla.redhat.com/show_bug.cgi?id=2043421","https://github.com/moodle/moodle"],"sources":[{"name":"OSV","id":"GHSA-m37g-mwcg-7j7v","modified":"2024-04-23T23:58:34.172359Z","url":"https://osv.dev/vulnerability/GHSA-m37g-mwcg-7j7v"}],"assessments":[{"source":"OSV","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N","score":4.9}],"products":[],"remediation":[],"kev":{"status":"not-listed","checkedAt":"2026-10-28T19:20:37.165Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[]}