CVE-2022-0983 SQL Injection in Moodle

High 8.8 Published Updated

Teachers and managers can exploit SQL injection in Moodle Badges criteria configuration to read or modify database data.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-0983?

CVE-2022-0983 is a high-severity SQL injection vulnerability in Fedoraproject Extra Packages for Enterprise Linux, published on 25 Mar 2022. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

An SQL injection risk was identified in Badges code relating to configuring criteria. Access to the relevant capability was limited to teachers and managers by default.

Weakness: CWE-89

Which versions are affected by CVE-2022-0983?

7 open source packages ship an affected version, including moodle/moodle and moodle. It affects 3 products.

PackageAffectedFixed in
moodle/moodle PackagistAll versions3.9.13
moodle/moodle PackagistAll versions3.9.13
moodle/moodle PackagistFrom 3.10.03.10.10
moodle/moodle PackagistFrom 3.10.03.10.10
moodle/moodle PackagistFrom 3.11.03.11.6
moodle/moodle PackagistFrom 3.11.03.11.6
1 more packages
moodle BitnamiFrom 3.9.03.9.13, 3.10.10, 3.11.6

Products include Fedoraproject Extra Packages for Enterprise Linux, Fedoraproject Fedora, Moodle Moodle.

How do I fix CVE-2022-0983?

Upgrade moodle/moodle to a fixed version for your release line: 3.9.13, 3.10.10 or 3.11.6.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2022-0983 being exploited?

There is no known exploitation of CVE-2022-0983 in the wild and no public exploit code.

All Fedoraproject Extra Packages for Enterprise Linux vulnerabilities

Sources

Also known as BIT-moodle-2022-0983, GHSA-h2fw-93qx-vrcq, UBUNTU-CVE-2022-0983.

Is CVE-2022-0983 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free