Skip to content

CVE-2022-45149 Cross-Site Request Forgery in Moodle

MediumCVSS 5.4 EPSS 0.50%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
No known exploitation · automatable: no · technical impact: partial
Technology
PHPUbuntu

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.

Upgrade path

5 packages: 2 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/moodle(Ubuntu Pro 16.04) = 2.7.9+dfsg-1; = 2.7.10+dfsg-1; = 2.7.11+dfsg-1; = 2.7.11+dfsg-2 +4 more No fix listed No fix yet
ubuntu/moodle(Ubuntu Pro 18.04) = 3.0.3+dfsg-0ubuntu1; = 3.0.3+dfsg-0ubuntu1+esm1; All versions No fix listed No fix yet
moodle/moodle >= 3.9.0, < 3.9.18; >= 3.11.0, < 3.11.11; >= 4.0.0, < 4.0.5 3.9.18, 3.11.11, 4.0.5 Fixed
moodle/moodle(Packagist) = v3.9.0; = v3.9.1; = v3.9.2; = v3.9.3 +33 more 3.9.18, 3.11.11, 4.0.5 Fixed
fedoraproject fedora = 35; = 36; = 37 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
moodle/moodle(Packagist) >= 3.9.0, < 3.9.18 3.9.18
moodle/moodle(Packagist) = v3.9.0 No fix listed
moodle/moodle(Packagist) = v3.9.1 No fix listed
moodle/moodle(Packagist) = v3.9.10 No fix listed
moodle/moodle(Packagist) = v3.9.11 No fix listed
moodle/moodle(Packagist) = v3.9.12 No fix listed
moodle/moodle(Packagist) = v3.9.13 No fix listed
moodle/moodle(Packagist) = v3.9.14 No fix listed
moodle/moodle(Packagist) = v3.9.15 No fix listed
moodle/moodle(Packagist) = v3.9.16 No fix listed
moodle/moodle(Packagist) = v3.9.17 No fix listed
moodle/moodle(Packagist) = v3.9.2 No fix listed
moodle/moodle(Packagist) = v3.9.3 No fix listed
moodle/moodle(Packagist) = v3.9.4 No fix listed
moodle/moodle(Packagist) = v3.9.5 No fix listed
moodle/moodle(Packagist) = v3.9.6 No fix listed
moodle/moodle(Packagist) = v3.9.7 No fix listed
moodle/moodle(Packagist) = v3.9.8 No fix listed
moodle/moodle(Packagist) = v3.9.9 No fix listed
moodle/moodle(Packagist) >= 3.11.0, < 3.11.11 3.11.11
moodle/moodle(Packagist) = v3.11.0 No fix listed
moodle/moodle(Packagist) = v3.11.1 No fix listed
moodle/moodle(Packagist) = v3.11.10 No fix listed
moodle/moodle(Packagist) = v3.11.2 No fix listed
moodle/moodle(Packagist) = v3.11.3 No fix listed
Show 29 more
ProductAffected versionsFixed in
moodle/moodle(Packagist) = v3.11.4 No fix listed
moodle/moodle(Packagist) = v3.11.5 No fix listed
moodle/moodle(Packagist) = v3.11.6 No fix listed
moodle/moodle(Packagist) = v3.11.7 No fix listed
moodle/moodle(Packagist) = v3.11.8 No fix listed
moodle/moodle(Packagist) = v3.11.9 No fix listed
moodle/moodle(Packagist) >= 4.0.0, < 4.0.5 4.0.5
moodle/moodle(Packagist) = v4.0.0 No fix listed
moodle/moodle(Packagist) = v4.0.1 No fix listed
moodle/moodle(Packagist) = v4.0.2 No fix listed
moodle/moodle(Packagist) = v4.0.3 No fix listed
moodle/moodle(Packagist) = v4.0.4 No fix listed
moodle/moodle >= 3.9.0, < 3.9.18 3.9.18
moodle/moodle >= 3.11.0, < 3.11.11 3.11.11
moodle/moodle >= 4.0.0, < 4.0.5 4.0.5
fedoraproject fedora = 35 No fix listed
fedoraproject fedora = 36 No fix listed
fedoraproject fedora = 37 No fix listed
ubuntu/moodle(Ubuntu:Pro:16.04) All versions No fix listed
ubuntu/moodle(Ubuntu:Pro:16.04) = 2.7.9+dfsg-1 No fix listed
ubuntu/moodle(Ubuntu:Pro:16.04) = 2.7.10+dfsg-1 No fix listed
ubuntu/moodle(Ubuntu:Pro:16.04) = 2.7.11+dfsg-1 No fix listed
ubuntu/moodle(Ubuntu:Pro:16.04) = 2.7.11+dfsg-2 No fix listed
ubuntu/moodle(Ubuntu:Pro:16.04) = 2.7.12+dfsg-1 No fix listed
ubuntu/moodle(Ubuntu:Pro:16.04) = 3.0.3+dfsg-0ubuntu1 No fix listed
ubuntu/moodle(Ubuntu:Pro:16.04) = 3.0.3+dfsg-0ubuntu1+esm1 No fix listed
ubuntu/moodle(Ubuntu:Pro:18.04) All versions No fix listed
ubuntu/moodle(Ubuntu:Pro:18.04) = 3.0.3+dfsg-0ubuntu1 No fix listed
ubuntu/moodle(Ubuntu:Pro:18.04) = 3.0.3+dfsg-0ubuntu1+esm1 No fix listed

References