Skip to content
OpenAdvisories
Medium · 5.4 CVE-2022-45149 BIT-moodle-2022-45149EUVD-2022-7288GHSA-8v23-w4w5-w83c

Cross-Site Request Forgery in Moodle

Published Nov 23, 2022 · Updated Apr 25, 2025 · Assigned by fedora

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.

Affected products

VendorProductAffectedFixed
— Moodle Fixed in moodle 4.0.5, moodle 3.11.11, moodle 3.9.18 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS moodle No fix yet —
Ubuntu Pro 16.04 LTS moodle No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist moodle/moodle >= 3.9.0, < 3.9.18 3.9.18 GHSA-8v23-w4w5-w83c
Packagist moodle/moodle >= 3.11.0, < 3.11.11 3.11.11 GHSA-8v23-w4w5-w83c
Packagist moodle/moodle >= 4.0.0, < 4.0.5 4.0.5 GHSA-8v23-w4w5-w83c

References