CVE-2024-43431 Moodle: idor in badges allows deletion of arbitrary badges

High 7.5 Published Updated

Attackers can delete arbitrary badges in Moodle due to insufficient capability checks, requiring immediate patching by administrators.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-43431?

CVE-2024-43431 is a high-severity missing authorization vulnerability in Moodle Moodle, published on 7 Nov 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A vulnerability was found in Moodle. Insufficient capability checks made it possible to delete badges that a user does not have permission to access.

Weakness: CWE-862

Which versions are affected by CVE-2024-43431?

9 open source packages ship an affected version, including moodle/moodle and moodle. It affects 1 product.

PackageAffectedFixed in
moodle/moodle PackagistAll versions4.1.12
moodle/moodle PackagistAll versions4.1.12
moodle/moodle PackagistFrom 4.2.0-beta4.2.9
moodle/moodle PackagistFrom 4.2.0-beta4.2.9
moodle/moodle PackagistFrom 4.3.0-beta4.3.6
moodle/moodle PackagistFrom 4.3.0-beta4.3.6
3 more packages
moodle/moodle PackagistFrom 4.4.0-beta4.4.2
moodle/moodle PackagistFrom 4.4.0-beta4.4.2
moodle BitnamiAll versions4.1.12, 4.2.9, 4.3.6, 4.4.2

Products include Moodle Moodle.

How do I fix CVE-2024-43431?

Upgrade moodle/moodle to a fixed version for your release line: 4.1.12, 4.2.9, 4.3.6 or 4.4.2.

Upgrade, and check permissions on every request on the server, not only in the interface. More about Missing authorization.

Is CVE-2024-43431 being exploited?

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

All Moodle Moodle vulnerabilities

Sources

Also known as BIT-moodle-2024-43431, GHSA-wwjf-gwrv-wh45, UBUNTU-CVE-2024-43431.

Is CVE-2024-43431 in your software?

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

Check your SBOMs for free