CVE-2022-45150: XSS

Published Nov 15, 2022
·
Updated

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.

Other sources

MSA-22-0030: Reflected XSS risk in policy tool

The return URL in the policy tool required extra sanitizing to prevent a reflected XSS risk.

Versions affected: 4.0 to 4.0.4, 3.11 to 3.11.10, 3.9 to 3.9.17 and earlier unsupported versions Versions fixed: 4.0.5, 3.11.11 and 3.9.18

Red Hat

Affected Software

12 affected componentsFixes available
composer/moodle/moodle>=4.0<4.0.5
4.0.5
composer/moodle/moodle>=3.11<3.11.11
3.11.11
composer/moodle/moodle>=3.9<3.9.18
3.9.18
redhat/moodle<4.0.5
4.0.5
redhat/moodle<3.11.11
3.11.11
redhat/moodle<3.9.18
3.9.18
Moodle moodle>=3.9.0<3.9.18
Moodle moodle>=3.11.0<3.11.11
Moodle moodle>=4.0.0<4.0.5
Fedoraproject Fedora=35
Fedoraproject Fedora=36
Fedoraproject Fedora=37

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade composer/moodle/moodle to a version that resolves this vulnerability.

    Fixed in 4.0.5
  2. Upgrade

    Upgrade composer/moodle/moodle to a version that resolves this vulnerability.

    Fixed in 3.11.11
  3. Upgrade

    Upgrade composer/moodle/moodle to a version that resolves this vulnerability.

    Fixed in 3.9.18
  4. Upgrade

    Upgrade redhat/moodle to a version that resolves this vulnerability.

    Fixed in 4.0.5
  5. Upgrade

    Upgrade redhat/moodle to a version that resolves this vulnerability.

    Fixed in 3.11.11
  6. Upgrade

    Upgrade redhat/moodle to a version that resolves this vulnerability.

    Fixed in 3.9.18
  7. Upgrade

    Upgrade Moodle to a version that resolves this vulnerability.

    Fixed in 4.0.5
  8. Upgrade

    Upgrade Moodle to a version that resolves this vulnerability.

    Fixed in 3.11.11
  9. Upgrade

    Upgrade Moodle to a version that resolves this vulnerability.

    Fixed in 3.9.18
  10. Compensating control

    MSA-22-0030: Reflected XSS risk in Moodle policy tool—ensure the return URL in the policy tool is sufficiently sanitized to prevent reflected XSS.

Event History

Nov 23, 2022
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Data Sourced
via NVD·03:15 PM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·03:30 PM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-45150?

CVE-2022-45150 is a reflected cross-site scripting vulnerability in Moodle.

2

How does CVE-2022-45150 occur?

CVE-2022-45150 occurs due to insufficient sanitization of user-supplied data in the policy tool of Moodle.

3

What is the severity of CVE-2022-45150?

The severity of CVE-2022-45150 is medium, with a severity value of 6.1.

4

Which versions of Moodle are affected by CVE-2022-45150?

Moodle versions 3.9.0 to 3.9.18, 3.11.0 to 3.11.11, and 4.0.0 to 4.0.5 are affected by CVE-2022-45150.

5

How can I fix CVE-2022-45150 in Moodle?

To fix CVE-2022-45150 in Moodle, you should upgrade to version 3.9.18, 3.11.11, or 4.0.5.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203