CVE-2022-40314 Moodle remote code execution

Critical 9.8 Published Updated
Exploited in the wild
Not known
Fix
Available

What is CVE-2022-40314?

CVE-2022-40314 is a critical vulnerability in Moodle Moodle, published on 30 Sep 2022.

Official description

A remote code execution risk when restoring backup files originating from Moodle 1.9 was identified.

Weakness: CWE-502

Which versions are affected by CVE-2022-40314?

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

PackageAffectedFixed in
moodle/moodle PackagistAll versions3.9.17
moodle/moodle PackagistAll versions3.9.17
moodle/moodle PackagistFrom 3.113.11.10
moodle/moodle PackagistFrom 3.113.11.10
moodle/moodle PackagistFrom 4.04.0.4
moodle/moodle PackagistFrom 4.04.0.4
1 more packages
moodle BitnamiFrom 3.9.03.9.17, 3.11.10, 4.0.4

Products include Moodle Moodle.

How do I fix CVE-2022-40314?

Upgrade moodle/moodle to a fixed version for your release line: 3.9.17, 3.11.10 or 4.0.4.

Is CVE-2022-40314 being exploited?

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

All Moodle Moodle vulnerabilities

Sources

Also known as BIT-moodle-2022-40314, GHSA-2hmm-q272-xmhf, UBUNTU-CVE-2022-40314.

Is CVE-2022-40314 in your software?

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

Check your SBOMs for free