Vulnerability · Published Nov 23, 2022 · Assigned by fedora

CVE-2022-45149

Medium 5.4

In plain English

A medium-severity cross-site request forgery in Moodle. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 38% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.4%top 61.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistmoodle/moodle3.9.18GHSA-8v23-w4w5-w83c
Packagistmoodle/moodle3.11.11GHSA-8v23-w4w5-w83c
Packagistmoodle/moodle4.0.5GHSA-8v23-w4w5-w83c

Affected products (as reported)

VendorProductVersions
n/a Moodle Fixed in moodle 4.0.5, moodle 3.11.11, moodle 3.9.18

Weakness: CWE-352 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

References