CVE-2023-30944 Moodle: minor sql injection risk in external wiki method for listing pages

Medium 5.6 Published Updated

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.

PackageAffectedFixed in
moodle/moodle PackagistAll versions4.2.0-rc2
moodle/moodle PackagistAll versions4.2.0-rc2
moodle BitnamiFrom 3.9.03.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.

All Fedoraproject Extra Packages for Enterprise Linux vulnerabilities

Sources

Also known as BIT-moodle-2023-30944, GHSA-7mmc-22g7-3xq2, UBUNTU-CVE-2023-30944.

Is CVE-2023-30944 in your software?

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

Check your SBOMs for free