CVE-2022-45150
Description
A reflected cross-site scripting vulnerability was discovered in Moodle. This flaw exists due to insufficient sanitization of user-supplied data in policy tool. An attacker can trick the victim to open a specially crafted link that executes an arbitrary HTML and script code in user's browser in context of vulnerable website. This vulnerability may allow an attacker to perform cross-site scripting (XSS) attacks to gain access potentially sensitive information and modification of web pages.
How to fix
- moodle moodle3.9.18, 3.11.11, 4.0.5 or later
- moodle/moodle3.9.18, 3.11.11, 4.0.5 or later
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/74SXNGA5RIWM7QNX7H3G7SYIQLP4UUGV/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/NLRJB5JNKK3VVBLV3NH3RI7COEDAXSAB/
- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/2DHYIIAUXUBHMBEDYU7TYNZXEN2W2SA2/
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| moodle moodle | 3.9.0 ≤ v < 3.9.18, 3.11.0 ≤ v < 3.11.11, 4.0.0 ≤ v < 4.0.5 | 3.9.18, 3.11.11, 4.0.5 |
| fedoraproject fedora | 35, 36, 37 | — |
| moodle/moodlePackagist | 3.9 ≤ v < 3.9.18, 3.11 ≤ v < 3.11.11, 4.0 ≤ v < 4.0.5 | 3.9.18, 3.11.11, 4.0.5 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.