High severity · published Sep 30, 2022
CVE-2022-40313
Recursive rendering of Mustache template helpers containing user input could, in some cases, result in an XSS risk or a page failing to load
7.1
CVSS
0.7%
EPSS
No
On KEV
Description
Recursive rendering of Mustache template helpers containing user input could, in some cases, result in an XSS risk or a page failing to load.
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:L
Attack vector
Network
Complexity
Low
Privileges
None
User interaction
Required
Confidentiality
Low
Integrity
Low
Availability
Low
Scope
Changed
Exploitation
Is it being used?
Exploit prediction (EPSS)0.7% · higher than 54% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
MO
moodle ·
4.0 to 4.0.3, 3.11 to 3.11.9, 3.9 to 3.9.16 and earlier unsupported versions · source: vendor, NVD
EP
Extra Packages For Enterprise Linux · Fedoraproject
8.0 · source: NVD
FE
Fedora · Fedoraproject
35; 36 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2022-40313
CVE.org
https://www.cve.org/CVERecord?id=CVE-2022-40313
Issue Tracking
https://bugzilla.redhat.com/show_bug.cgi?id=2128146
Patch
https://moodle.org/mod/forum/discuss.php?d=438392
More from moodle
9.8
CVE-2022-40315
A limited SQL injection risk was identified in the "browse list of users" site administration page
9.8
CVE-2022-40314
A remote code execution risk when restoring backup files originating from Moodle 1.9 was identified
8.8
CVE-2022-2986
Enabling and disabling installed H5P libraries did not include the necessary token to prevent a CSRF risk
6.5
CVE-2021-40693
An authentication bypass risk was identified in the external database authentication functionality, due to a type juggling vulnerability
5.4
CVE-2020-1691
In Moodle 3.8, messages required extra sanitizing before updating the conversation overview, to prevent the risk of stored cross-site scripting
