CVE-2022-30599: SQL injection in moodle

Published May 10, 2022
·
Updated

A flaw was found in moodle where an SQL injection risk was identified in Badges code relating to configuring criteria.

Other sources

An SQL injection risk was identified in Badges code relating to configuring criteria. NOTE: in Moodle 4.0, 3.11.6, 3.10.10 and 3.9.13, access to this vulnerability was available to site administrators only. In earlier versions, access to the relevant capability was also limited to teachers and managers by default.

Versions affected: 4.0, 3.11 to 3.11.6, 3.10 to 3.10.10, 3.9 to 3.9.13 and earlier unsupported versions Versions fixed : 4.0.1, 3.11.7, 3.10.11 and 3.9.14

— Red Hat

Affected Software

20 affected componentsFixes available
composer/moodle/moodle>=3.9<3.9.14
3.9.14
composer/moodle/moodle>=3.10<3.10.11
3.10.11
composer/moodle/moodle>=3.11<3.11.7
3.11.7
composer/moodle/moodle>=4.0<4.0.1
4.0.1
redhat/moodle<4.0.1
4.0.1
redhat/moodle<3.11.7
3.11.7
redhat/moodle<3.10.11
3.10.11
redhat/moodle<3.9.14
3.9.14
Moodle Moodle>=3.9<3.9.14
Moodle Moodle>=3.10<3.10.11
Moodle Moodle>=3.11<3.11.7
Moodle Moodle=4.0.0
redhat Enterprise Linux=8.0
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Fedoraproject Fedora=36
composer/moodle/moodle>=3.9, <3.9.14
3.9.14
composer/moodle/moodle>=3.10, <3.10.11
3.10.11
composer/moodle/moodle>=3.11, <3.11.7
3.11.7
composer/moodle/moodle>=4.0, <4.0.1
4.0.1

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 3.9.14
  2. Upgrade

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

    Fixed in 3.10.11
  3. Upgrade

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

    Fixed in 3.11.7
  4. Upgrade

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

    Fixed in 4.0.1
  5. Upgrade

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

    Fixed in 4.0.1
  6. Upgrade

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

    Fixed in 3.11.7
  7. Upgrade

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

    Fixed in 3.10.11
  8. Upgrade

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

    Fixed in 3.9.14
  9. Upgrade

    Upgrade Moodle to a version that resolves this vulnerability.

    Fixed in 4.0.1
  10. Upgrade

    Upgrade Moodle to a version that resolves this vulnerability.

    Fixed in 3.11.7
  11. Upgrade

    Upgrade Moodle to a version that resolves this vulnerability.

    Fixed in 3.10.11
  12. Upgrade

    Upgrade Moodle to a version that resolves this vulnerability.

    Fixed in 3.9.14

Event History

May 18, 2022
CVE Published
via MITRE·05:09 PM
Data Sourced
via MITRE·05:09 PM
DescriptionWeakness
Data Sourced
via NVD·06:15 PM
RemedyDescriptionSeverityWeaknessAffected Software
May 19, 2022
Advisory Published
12:00 AM
Data Sourced
via GitHub·12:00 AM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via Packagist·12:00 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-30599?

The severity of CVE-2022-30599 is classified as a critical SQL injection vulnerability in Moodle.

2

How do I fix CVE-2022-30599?

To fix CVE-2022-30599, update your Moodle installation to version 3.9.14, 3.10.11, 3.11.7, or 4.0.1.

3

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

Affected versions of Moodle include 3.9.x up to 3.9.13, 3.10.x up to 3.10.10, 3.11.x up to 3.11.6, and 4.0.0.

4

Is there a workaround for CVE-2022-30599?

There is no known workaround for CVE-2022-30599; updating to a fixed version is required.

5

What types of systems are impacted by CVE-2022-30599?

CVE-2022-30599 impacts Moodle instances configured with Badges code relating to configuring criteria.

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