CVE-2022-0983 SQL Injection in Moodle
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.
| Package | Affected | Fixed in |
|---|---|---|
moodle/moodle Packagist | All versions | 3.9.13 |
moodle/moodle Packagist | All versions | 3.9.13 |
moodle/moodle Packagist | From 3.10.0 | 3.10.10 |
moodle/moodle Packagist | From 3.10.0 | 3.10.10 |
moodle/moodle Packagist | From 3.11.0 | 3.11.6 |
moodle/moodle Packagist | From 3.11.0 | 3.11.6 |
1 more packages
moodle Bitnami | From 3.9.0 | 3.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.
Other vulnerabilities in Fedoraproject Extra Packages for Enterprise Linux
- CVE-2023-34152 Command injection in ImageMagick
- CVE-2022-4170 Code injection in rxvt-unicode
- CVE-2022-40315 Moodle Minor SQL injection risk in admin user browsing
- CVE-2022-45152 Moodle blind Server-Side Request Forgery (SSRF) vulnerability in LTI provider library
- CVE-2022-24882 Server side NTLM does not properly check parameters in FreeRDP
All Fedoraproject Extra Packages for Enterprise Linux vulnerabilities
Sources
Also known as BIT-moodle-2022-0983, GHSA-h2fw-93qx-vrcq, UBUNTU-CVE-2022-0983.