CVE-2022-45149Moodle
Medium 5.4 No auth needed
Follow: this CVE · Moodle · Moodle We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.4
- EPSS
- 0.5% probability of exploitation in 30 days · percentile 36
- Auth required
- No
- Published
- Nov 23, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-352
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Moodle.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Packagist | moodle/moodle |
≥ 3.9.0 < 3.9.18 |
3.9.18 |
composer require "moodle/moodle:^3.9.18" |
| Packagist | moodle/moodle |
≥ 3.11.0 < 3.11.11 |
3.11.11 |
composer require "moodle/moodle:^3.11.11" |
| Packagist | moodle/moodle |
≥ 4.0.0 < 4.0.5 |
4.0.5 |
composer require "moodle/moodle:^4.0.5" |
Per OSV / GitHub Advisories (GHSA-8v23-w4w5-w83c). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| moodle | moodle | ≥ 3.9.0 < 3.9.18 |
| moodle | moodle | ≥ 3.11.0 < 3.11.11 |
| moodle | moodle | ≥ 4.0.0 < 4.0.5 |
| fedoraproject | fedora | 35 |
| fedoraproject | fedora | 36 |
| fedoraproject | fedora | 37 |
Official sources
References
Links published by the sources. Open them with care.