Security mailing lists by PureSourceCode

CVE-2022-45149

MEDIUM 5.4CVSS 3.1

Cross-Site Request Forgery in Moodle

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.

Published
23 Nov 2022
Last modified
17 Jun 2026
Assigned by
patrick@puiterwijk.org
NVD status
Modified
Weakness
CWE-352
Also known as
BIT-moodle-2022-45149GHSA-8v23-w4w5-w83c
Sources
NVDJSONOSV GHSA-8v23-w4w5-w83cJSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 MEDIUM 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
NVD 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary) CVSS 3.1 MEDIUM 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
OSV GitHub CVSS 3.1 MEDIUM 5.4 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD moodle moodle
cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*
>= 3.9.0, < 3.9.18 3.9.18
NVD moodle moodle
cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*
>= 3.11.0, < 3.11.11 3.11.11
NVD moodle moodle
cpe:2.3:a:moodle:moodle:*:*:*:*:*:*:*:*
>= 4.0.0, < 4.0.5 4.0.5
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:35:*:*:*:*:*:*:*
= 35
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:36:*:*:*:*:*:*:*
= 36
NVD fedoraproject fedora
cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
= 37
OSV Packagist moodle/moodle >= 3.9.0, < 3.9.18 3.9.18
OSV Packagist moodle/moodle >= 3.11.0, < 3.11.11 3.11.11
OSV Packagist moodle/moodle >= 4.0.0, < 4.0.5 4.0.5

References

History

  • 25 Nov 2026 20:35 UTC · NVD: first stored (published 23 Nov 2022)
  • 25 Nov 2026 20:15 UTC · OSV: first stored (published 23 Nov 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.