CVE-2022-45149 Cross-Site Request Forgery in Moodle
Attackers can perform cross-site request forgery attacks in Moodle by tricking users into visiting crafted pages, allowing arbitrary actions on their behalf.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2022-45149?
CVE-2022-45149 is a medium-severity vulnerability in Fedoraproject Fedora, published on 23 Nov 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
A vulnerability was found in Moodle which exists due to insufficient validation of the HTTP request origin in course redirect URL. A user's CSRF token was unnecessarily included in the URL when being redirected to a course they have just restored. A remote attacker can trick the victim to visit a specially crafted web page and perform arbitrary actions on behalf of the victim on the vulnerable website. This flaw allows an attacker to perform cross-site request forgery attacks.
Weakness: CWE-352
Which versions are affected by CVE-2022-45149?
7 open source packages ship an affected version, including moodle/moodle and moodle. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
moodle/moodle Packagist | From 3.11.0 | 3.11.11 |
moodle/moodle Packagist | From 3.11.0 | 3.11.11 |
moodle/moodle Packagist | From 3.9.0 | 3.9.18 |
moodle/moodle Packagist | From 3.9.0 | 3.9.18 |
moodle/moodle Packagist | From 4.0.0 | 4.0.5 |
moodle/moodle Packagist | From 4.0.0 | 4.0.5 |
1 more packages
moodle Bitnami | From 3.9.0 | 3.9.18, 3.11.11, 4.0.5 |
Products include Fedoraproject Fedora, Moodle Moodle.
How do I fix CVE-2022-45149?
Upgrade moodle/moodle to a fixed version for your release line: 3.11.11, 3.9.18 or 4.0.5.
Is CVE-2022-45149 being exploited?
There is no known exploitation of CVE-2022-45149 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as BIT-moodle-2022-45149, GHSA-8v23-w4w5-w83c, UBUNTU-CVE-2022-45149.