CVE-2023-30944 Moodle: minor sql injection risk in external wiki method for listing pages
Remote attackers can execute limited SQL commands via the external Wiki listing method, potentially exposing database information.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-30944?
CVE-2023-30944 is a medium-severity SQL injection vulnerability in Fedoraproject Extra Packages for Enterprise Linux, published on 2 May 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
The vulnerability was found Moodle which exists due to insufficient sanitization of user-supplied data in external Wiki method for listing pages. A remote attacker can send a specially crafted request to the affected application and execute limited SQL commands within the application database.
Weakness: CWE-89
Which versions are affected by CVE-2023-30944?
3 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 | 4.2.0-rc2 |
moodle/moodle Packagist | All versions | 4.2.0-rc2 |
moodle Bitnami | From 3.9.0 | 3.9.21, 3.11.14, 4.0.8, 4.1.3 |
Products include Fedoraproject Extra Packages for Enterprise Linux, Fedoraproject Fedora, Moodle Moodle.
How do I fix CVE-2023-30944?
Upgrade moodle/moodle to 4.2.0-rc2 or later.
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-2023-30944 being exploited?
There is no known exploitation of CVE-2023-30944 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-2023-30944, GHSA-7mmc-22g7-3xq2, UBUNTU-CVE-2023-30944.